OSDN Git Service

8316a3c751bc7d55fcf9ce7825d920cd56e15304
[android-x86/external-llvm.git] / lib / TableGen / Android.mk
1 LOCAL_PATH:= $(call my-dir)
2 LLVM_ROOT_PATH := $(LOCAL_PATH)/../..
3 include $(LLVM_ROOT_PATH)/llvm.mk
4
5 libtablegen_SRC_FILES := \
6   Error.cpp \
7   Main.cpp \
8   Record.cpp \
9   SetTheory.cpp \
10   StringMatcher.cpp \
11   TableGenBackend.cpp \
12   TGLexer.cpp \
13   TGParser.cpp
14
15 # For the host
16 # =====================================================
17 include $(CLEAR_VARS)
18 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
19
20 LOCAL_SRC_FILES := $(libtablegen_SRC_FILES)
21 LOCAL_MODULE:= libLLVM70TableGen
22
23 LOCAL_MODULE_TAGS := optional
24
25 REQUIRES_EH := 1
26 REQUIRES_RTTI := 1
27
28 include $(LLVM_HOST_BUILD_MK)
29 include $(BUILD_HOST_STATIC_LIBRARY)
30
31 ## For the device
32 ## =====================================================
33 ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
34 #include $(CLEAR_VARS)
35 #
36 #LOCAL_SRC_FILES := $(libtablegen_SRC_FILES)
37 #LOCAL_MODULE:= libLLVM70TableGen
38 #
39 #LOCAL_MODULE_TAGS := optional
40 #
41 #include $(LLVM_DEVICE_BUILD_MK)
42 #include $(BUILD_STATIC_LIBRARY)
43 endif