Android NDK: How to get compiler architecture in Android.mk dynamically

前端 未结 2 911
一生所求
一生所求 2020-12-13 12:50

I\'m trying to configure Android.mk to cross compile native code to support different chipset namely armeabi, mips, and x86. I know I can configure Application.mk in the fol

2条回答
  •  执念已碎
    2020-12-13 13:54

    Check TARGET_ARCH_ABI:

    ifeq($(TARGET_ARCH_ABI), armeabi-v7a)
      # v7a-specific stuff
    endif
    

提交回复
热议问题