aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Bitcode/Writer/Android.mk26
1 files changed, 21 insertions, 5 deletions
diff --git a/lib/Bitcode/Writer/Android.mk b/lib/Bitcode/Writer/Android.mk
index 22b2054..c325d14 100644
--- a/lib/Bitcode/Writer/Android.mk
+++ b/lib/Bitcode/Writer/Android.mk
@@ -1,15 +1,17 @@
LOCAL_PATH:= $(call my-dir)
-# For the host only
-# =====================================================
-include $(CLEAR_VARS)
-
-LOCAL_SRC_FILES := \
+bitcode_writer_SRC_FILES := \
BitWriter.cpp \
BitcodeWriter.cpp \
BitcodeWriterPass.cpp \
ValueEnumerator.cpp
+# For the host
+# =====================================================
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(bitcode_writer_SRC_FILES)
+
LOCAL_MODULE:= libLLVMBitWriter
LOCAL_MODULE_TAGS := optional
@@ -17,3 +19,17 @@ LOCAL_MODULE_TAGS := optional
include $(LLVM_HOST_BUILD_MK)
include $(LLVM_GEN_INTRINSICS_MK)
include $(BUILD_HOST_STATIC_LIBRARY)
+
+# For the device
+# =====================================================
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(bitcode_writer_SRC_FILES)
+
+LOCAL_MODULE:= libLLVMBitWriter
+
+LOCAL_MODULE_TAGS := optional
+
+include $(LLVM_DEVICE_BUILD_MK)
+include $(LLVM_GEN_INTRINSICS_MK)
+include $(BUILD_STATIC_LIBRARY)