OSDN Git Service

DO NOT MERGE: android: translate Android.mk build rules for libLLVM80
[android-x86/external-llvm.git] / lib / BinaryFormat / Android.mk
1 LOCAL_PATH:= $(call my-dir)
2
3 binary_format_SRC_FILES := \
4   AMDGPUMetadataVerifier.cpp \
5   Dwarf.cpp \
6   Magic.cpp \
7   MsgPackReader.cpp \
8   MsgPackTypes.cpp \
9   MsgPackWriter.cpp \
10   Wasm.cpp
11
12 # For the host
13 # =====================================================
14 include $(CLEAR_VARS)
15
16 LOCAL_SRC_FILES := $(binary_format_SRC_FILES)
17
18 LOCAL_MODULE:= libLLVM80BinaryFormat
19
20 LOCAL_MODULE_HOST_OS := darwin linux windows
21
22 include $(LLVM80_HOST_BUILD_MK)
23 include $(LLVM80_GEN_ATTRIBUTES_MK)
24 include $(LLVM80_GEN_INTRINSICS_MK)
25 include $(BUILD_HOST_STATIC_LIBRARY)
26
27 # For the device
28 # =====================================================
29 ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
30 include $(CLEAR_VARS)
31
32 LOCAL_SRC_FILES := $(binary_format_SRC_FILES)
33
34 LOCAL_MODULE:= libLLVM80BinaryFormat
35
36 include $(LLVM80_DEVICE_BUILD_MK)
37 include $(LLVM80_GEN_ATTRIBUTES_MK)
38 include $(LLVM80_GEN_INTRINSICS_MK)
39 include $(BUILD_STATIC_LIBRARY)
40 endif