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