1LOCAL_PATH:= $(call my-dir) 2 3LLVM_ROOT_PATH := external/llvm 4include $(LLVM_ROOT_PATH)/llvm.mk 5 6bitcode_reader_3_0_SRC_FILES := \ 7 BitcodeReader.cpp 8 9# For the host 10# ===================================================== 11include $(CLEAR_VARS) 12 13LOCAL_MODULE:= libLLVMBitReader_3_0 14LOCAL_MODULE_HOST_OS := darwin linux windows 15 16LOCAL_SRC_FILES := $(bitcode_reader_3_0_SRC_FILES) 17LOCAL_CFLAGS += -D__HOST__ 18 19include $(LLVM_HOST_BUILD_MK) 20include $(LLVM_GEN_ATTRIBUTES_MK) 21include $(LLVM_GEN_INTRINSICS_MK) 22include $(BUILD_HOST_STATIC_LIBRARY) 23 24# For the device 25# ===================================================== 26ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS)) 27include $(CLEAR_VARS) 28 29LOCAL_MODULE:= libLLVMBitReader_3_0 30 31LOCAL_SRC_FILES := $(bitcode_reader_3_0_SRC_FILES) 32 33include $(LLVM_DEVICE_BUILD_MK) 34include $(LLVM_GEN_ATTRIBUTES_MK) 35include $(LLVM_GEN_INTRINSICS_MK) 36include $(BUILD_STATIC_LIBRARY) 37endif 38