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_TAGS := optional 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 LOCAL_MODULE_TAGS := optional 39 40 include $(LLVM_DEVICE_BUILD_MK) 41 include $(BUILD_STATIC_LIBRARY) 42 endif 43