If you would like to add a special definition when compiling your NDK code (jni) add the following into your Android.mk:
LOCAL_CFLAGS:=-DMYDEFINE
This will define the Macro MYDEFINE in your c/c++ code. Here an example
#ifdef MYDEFINE // We build the project with this special macro #else // We build without setting the macro in the LOCAL_CFLAGS #endif
沒有留言:
張貼留言