| Shih-wei Liao | e445432 | 2010-04-07 12:21:42 -0700 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | |
| Logan Chien | 2e5a5ee | 2011-10-21 14:45:53 +0800 | [diff] [blame] | 3 | bitcode_reader_SRC_FILES := \ |
| Shih-wei Liao | e445432 | 2010-04-07 12:21:42 -0700 | [diff] [blame] | 4 | BitReader.cpp \ |
| Stephen Hines | 2123c1c | 2013-03-05 23:29:52 -0800 | [diff] [blame] | 5 | BitcodeReader.cpp \ |
| 6 | BitstreamReader.cpp |
| Shih-wei Liao | e445432 | 2010-04-07 12:21:42 -0700 | [diff] [blame] | 7 | |
| 8 | # For the host |
| 9 | # ===================================================== |
| 10 | include $(CLEAR_VARS) |
| 11 | |
| 12 | LOCAL_SRC_FILES := $(bitcode_reader_SRC_FILES) |
| 13 | |
| 14 | LOCAL_MODULE:= libLLVMBitReader |
| 15 | |
| Logan | 42c32da | 2011-01-15 12:10:18 +0800 | [diff] [blame] | 16 | LOCAL_MODULE_TAGS := optional |
| 17 | |
| Shih-wei Liao | e445432 | 2010-04-07 12:21:42 -0700 | [diff] [blame] | 18 | include $(LLVM_HOST_BUILD_MK) |
| 19 | include $(LLVM_GEN_INTRINSICS_MK) |
| 20 | include $(BUILD_HOST_STATIC_LIBRARY) |
| 21 | |
| 22 | # For the device |
| 23 | # ===================================================== |
| 24 | include $(CLEAR_VARS) |
| Stephen Hines | 36b5688 | 2014-04-23 16:57:46 -0700 | [diff] [blame] | 25 | ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS)) |
| Shih-wei Liao | e445432 | 2010-04-07 12:21:42 -0700 | [diff] [blame] | 26 | |
| 27 | LOCAL_SRC_FILES := $(bitcode_reader_SRC_FILES) |
| 28 | |
| 29 | LOCAL_MODULE:= libLLVMBitReader |
| 30 | |
| Logan | 42c32da | 2011-01-15 12:10:18 +0800 | [diff] [blame] | 31 | LOCAL_MODULE_TAGS := optional |
| 32 | |
| Shih-wei Liao | e445432 | 2010-04-07 12:21:42 -0700 | [diff] [blame] | 33 | include $(LLVM_DEVICE_BUILD_MK) |
| 34 | include $(LLVM_GEN_INTRINSICS_MK) |
| 35 | include $(BUILD_STATIC_LIBRARY) |
| Stephen Hines | 36b5688 | 2014-04-23 16:57:46 -0700 | [diff] [blame] | 36 | endif |