1 LOCAL_PATH:= $(call my-dir) 2 3 lto_SRC_FILES := \ 4 LTOModule.cpp \ 5 LTOCodeGenerator.cpp \ 6 7 # For the host 8 # ===================================================== 9 include $(CLEAR_VARS) 10 11 LOCAL_SRC_FILES := $(lto_SRC_FILES) 12 13 LOCAL_MODULE:= libLLVMLTO 14 15 LOCAL_MODULE_TAGS := optional 16 17 include $(LLVM_HOST_BUILD_MK) 18 include $(LLVM_GEN_INTRINSICS_MK) 19 include $(BUILD_HOST_STATIC_LIBRARY) 20 21 # For the device 22 # ===================================================== 23 ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS)) 24 include $(CLEAR_VARS) 25 26 LOCAL_SRC_FILES := $(lto_SRC_FILES) 27 28 LOCAL_MODULE:= libLLVMLTO 29 30 LOCAL_MODULE_TAGS := optional 31 32 include $(LLVM_DEVICE_BUILD_MK) 33 include $(LLVM_GEN_INTRINSICS_MK) 34 include $(BUILD_STATIC_LIBRARY) 35 endif 36