aboutsummaryrefslogtreecommitdiff
path: root/source/Plugins/Process/POSIX/Android.mk
diff options
context:
space:
mode:
Diffstat (limited to 'source/Plugins/Process/POSIX/Android.mk')
-rw-r--r--source/Plugins/Process/POSIX/Android.mk46
1 files changed, 46 insertions, 0 deletions
diff --git a/source/Plugins/Process/POSIX/Android.mk b/source/Plugins/Process/POSIX/Android.mk
new file mode 100644
index 000000000..0eda40351
--- /dev/null
+++ b/source/Plugins/Process/POSIX/Android.mk
@@ -0,0 +1,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)