ndk-build 参数NDK_APPLICATION_MK问题
被網絡傳聞和文檔無限坑啊,竟然都說的是錯的參數名:NDK_APP_APPLICATION_MK是錯誤的,NDK_APPLICATION_MK才是正確的
| I am trying to pass a preprocessor define into my native code using the Android NDK that is dependent on build configuration. This is so that I can disable some debug native code easily by switching build configuration in eclipse. As I understand it, preprocessor defines are added in the android.mk file using LOCAL_CFLAGS or to the Application.mk file using APP_CFLAGS, and I have both of these options working. So, I am trying to use the ndk-build option NDK_APP_APPLICATION_MK to specify a different Application.mk in one build configuration as follows: This is documented to behave as follows: This generates the following log: which suggests that it is still looking for the original Application.mk file. Is this a known bug? Is there an easier way to pass preprocessor defines to native code only for certain eclipse build configurations? thank you for your time. android?android-ndk
| ||
| ? | add a comment |
1 Answer
activeoldestvotes| up vote5down voteaccepted | Documentation is wrong here - misspelled option. Use? |
總結
以上是生活随笔為你收集整理的ndk-build 参数NDK_APPLICATION_MK问题的全部內容,希望文章能夠幫你解決所遇到的問題。