1# clang populates much of what we need 2LOCAL_CFLAGS := \ 3 -fvisibility-inlines-hidden \ 4 -Wno-missing-field-initializers \ 5 -Wno-sequence-point \ 6 -Wno-sign-compare \ 7 -Wno-uninitialized \ 8 -Wno-unused-function \ 9 -Wno-unused-variable \ 10 $(LOCAL_CFLAGS) 11 12# TODO change this when clang or gcc > 2.6 support is added 13CPLUSPLUS_STANDARD := -std=c++0x 14 15LOCAL_CPPFLAGS := \ 16 $(CPLUSPLUS_STANDARD) \ 17 $(LOCAL_CPPFLAGS) 18 19PYTHON_BASE_PATH := prebuilts/python/linux-x86/2.7.5 20PYTHON_INCLUDE_PATH := $(PYTHON_BASE_PATH)/include/python2.7 21 22LOCAL_C_INCLUDES := \ 23 $(PYTHON_INCLUDE_PATH) \ 24 $(LLDB_ROOT_PATH)/include \ 25 $(LLDB_ROOT_PATH)/source \ 26 $(LLDB_ROOT_PATH)/source/Utility \ 27 $(LLDB_ROOT_PATH)/source/Plugins/Process/Utility \ 28 $(LLDB_ROOT_PATH)/source/Plugins/Process/POSIX \ 29 $(LOCAL_C_INCLUDES) 30 31LLVM_ROOT_PATH := external/llvm 32include $(LLVM_ROOT_PATH)/llvm.mk 33 34CLANG_ROOT_PATH := external/clang 35include $(CLANG_ROOT_PATH)/clang.mk 36 37ifneq ($(LLVM_HOST_BUILD_MK),) 38include $(LLVM_HOST_BUILD_MK) 39endif 40 41ifneq ($(CLANG_HOST_BUILD_MK),) 42include $(CLANG_HOST_BUILD_MK) 43endif 44 45# strip out flags from clang/llvm that we know we don't handle 46LOCAL_CFLAGS := $(subst -pedantic,,$(LOCAL_CFLAGS)) 47LOCAL_CPPFLAGS := $(subst -pedantic,,$(LOCAL_CPPFLAGS)) 48