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