aboutsummaryrefslogtreecommitdiff
path: root/source/Plugins/Process/POSIX/Android.mk
blob: 0eda40351d89b950d758beb7128ac80b246d4cc0 (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
LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)
include $(CLEAR_TBLGEN_VARS)

TBLGEN_TABLES := \
  DiagnosticCommonKinds.inc \
  DeclNodes.inc \
  StmtNodes.inc

lldb_PluginProcessPOSIX_SRC_FILES := \
  POSIXStopInfo.cpp \
  POSIXThread.cpp \
  ProcessMessage.cpp \
  ProcessPOSIX.cpp \
  ProcessPOSIXLog.cpp \
  RegisterContextFreeBSD_x86_64.cpp \
  RegisterContext_i386.cpp \
  RegisterContextLinux_x86_64.cpp \
  RegisterContext_x86_64.cpp

LOCAL_SRC_FILES := $(lldb_PluginProcessPOSIX_SRC_FILES)

LOCAL_MODULE:= liblldbPluginProcessPOSIX
LOCAL_MODULE_TAGS := optional

include $(LLDB_BUILD_MK)
include $(CLANG_VERSION_INC_MK)
include $(CLANG_TBLGEN_RULES_MK)

# =====
# tweak local include paths not present in $(LLDB_BUILD_MK)
# =====
LOCAL_C_INCLUDES += $(LLDB_ROOT_PATH)/source/Plugins/Utility

ifeq ($(HOST_OS),linux)
LOCAL_C_INCLUDES += $(LLDB_ROOT_PATH)/source/Plugins/Process/Linux
LOCAL_CFLAGS += -Wno-extended-offsetof
endif

ifneq (,$(filter $(HOST_OS), freebsd))
LOCAL_C_INCLUDES += $(LLDB_ROOT_PATH)/source/Plugins/Process/FreeBSD
endif
# =====

include $(BUILD_HOST_STATIC_LIBRARY)