aboutsummaryrefslogtreecommitdiff
path: root/lldb-build.mk
blob: 558b0a8380e81166338e4775325fb56ceb46d10f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# clang populates much of what we need
LOCAL_CFLAGS := \
	-fvisibility-inlines-hidden \
	-Wno-missing-field-initializers \
	-Wno-sequence-point \
	-Wno-sign-compare \
	-Wno-uninitialized \
	-Wno-unused-function \
	-Wno-unused-variable \
	$(LOCAL_CFLAGS)

# TODO change this when clang or gcc > 2.6 support is added
CPLUSPLUS_STANDARD := -std=c++0x

LOCAL_CPPFLAGS := \
	$(CPLUSPLUS_STANDARD) \
	$(LOCAL_CPPFLAGS)

PYTHON_BASE_PATH := prebuilts/python/linux-x86/2.7.5
PYTHON_INCLUDE_PATH := $(PYTHON_BASE_PATH)/include/python2.7

LOCAL_C_INCLUDES := \
	$(PYTHON_INCLUDE_PATH) \
	$(LLDB_ROOT_PATH)/include \
	$(LLDB_ROOT_PATH)/source \
	$(LLDB_ROOT_PATH)/source/Utility \
	$(LLDB_ROOT_PATH)/source/Plugins/Process/Utility \
	$(LLDB_ROOT_PATH)/source/Plugins/Process/POSIX \
	$(LOCAL_C_INCLUDES)

LLVM_ROOT_PATH := external/llvm
include $(LLVM_ROOT_PATH)/llvm.mk

CLANG_ROOT_PATH := external/clang
include $(CLANG_ROOT_PATH)/clang.mk

ifneq ($(LLVM_HOST_BUILD_MK),)
include $(LLVM_HOST_BUILD_MK)
endif

ifneq ($(CLANG_HOST_BUILD_MK),)
include $(CLANG_HOST_BUILD_MK)
endif

# strip out flags from clang/llvm that we know we don't handle
LOCAL_CFLAGS := $(subst -pedantic,,$(LOCAL_CFLAGS))
LOCAL_CPPFLAGS := $(subst -pedantic,,$(LOCAL_CPPFLAGS))