Android.mk conditions

givi picture givi · Dec 28, 2011 · Viewed 8.9k times · Source

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*

Answer

Alexander Kulyakhtin picture Alexander Kulyakhtin · Dec 28, 2011
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
    ...
else
    ifeq($(TARGET_ARCH_ABI),armeabi)
        ...
    endif
endif