OSDN Git Service

Stop checking HOST_OS, whitelist windows modules
[android-x86/external-llvm.git] / lib / Option / Android.mk
1 LOCAL_PATH:= $(call my-dir)
2
3 option_SRC_FILES := \
4     Arg.cpp \
5     ArgList.cpp \
6     Option.cpp \
7     OptTable.cpp
8
9 # For the host
10 # =====================================================
11 include $(CLEAR_VARS)
12
13 # FIXME: This only requires RTTI because tblgen uses it.  Fix that.
14 REQUIRES_RTTI := 1
15
16 LOCAL_SRC_FILES := $(option_SRC_FILES)
17
18 LOCAL_MODULE:= libLLVMOption
19
20 LOCAL_CFLAGS := -D__android__
21
22 LOCAL_MODULE_HOST_OS := darwin linux windows
23
24 include $(LLVM_HOST_BUILD_MK)
25 include $(BUILD_HOST_STATIC_LIBRARY)
26
27 # For the device
28 # =====================================================
29 include $(CLEAR_VARS)
30 ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
31
32 LOCAL_SRC_FILES := $(option_SRC_FILES)
33
34 LOCAL_MODULE:= libLLVMOption
35
36 LOCAL_CFLAGS := -D__android__
37
38 include $(LLVM_DEVICE_BUILD_MK)
39 include $(BUILD_STATIC_LIBRARY)
40 endif