aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2013-06-21 16:26:44 -0700
committerStephen Hines <srhines@google.com>2013-06-21 16:26:44 -0700
commit6cd16fb4dc2466f9fdebb407ad7c42437d67976e (patch)
tree174b1e55fce68cdc35c1c9323e5d415daf6d14a9
parent8b37121eb9b352aef4b4d5e8058e2a6d7bbb05a1 (diff)
downloadandroid_frameworks_compile_slang-6cd16fb4dc2466f9fdebb407ad7c42437d67976e.tar.gz
android_frameworks_compile_slang-6cd16fb4dc2466f9fdebb407ad7c42437d67976e.tar.bz2
android_frameworks_compile_slang-6cd16fb4dc2466f9fdebb407ad7c42437d67976e.zip
Provide LLVM 3.2 BitcodeWriter as a device static library.
This will allow the bcinfo BitcodeTranslator to write LLVM 3.2 compatible bitcode. Change-Id: Id0137ec04a102f09af5b4c0b8020c5ae9b9f3554
-rw-r--r--BitWriter_3_2/Android.mk18
1 files changed, 18 insertions, 0 deletions
diff --git a/BitWriter_3_2/Android.mk b/BitWriter_3_2/Android.mk
index 6860880..c881ec5 100644
--- a/BitWriter_3_2/Android.mk
+++ b/BitWriter_3_2/Android.mk
@@ -25,3 +25,21 @@ include $(LLVM_HOST_BUILD_MK)
include $(LLVM_GEN_INTRINSICS_MK)
include $(BUILD_HOST_STATIC_LIBRARY)
+# For the device
+# =====================================================
+include $(CLEAR_VARS)
+
+LOCAL_CFLAGS += $(local_cflags_for_slang)
+LOCAL_C_INCLUDES += frameworks/compile/slang
+
+LOCAL_SRC_FILES := $(bitcode_writer_3_2_SRC_FILES)
+
+LOCAL_MODULE:= libLLVMBitWriter_3_2
+
+LOCAL_MODULE_TAGS := optional
+
+include $(LLVM_DEVICE_BUILD_MK)
+include $(LLVM_GEN_INTRINSICS_MK)
+include $(BUILD_STATIC_LIBRARY)
+
+