In Application.mk you can set:
APP_OPTIM := release
APP_OPTIM := debug
How can I test for release/debug build in C++?
I’m assuming there are defines so I’ve tried this, but only “NOT” messages are logged:
#ifdef RELEASE
LOGV("RELEASE");
#else
LOGV("NOT RELEASE");
#endif
#ifdef DEBUG
LOGV("DEBUG");
#else
LOGV("NOT DEBUG");
#endif
In
android-ndk-r8b/build/core/add-application.mkwe read:So, to answer your question: in NDK r8b (the latest for today) you can check
But you can add any other compilation flags through your
Android.mkorApplication.mkdepending on $(APP_OPTIM), if you want.