Issue
To my understanding, I can customize a macro with LOCAL_CFLAGS += -DMY_DEFINITION in Android.mk, but Can I customize a macro when ndk-building projects? Such as:
$ ndk-build -DMy_DEFINITION
Somewhat like cmake -DMY_DEFINITION .., which makes building configurations more flexible
Solution
Use:
ndk-build MY_DEFINITION=1
That will be visible from your Android.mk. Can see that it is set by using $(info):
$(info MY_DEFINITION=$(MY_DEFINITION))
# Rest of your Android.mk...
Answered By - Dan Albert
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.