簡體   English   中英

cmake 相當於 ndk-build 的 NDK_DEBUG=1

[英]cmake equivalent of ndk-build's NDK_DEBUG=1

當我使用 ndk-build 構建模塊並且我想在調試模式下構建它時,我就知道該怎么做了。 但目前 cmake 是構建模塊的推薦工具 - 什么相當於 NDK_DEBUG=1 用於構建帶有 cmake 的 android 模塊?

我在官方網站上找到了文檔:下面的參考表 1 是工具提示( https://developer.android.com/ndk/guides/ndk-build#dvr ):

Note: NDK_DEBUG=0 is the equivalent of APP_OPTIM=release, and compiles with -O2. 
NDK_DEBUG=1 is the equivalent of APP_OPTIM=debug in Application.mk, 
and compiles with -O0. For more information about APP_OPTIM, see Application.mk.

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM