1 # FIXME(Nowar): Use llvm-ndk-cc instead of clang. 2 #TARGET_CC := $(TOOLCHAIN_PREBUILT_ROOT)/llvm-ndk-cc 3 #TARGET_CFLAGS := 4 # 5 #TARGET_CXX := $(TARGET_CC) 6 #TARGET_CXXFLAGS := $(TARGET_CFLAGS) -fno-exceptions -fno-rtti -D __cplusplus 7 # 8 #TARGET_LD := $(TOOLCHAIN_PREBUILT_ROOT)/llvm-ndk-link 9 #TARGET_LDFLAGS := 10 11 TARGET_C_INCLUDES := $(GDK_PLATFORMS_ROOT)/android-portable/arch-llvm/usr/include 12 13 # Workaround before the required headers are in the above dir. 14 TARGET_C_INCLUDES += $(NDK_ROOT)/platforms/android-9/arch-arm/usr/include \ 15 $(NDK_ROOT)/sources/cxx-stl/system/include \ 16 $(NDK_ROOT)/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/lib/gcc/arm-linux-androideabi/4.4.3/include 17 18 TARGET_CC := $(OUT)/../../../host/linux-x86/bin/clang 19 TARGET_CFLAGS := -ccc-host-triple armv7-none-linux-gnueabi -emit-llvm 20 21 TARGET_CXX := $(OUT)/../../../host/linux-x86/bin/clang++ 22 TARGET_CXXFLAGS := $(TARGET_CFLAGS) -fno-exceptions -fno-rtti -D __cplusplus 23 24 TARGET_LD := $(OUT)/../../../host/linux-x86/bin/llvm-link 25 TARGET_LDFLAGS := 26 27 define cmd-link-bitcodes 28 $(TARGET_LD) \ 29 $(call host-path, $(PRIVATE_OBJECTS)) \ 30 -o $(call host-path,$@) 31 endef 32