Android.mk revision c6a4f5e819217e1e12c458aed8e7b122e23a3a58
1LOCAL_PATH := $(call my-dir)
2
3object_SRC_FILES := \
4  Archive.cpp \
5  Binary.cpp \
6  COFFObjectFile.cpp \
7  COFFYAML.cpp \
8  ELF.cpp \
9  ELFObjectFile.cpp \
10  ELFYAML.cpp \
11  Error.cpp \
12  IRObjectFile.cpp \
13  MachOObjectFile.cpp \
14  MachOUniversal.cpp \
15  Object.cpp \
16  ObjectFile.cpp \
17  RecordStreamer.cpp \
18  SymbolicFile.cpp
19
20# For the host
21# =====================================================
22include $(CLEAR_VARS)
23include $(CLEAR_TBLGEN_VARS)
24
25LOCAL_MODULE:= libLLVMObject
26LOCAL_MODULE_TAGS := optional
27
28LOCAL_SRC_FILES := $(object_SRC_FILES)
29
30include $(LLVM_HOST_BUILD_MK)
31include $(LLVM_GEN_INTRINSICS_MK)
32include $(BUILD_HOST_STATIC_LIBRARY)
33
34# For the device only
35# =====================================================
36ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
37include $(CLEAR_VARS)
38
39LOCAL_MODULE:= libLLVMObject
40LOCAL_MODULE_TAGS := optional
41
42LOCAL_SRC_FILES := $(object_SRC_FILES)
43
44include $(LLVM_DEVICE_BUILD_MK)
45include $(LLVM_GEN_INTRINSICS_MK)
46include $(BUILD_STATIC_LIBRARY)
47endif
48