Home | History | Annotate | Download | only in Support
      1 LOCAL_PATH:= $(call my-dir)
      2 LLVM_ROOT_PATH := $(LOCAL_PATH)/../..
      3 include $(LLVM_ROOT_PATH)/llvm.mk
      4 
      5 support_SRC_FILES := \
      6   Allocator.cpp \
      7   APFloat.cpp \
      8   APInt.cpp \
      9   APSInt.cpp \
     10   ARMBuildAttrs.cpp \
     11   ARMWinEH.cpp \
     12   Atomic.cpp \
     13   BlockFrequency.cpp \
     14   BranchProbability.cpp \
     15   CommandLine.cpp \
     16   Compression.cpp \
     17   ConvertUTF.c \
     18   ConvertUTFWrapper.cpp \
     19   CrashRecoveryContext.cpp \
     20   DAGDeltaAlgorithm.cpp \
     21   DataStream.cpp \
     22   DataExtractor.cpp \
     23   Debug.cpp \
     24   DeltaAlgorithm.cpp \
     25   Dwarf.cpp \
     26   DynamicLibrary.cpp \
     27   Errno.cpp \
     28   ErrorHandling.cpp \
     29   FileUtilities.cpp \
     30   FoldingSet.cpp \
     31   FormattedStream.cpp \
     32   GraphWriter.cpp \
     33   Hashing.cpp \
     34   Host.cpp \
     35   IntervalMap.cpp \
     36   IntEqClasses.cpp \
     37   IntrusiveRefCntPtr.cpp \
     38   LEB128.cpp \
     39   LineIterator.cpp \
     40   Locale.cpp \
     41   LockFileManager.cpp \
     42   MD5.cpp \
     43   ManagedStatic.cpp \
     44   MathExtras.cpp \
     45   Memory.cpp \
     46   MemoryBuffer.cpp \
     47   MemoryObject.cpp \
     48   Mutex.cpp \
     49   Options.cpp \
     50   Path.cpp \
     51   PluginLoader.cpp \
     52   PrettyStackTrace.cpp \
     53   Process.cpp \
     54   Program.cpp \
     55   RandomNumberGenerator.cpp \
     56   Regex.cpp \
     57   RWMutex.cpp \
     58   ScaledNumber.cpp \
     59   SearchForAddressOfSpecialSymbol.cpp \
     60   Signals.cpp \
     61   SmallPtrSet.cpp \
     62   SmallVector.cpp \
     63   StreamingMemoryObject.cpp \
     64   SourceMgr.cpp \
     65   SpecialCaseList.cpp \
     66   Statistic.cpp \
     67   StringExtras.cpp \
     68   StringMap.cpp \
     69   StringPool.cpp \
     70   StringRef.cpp \
     71   SystemUtils.cpp \
     72   TargetRegistry.cpp \
     73   Threading.cpp \
     74   ThreadLocal.cpp \
     75   Timer.cpp \
     76   TimeValue.cpp \
     77   ToolOutputFile.cpp \
     78   Triple.cpp \
     79   Twine.cpp \
     80   Unicode.cpp \
     81   Valgrind.cpp \
     82   Watchdog.cpp \
     83   YAMLParser.cpp \
     84   YAMLTraits.cpp \
     85   circular_raw_ostream.cpp \
     86   raw_os_ostream.cpp \
     87   raw_ostream.cpp \
     88   regcomp.c \
     89   regerror.c \
     90   regexec.c \
     91   regfree.c \
     92   regstrlcpy.c
     93 
     94 
     95 # For the host
     96 # =====================================================
     97 include $(CLEAR_VARS)
     98 
     99 # FIXME: This only requires RTTI because tblgen uses it.  Fix that.
    100 REQUIRES_RTTI := 1
    101 
    102 LOCAL_SRC_FILES := $(support_SRC_FILES)
    103 
    104 LOCAL_MODULE:= libLLVMSupport
    105 
    106 LOCAL_CFLAGS := -D__android__
    107 
    108 LOCAL_MODULE_TAGS := optional
    109 
    110 include $(LLVM_HOST_BUILD_MK)
    111 include $(BUILD_HOST_STATIC_LIBRARY)
    112 
    113 # For the device
    114 # =====================================================
    115 ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
    116 include $(CLEAR_VARS)
    117 
    118 LOCAL_SRC_FILES := $(support_SRC_FILES)
    119 
    120 LOCAL_MODULE:= libLLVMSupport
    121 
    122 LOCAL_CFLAGS := -D__android__
    123 
    124 LOCAL_MODULE_TAGS := optional
    125 
    126 include $(LLVM_DEVICE_BUILD_MK)
    127 include $(BUILD_STATIC_LIBRARY)
    128 endif
    129