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