OSDN Git Service

Revert "Random Number Generator (llvm)"
[android-x86/external-llvm.git] / lib / Support / CMakeLists.txt
1 add_llvm_library(LLVMSupport
2   APFloat.cpp
3   APInt.cpp
4   APSInt.cpp
5   ARMBuildAttrs.cpp
6   ARMWinEH.cpp
7   Allocator.cpp
8   BlockFrequency.cpp
9   BranchProbability.cpp
10   circular_raw_ostream.cpp
11   CommandLine.cpp
12   Compression.cpp
13   ConvertUTF.c
14   ConvertUTFWrapper.cpp
15   CrashRecoveryContext.cpp
16   DataExtractor.cpp
17   DataStream.cpp
18   Debug.cpp
19   DeltaAlgorithm.cpp
20   DAGDeltaAlgorithm.cpp
21   Dwarf.cpp
22   ErrorHandling.cpp
23   FileUtilities.cpp
24   FileOutputBuffer.cpp
25   FoldingSet.cpp
26   FormattedStream.cpp
27   GraphWriter.cpp
28   Hashing.cpp
29   IntEqClasses.cpp
30   IntervalMap.cpp
31   IntrusiveRefCntPtr.cpp
32   IsInf.cpp
33   IsNAN.cpp
34   LEB128.cpp
35   LineIterator.cpp
36   Locale.cpp
37   LockFileManager.cpp
38   ManagedStatic.cpp
39   MemoryBuffer.cpp
40   MemoryObject.cpp
41   MD5.cpp
42   PluginLoader.cpp
43   PrettyStackTrace.cpp
44   Regex.cpp
45   SmallPtrSet.cpp
46   SmallVector.cpp
47   SourceMgr.cpp
48   Statistic.cpp
49   StreamableMemoryObject.cpp
50   StringExtras.cpp
51   StringMap.cpp
52   StringPool.cpp
53   StringRef.cpp
54   StringRefMemoryObject.cpp
55   SystemUtils.cpp
56   Timer.cpp
57   ToolOutputFile.cpp
58   Triple.cpp
59   Twine.cpp
60   Unicode.cpp
61   YAMLParser.cpp
62   YAMLTraits.cpp
63   raw_os_ostream.cpp
64   raw_ostream.cpp
65   regcomp.c
66   regerror.c
67   regexec.c
68   regfree.c
69   regstrlcpy.c
70
71 # System
72   Atomic.cpp
73   Disassembler.cpp
74   DynamicLibrary.cpp
75   Errno.cpp
76   Host.cpp
77   IncludeFile.cpp
78   Memory.cpp
79   Mutex.cpp
80   Path.cpp
81   Process.cpp
82   Program.cpp
83   RWMutex.cpp
84   SearchForAddressOfSpecialSymbol.cpp
85   Signals.cpp
86   TargetRegistry.cpp
87   ThreadLocal.cpp
88   Threading.cpp
89   TimeValue.cpp
90   Valgrind.cpp
91   Watchdog.cpp
92
93   ADDITIONAL_HEADERS
94   Unix/Host.inc
95   Unix/Memory.inc
96   Unix/Mutex.inc
97   Unix/Path.inc
98   Unix/Process.inc
99   Unix/Program.inc
100   Unix/RWMutex.inc
101   Unix/Signals.inc
102   Unix/ThreadLocal.inc
103   Unix/TimeValue.inc
104   Unix/Watchdog.inc
105   Windows/DynamicLibrary.inc
106   Windows/Host.inc
107   Windows/Memory.inc
108   Windows/Mutex.inc
109   Windows/Path.inc
110   Windows/Process.inc
111   Windows/Program.inc
112   Windows/RWMutex.inc
113   Windows/Signals.inc
114   Windows/ThreadLocal.inc
115   Windows/TimeValue.inc
116   Windows/Watchdog.inc
117   )
118 set(system_libs)
119 if( NOT MSVC )
120   if( MINGW )
121     set(system_libs ${system_libs} imagehlp psapi shell32)
122   elseif( CMAKE_HOST_UNIX )
123     if( HAVE_LIBRT )
124       set(system_libs ${system_libs} rt)
125     endif()
126     if( HAVE_LIBDL )
127       set(system_libs ${system_libs} ${CMAKE_DL_LIBS})
128     endif()
129     if(LLVM_ENABLE_TERMINFO)
130       if(HAVE_TERMINFO)
131         set(system_libs ${system_libs} ${TERMINFO_LIBS})
132       endif()
133     endif()
134     if( LLVM_ENABLE_THREADS AND HAVE_LIBPTHREAD )
135       set(system_libs ${system_libs} pthread)
136     endif()
137     if ( LLVM_ENABLE_ZLIB AND HAVE_LIBZ )
138       set(system_libs ${system_libs} z)
139     endif()
140   endif( MINGW )
141 endif( NOT MSVC )
142
143
144 if(POLICY CMP0022 AND BUILD_SHARED_LIBS)
145   # FIXME: Should this be really PUBLIC?
146   target_link_libraries(LLVMSupport PUBLIC ${system_libs})
147 else()
148   target_link_libraries(LLVMSupport ${cmake_2_8_12_INTERFACE} ${system_libs})
149 endif()
150
151 set_property(TARGET LLVMSupport PROPERTY LLVM_SYSTEM_LIBS "${system_libs}")