aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC/MCDisassembler/Android.mk
diff options
context:
space:
mode:
Diffstat (limited to 'lib/MC/MCDisassembler/Android.mk')
-rw-r--r--lib/MC/MCDisassembler/Android.mk26
1 files changed, 24 insertions, 2 deletions
diff --git a/lib/MC/MCDisassembler/Android.mk b/lib/MC/MCDisassembler/Android.mk
index 7f73df3..87455e2 100644
--- a/lib/MC/MCDisassembler/Android.mk
+++ b/lib/MC/MCDisassembler/Android.mk
@@ -1,15 +1,37 @@
LOCAL_PATH:= $(call my-dir)
+mc_disassembler_SRC_FILES := \
+ Disassembler.cpp \
+ MCDisassembler.cpp \
+ MCExternalSymbolizer.cpp \
+ MCRelocationInfo.cpp
+
+
# For the host
# =====================================================
include $(CLEAR_VARS)
-LOCAL_SRC_FILES := \
- Disassembler.cpp
+LOCAL_SRC_FILES := $(mc_disassembler_SRC_FILES)
LOCAL_MODULE:= libLLVMMCDisassembler
LOCAL_MODULE_TAGS := optional
+
include $(LLVM_HOST_BUILD_MK)
include $(BUILD_HOST_STATIC_LIBRARY)
+
+# For the device
+# =====================================================
+include $(CLEAR_VARS)
+ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
+
+LOCAL_SRC_FILES := $(mc_disassembler_SRC_FILES)
+
+LOCAL_MODULE:= libLLVMMCDisassembler
+
+LOCAL_MODULE_TAGS := optional
+
+include $(LLVM_DEVICE_BUILD_MK)
+include $(BUILD_STATIC_LIBRARY)
+endif