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_writer_3_2_SRC_FILES := \ 7 BitcodeWriter.cpp \ 8 BitcodeWriterPass.cpp \ 9 ValueEnumerator.cpp 10 11 # For the host 12 # ===================================================== 13 include $(CLEAR_VARS) 14 15 LOCAL_CFLAGS += $(local_cflags_for_slang) 16 LOCAL_C_INCLUDES += frameworks/compile/slang 17 18 LOCAL_SRC_FILES := $(bitcode_writer_3_2_SRC_FILES) 19 20 LOCAL_MODULE:= libLLVMBitWriter_3_2 21 22 LOCAL_MODULE_TAGS := optional 23 24 ifneq ($(HOST_OS),windows) 25 LOCAL_CLANG := true 26 endif 27 28 include $(LLVM_HOST_BUILD_MK) 29 include $(LLVM_GEN_INTRINSICS_MK) 30 include $(BUILD_HOST_STATIC_LIBRARY) 31 32 # For the device 33 # ===================================================== 34 include $(CLEAR_VARS) 35 36 LOCAL_CFLAGS += $(local_cflags_for_slang) 37 LOCAL_C_INCLUDES += frameworks/compile/slang 38 39 LOCAL_SRC_FILES := $(bitcode_writer_3_2_SRC_FILES) 40 41 LOCAL_MODULE:= libLLVMBitWriter_3_2 42 43 LOCAL_MODULE_TAGS := optional 44 45 include $(LLVM_DEVICE_BUILD_MK) 46 include $(LLVM_GEN_INTRINSICS_MK) 47 include $(BUILD_STATIC_LIBRARY) 48 49 50