赞
踩
Android.mk
$(warning " LOCALPATH is $(TARGET_PRODUCT)")
ifeq ($(TARGET_ARCH), arm)
LOCAL_CFLAGS += -DARM
else ifeq ($(TARGET_ARCH), x86)
LOCAL_CFLAGS += -DX86
else ifeq ($(TARGET_ARCH), mips)
LOCAL_CFLAGS += -DMIPS
else
LOCAL_SRC_FILES := ...
endif
main.c
#ifdef ARM
printf(cmd, "this is arm plat");
#elseif X86
printf(cmd, "this is x86 plat");
#else
printf(cmd, "this is unknown plat");
#endif
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。