日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 人文社科 > 生活经验 >内容正文

生活经验

ndk-build 参数NDK_APPLICATION_MK问题

發布時間:2023/11/27 生活经验 39 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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:

ndk-build NDK_APP_APPLICATION_MK=jni/ApplicationDistribution.mk

This is documented to behave as follows:

ndk-build NDK_APP_APPLICATION_MK=<file>
--> rebuild, using a specific Application.mk pointed to bythe NDK_APP_APPLICATION_MK command-line variable.

This generates the following log:

Android NDK: Parsing xxx/jni/Application.mk

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
shareimprove this question asked?Jul 7 '11 at 14:41 DJPJ
144211
? add a comment

1 Answer

activeoldestvotes
up vote5down voteaccepted

Documentation is wrong here - misspelled option. Use?NDK_APPLICATION_MK?instead of?NDK_APP_APPLICATION_MK.


總結

以上是生活随笔為你收集整理的ndk-build 参数NDK_APPLICATION_MK问题的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。