Makefile文件  |  32行  |  1.17 KB

# FIXME(Nowar): Use llvm-ndk-cc instead of clang.
#TARGET_CC := $(TOOLCHAIN_PREBUILT_ROOT)/llvm-ndk-cc
#TARGET_CFLAGS :=
#
#TARGET_CXX := $(TARGET_CC)
#TARGET_CXXFLAGS := $(TARGET_CFLAGS) -fno-exceptions -fno-rtti -D __cplusplus
#
#TARGET_LD := $(TOOLCHAIN_PREBUILT_ROOT)/llvm-ndk-link
#TARGET_LDFLAGS :=

TARGET_C_INCLUDES := $(GDK_PLATFORMS_ROOT)/android-portable/arch-llvm/usr/include

# Workaround before the required headers are in the above dir.
TARGET_C_INCLUDES += $(NDK_ROOT)/platforms/android-9/arch-arm/usr/include \
                     $(NDK_ROOT)/sources/cxx-stl/system/include \
                     $(NDK_ROOT)/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/lib/gcc/arm-linux-androideabi/4.4.3/include

TARGET_CC       := $(OUT)/../../../host/linux-x86/bin/clang
TARGET_CFLAGS   := -ccc-host-triple armv7-none-linux-gnueabi -emit-llvm

TARGET_CXX      := $(OUT)/../../../host/linux-x86/bin/clang++
TARGET_CXXFLAGS := $(TARGET_CFLAGS) -fno-exceptions -fno-rtti -D __cplusplus

TARGET_LD       := $(OUT)/../../../host/linux-x86/bin/llvm-link
TARGET_LDFLAGS  :=

define cmd-link-bitcodes
$(TARGET_LD) \
  $(call host-path, $(PRIVATE_OBJECTS)) \
  -o $(call host-path,$@)
endef