# Uncomment this if you're using STL in your project # See CPLUSPLUS-SUPPORT.html in the NDK documentation for more information #APP_STL := stlport_static XASH_SDL ?= 0 ifeq ($(XASH_SDL),1) APP_PLATFORM := android-12 else APP_PLATFORM := android-9 endif CFLAGS_OPT := -O3 -fomit-frame-pointer -ggdb -funsafe-math-optimizations -ftree-vectorize -fgraphite-identity -floop-interchange -funsafe-loop-optimizations -finline-limit=256 -pipe CFLAGS_OPT_ARM := -mthumb -mfpu=neon -mcpu=cortex-a9 -pipe -mvectorize-with-neon-quad -DVECTORIZE_SINCOS -fPIC #CFLAGS_OPT_ARMv5 :=-mcpu=arm1136jf-s -mtune=arm1136jf-s -mthumb -mfpu=vfp -pipe -mfloat-abi=softfp CFLAGS_OPT_ARMv5 := -march=armv5te -mthumb -msoft-float CFLAGS_OPT_X86 := -mtune=atom -march=atom -mssse3 -mfpmath=sse -funroll-loops -pipe -DVECTORIZE_SINCOS CFLAGS_HARDFP := -D_NDK_MATH_NO_SOFTFP=1 -mhard-float -mfloat-abi=hard -DLOAD_HARDFP -DSOFTFP_LINK APPLICATIONMK_PATH = $(call my-dir) NANOGL_PATH := $(APPLICATIONMK_PATH)/src/NanoGL/nanogl XASH3D_PATH := $(APPLICATIONMK_PATH)/src/Xash3D/xash3d HLSDK_PATH := $(APPLICATIONMK_PATH)/src/HLSDK/halflife/ XASH3D_CONFIG := $(APPLICATIONMK_PATH)/xash3d_config.mk APP_ABI := x86 armeabi armeabi-v7a-hard # Use armeabi-v7a to disable hardfloat, armeabi to build armv5 xash3d # Change CFLAGS_OPT_ARMv5 to "-mfloat-abi=softfp -mfpu=vfp" and fix setup.mk of ndk to build armv6 # Mods are built with both ABI support # ARMv6 and ARMv5 xash3d builds use softfp only and compatible only with softfp mods # Build both armeabi-v7a-hard and armeabi-v7a supported only for mods, not for engine APP_MODULES := xash menu client server NanoGL ifeq ($(XASH_SDL),1) APP_MODULES += SDL2 endif