1WANTED_PLATFORM_32 := android-9 2WANTED_PLATFORM_64 := android-21 3 4ifeq (,$(filter %64, $(TARGET_ARCH))) 5 ifneq ($(TARGET_PLATFORM),$(WANTED_PLATFORM_32)) 6 $(error Incorrect target platform: $(TARGET_PLATFORM) (expecteding $(WANTED_PLATFORM_32))) 7 endif 8 $(call ndk_log,Test OK: Correct target platform retrieved from project.properties: $(TARGET_PLATFORM)) 9else 10 ifneq ($(TARGET_PLATFORM),$(WANTED_PLATFORM_64)) 11 $(error Incorrect target platform: $(TARGET_PLATFORM) (expecteding $(WANTED_PLATFORM_64))) 12 endif 13 $(call ndk_log,Test OK: Correct target platform retrieved from project.properties but auto-adjusted: $(TARGET_PLATFORM)) 14endif 15