diff options
author | Stephen Hines <srhines@google.com> | 2014-10-23 10:51:46 -0700 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2014-10-23 11:06:27 -0700 |
commit | dd6f7227fefe772ab8cd2e96dabe4bf5e4ed0db7 (patch) | |
tree | 585a3139f12f0afc406e61cf4d34dd7b2146b8cb /tools | |
parent | 281cc67b6ac794b1eb8232e6efca366d870dad43 (diff) | |
download | external_llvm-dd6f7227fefe772ab8cd2e96dabe4bf5e4ed0db7.zip external_llvm-dd6f7227fefe772ab8cd2e96dabe4bf5e4ed0db7.tar.gz external_llvm-dd6f7227fefe772ab8cd2e96dabe4bf5e4ed0db7.tar.bz2 |
Add host and device build rules for the llvm-symbolizer binary.
This change also adds DebugInfo to libLLVM.so on the device. Previously, we
did not require this library to be present.
Change-Id: Ie5791b58fb6d414a6e06e652ba8a63e6e1bdc210
Diffstat (limited to 'tools')
-rw-r--r-- | tools/llvm-symbolizer/Android.mk | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/tools/llvm-symbolizer/Android.mk b/tools/llvm-symbolizer/Android.mk new file mode 100644 index 0000000..6a2d1d0 --- /dev/null +++ b/tools/llvm-symbolizer/Android.mk @@ -0,0 +1,40 @@ +LOCAL_PATH := $(call my-dir) + +LLVM_ROOT_PATH := $(LOCAL_PATH)/../.. +include $(LLVM_ROOT_PATH)/llvm.mk + +llvm_symbolizer_SRC_FILES := \ + LLVMSymbolize.cpp \ + llvm-symbolizer.cpp + +include $(CLEAR_VARS) + +LOCAL_MODULE := llvm-symbolizer +LOCAL_MODULE_CLASS := EXECUTABLES +LOCAL_MODULE_TAGS := optional +LOCAL_SRC_FILES := $(llvm_symbolizer_SRC_FILES) +LOCAL_LDLIBS += -lpthread -lm -ldl + +LOCAL_STATIC_LIBRARIES := \ + libLLVMDebugInfo \ + libLLVMObject \ + libLLVMBitReader \ + libLLVMMC \ + libLLVMMCParser \ + libLLVMCore \ + libLLVMSupport + +include $(LLVM_HOST_BUILD_MK) +include $(LLVM_GEN_INTRINSICS_MK) +include $(BUILD_HOST_EXECUTABLE) + +include $(CLEAR_VARS) + +LOCAL_MODULE := llvm-symbolizer +LOCAL_MODULE_CLASS := EXECUTABLES +LOCAL_SRC_FILES := $(llvm_symbolizer_SRC_FILES) +LOCAL_SHARED_LIBRARIES := libLLVM + +include $(LLVM_DEVICE_BUILD_MK) +include $(BUILD_EXECUTABLE) + |