aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2011-07-13 17:26:13 -0700
committerStephen Hines <srhines@google.com>2011-07-13 17:26:13 -0700
commit7445072fa666b054015b797743e08c02557068e9 (patch)
tree5cd5e18b93065989222133e0c7b62e3ea93cf24e /lib
parent8aca41132270925dfb55502ea2126e2c464ac0eb (diff)
downloadexternal_llvm-7445072fa666b054015b797743e08c02557068e9.zip
external_llvm-7445072fa666b054015b797743e08c02557068e9.tar.gz
external_llvm-7445072fa666b054015b797743e08c02557068e9.tar.bz2
Build BitcodeWriter for device as well.
BUG=4278636 Change-Id: Id16d7a74c19e8575af4391997bd226b26498053e
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)