Home | History | Annotate | Download | only in Utils
      1 LOCAL_PATH := $(call my-dir)
      2 
      3 aarch64_utils_TBLGEN_TABLES := \
      4   AArch64GenRegisterInfo.inc \
      5   AArch64GenInstrInfo.inc \
      6   AArch64GenSubtargetInfo.inc
      7 
      8 aarch64_utils_SRC_FILES := \
      9   AArch64BaseInfo.cpp
     10 
     11 # For the device
     12 # =====================================================
     13 ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
     14 include $(CLEAR_VARS)
     15 
     16 LOCAL_SRC_FILES := $(aarch64_utils_SRC_FILES)
     17 
     18 LOCAL_C_INCLUDES += $(LOCAL_PATH)/..
     19 
     20 LOCAL_MODULE:= libLLVMAArch64Utils
     21 
     22 LOCAL_MODULE_TAGS := optional
     23 
     24 TBLGEN_TD_DIR := $(LOCAL_PATH)/..
     25 TBLGEN_TABLES := $(aarch64_utils_TBLGEN_TABLES)
     26 
     27 include $(LLVM_DEVICE_BUILD_MK)
     28 include $(LLVM_TBLGEN_RULES_MK)
     29 include $(LLVM_GEN_INTRINSICS_MK)
     30 include $(BUILD_STATIC_LIBRARY)
     31 endif
     32 
     33 # For the host
     34 # =====================================================
     35 include $(CLEAR_VARS)
     36 
     37 LOCAL_SRC_FILES := $(aarch64_utils_SRC_FILES)
     38 
     39 LOCAL_C_INCLUDES += $(LOCAL_PATH)/..
     40 
     41 LOCAL_MODULE:= libLLVMAArch64Utils
     42 
     43 LOCAL_MODULE_TAGS := optional
     44 
     45 TBLGEN_TD_DIR := $(LOCAL_PATH)/..
     46 TBLGEN_TABLES := $(aarch64_utils_TBLGEN_TABLES)
     47 
     48 include $(LLVM_HOST_BUILD_MK)
     49 include $(LLVM_TBLGEN_RULES_MK)
     50 include $(LLVM_GEN_INTRINSICS_MK)
     51 include $(BUILD_HOST_STATIC_LIBRARY)
     52