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