Android.mk conditions
Asked Answered
E

1

7

Is there any way to use conditional expressions in Android.mk? I need it to do smth like this:

IF arch = AREABI_V7
   *use path for my arm_v7 static libs*
ELSE
   *use path for arm static libs*
Eger answered 28/12, 2011 at 17:23 Comment(0)
J
12
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
    ...
else
    ifeq($(TARGET_ARCH_ABI),armeabi)
        ...
    endif
endif
Jeffereyjefferies answered 28/12, 2011 at 21:13 Comment(2)
You have missing space after second ifeq before the (. The build system errors on that.Floaty
"The NDK docs state that Android.mk "is really a tiny GNU Makefile fragment...". Here are the docs about make conditionals: gnu.org/software/make/manual/html_node/Conditionals.html " //Taken from here groups.google.com/forum/#!topic/android-ndk/UCqQ1L2kisEFloaty

© 2022 - 2024 — McMap. All rights reserved.