Home | History | Annotate | Download | only in BitReader_3_0
      1 LOCAL_PATH:= $(call my-dir)
      2 
      3 LLVM_ROOT_PATH := external/llvm
      4 include $(LLVM_ROOT_PATH)/llvm.mk
      5 
      6 bitcode_reader_3_0_SRC_FILES := \
      7   BitcodeReader.cpp
      8 
      9 # For the host
     10 # =====================================================
     11 include $(CLEAR_VARS)
     12 
     13 LOCAL_MODULE:= libLLVMBitReader_3_0
     14 LOCAL_MODULE_HOST_OS := darwin linux windows
     15 
     16 LOCAL_SRC_FILES := $(bitcode_reader_3_0_SRC_FILES)
     17 LOCAL_CFLAGS += -D__HOST__
     18 
     19 include $(LLVM_HOST_BUILD_MK)
     20 include $(LLVM_GEN_ATTRIBUTES_MK)
     21 include $(LLVM_GEN_INTRINSICS_MK)
     22 include $(BUILD_HOST_STATIC_LIBRARY)
     23 
     24 # For the device
     25 # =====================================================
     26 ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
     27 include $(CLEAR_VARS)
     28 
     29 LOCAL_MODULE:= libLLVMBitReader_3_0
     30 
     31 LOCAL_SRC_FILES := $(bitcode_reader_3_0_SRC_FILES)
     32 
     33 include $(LLVM_DEVICE_BUILD_MK)
     34 include $(LLVM_GEN_ATTRIBUTES_MK)
     35 include $(LLVM_GEN_INTRINSICS_MK)
     36 include $(BUILD_STATIC_LIBRARY)
     37 endif
     38