1LOCAL_PATH := $(call my-dir) 2 3object_SRC_FILES := \ 4 Archive.cpp \ 5 ArchiveWriter.cpp \ 6 Binary.cpp \ 7 COFFObjectFile.cpp \ 8 COFFYAML.cpp \ 9 ELF.cpp \ 10 ELFObjectFile.cpp \ 11 ELFYAML.cpp \ 12 Error.cpp \ 13 FunctionIndexObjectFile.cpp \ 14 IRObjectFile.cpp \ 15 MachOObjectFile.cpp \ 16 MachOUniversal.cpp \ 17 Object.cpp \ 18 ObjectFile.cpp \ 19 RecordStreamer.cpp \ 20 SymbolicFile.cpp \ 21 SymbolSize.cpp 22 23# For the host 24# ===================================================== 25include $(CLEAR_VARS) 26include $(CLEAR_TBLGEN_VARS) 27 28LOCAL_MODULE:= libLLVMObject 29LOCAL_MODULE_HOST_OS := darwin linux windows 30 31LOCAL_SRC_FILES := $(object_SRC_FILES) 32 33# Our windows cross-compiler triggers a spurious uninitialized warning. 34LOCAL_CFLAGS_windows := -Wno-uninitialized 35 36include $(LLVM_HOST_BUILD_MK) 37include $(LLVM_GEN_ATTRIBUTES_MK) 38include $(LLVM_GEN_INTRINSICS_MK) 39include $(BUILD_HOST_STATIC_LIBRARY) 40 41# For the device only 42# ===================================================== 43ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS)) 44include $(CLEAR_VARS) 45 46LOCAL_MODULE:= libLLVMObject 47 48LOCAL_SRC_FILES := $(object_SRC_FILES) 49 50include $(LLVM_DEVICE_BUILD_MK) 51include $(LLVM_GEN_ATTRIBUTES_MK) 52include $(LLVM_GEN_INTRINSICS_MK) 53include $(BUILD_STATIC_LIBRARY) 54endif 55