I created an Android project using jni. Now I want to use preprocessor macros to distinguish between the lite and the full version. It should look like this:
#ifdef LITE
auto label = LabelTTF::create("Hello Cocos2dx Lite", "Arial", 24);
#else
auto label = LabelTTF::create("Hello Cocos2dx Full", "Arial", 24);
#endif
For this I defined a variable in APP_CPPFLAGS within Android.mk like this:
APP_CPPFLAGS += -DLITE
Unfortunately the app completely ignores it and I still see the label "Hello Cocos2dx Full". However the same line works when I put it in the Application.mk.
- Why is that?
- How can I define the variable, so that I can have two different makefiles for the full and lite version?