Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 1 | add_llvm_library(LLVMSupport |
2 | APFloat.cpp | ||||
3 | APInt.cpp | ||||
4 | APSInt.cpp | ||||
Saleem Abdulrasool | 278a9f4 | 2014-01-19 08:25:27 +0000 | [diff] [blame] | 5 | ARMBuildAttrs.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 6 | Allocator.cpp |
Jakub Staszak | 49993f2 | 2011-07-25 22:24:51 +0000 | [diff] [blame] | 7 | BlockFrequency.cpp |
Andrew Trick | 3d4e64b | 2011-06-11 01:05:22 +0000 | [diff] [blame] | 8 | BranchProbability.cpp |
Douglas Gregor | 3ab9e50 | 2009-12-23 17:03:46 +0000 | [diff] [blame] | 9 | circular_raw_ostream.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 10 | CommandLine.cpp |
Alexey Samsonov | 2fb337e | 2013-04-23 08:28:39 +0000 | [diff] [blame] | 11 | Compression.cpp |
Dmitri Gribenko | b311f4e | 2013-01-30 12:05:05 +0000 | [diff] [blame] | 12 | ConvertUTF.c |
13 | ConvertUTFWrapper.cpp | ||||
Douglas Gregor | b7b5a7d | 2010-07-28 17:17:46 +0000 | [diff] [blame] | 14 | CrashRecoveryContext.cpp |
Benjamin Kramer | 88a1d9f | 2011-09-13 19:42:16 +0000 | [diff] [blame] | 15 | DataExtractor.cpp |
Derek Schuff | 8b2dcad | 2012-02-06 22:30:29 +0000 | [diff] [blame] | 16 | DataStream.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 17 | Debug.cpp |
Daniel Dunbar | ff53d46 | 2009-12-03 11:12:42 +0000 | [diff] [blame] | 18 | DeltaAlgorithm.cpp |
Daniel Dunbar | 579ba2a | 2010-06-08 16:21:22 +0000 | [diff] [blame] | 19 | DAGDeltaAlgorithm.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 20 | Dwarf.cpp |
Mike Stump | 54731d5 | 2009-07-07 18:52:14 +0000 | [diff] [blame] | 21 | ErrorHandling.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 22 | FileUtilities.cpp |
Nick Kledzik | 5fce8c4 | 2012-08-01 02:29:50 +0000 | [diff] [blame] | 23 | FileOutputBuffer.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 24 | FoldingSet.cpp |
Ted Kremenek | 57da3ed | 2009-07-14 20:44:17 +0000 | [diff] [blame] | 25 | FormattedStream.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 26 | GraphWriter.cpp |
Chandler Carruth | 1d03a3b | 2012-03-01 18:55:25 +0000 | [diff] [blame] | 27 | Hashing.cpp |
Jakob Stoklund Olesen | baee655 | 2010-12-21 00:04:46 +0000 | [diff] [blame] | 28 | IntEqClasses.cpp |
Jakob Stoklund Olesen | 345945e | 2010-11-19 04:47:19 +0000 | [diff] [blame] | 29 | IntervalMap.cpp |
Chandler Carruth | e805b16 | 2011-12-20 08:42:11 +0000 | [diff] [blame] | 30 | IntrusiveRefCntPtr.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 31 | IsInf.cpp |
32 | IsNAN.cpp | ||||
Logan Chien | dbed91e | 2014-02-22 15:39:39 +0000 | [diff] [blame] | 33 | LEB128.cpp |
Chandler Carruth | f8c5281 | 2013-12-27 04:28:57 +0000 | [diff] [blame] | 34 | LineIterator.cpp |
Seth Cantrell | 75dbcb8 | 2012-04-17 20:03:03 +0000 | [diff] [blame] | 35 | Locale.cpp |
Douglas Gregor | 7039e35 | 2012-01-29 20:15:10 +0000 | [diff] [blame] | 36 | LockFileManager.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 37 | ManagedStatic.cpp |
38 | MemoryBuffer.cpp | ||||
Ted Kremenek | c74e09f | 2009-09-11 21:49:45 +0000 | [diff] [blame] | 39 | MemoryObject.cpp |
Eric Christopher | db142d4 | 2013-05-21 01:30:38 +0000 | [diff] [blame] | 40 | MD5.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 41 | PluginLoader.cpp |
Duncan Sands | 96f52eb | 2009-03-05 09:19:13 +0000 | [diff] [blame] | 42 | PrettyStackTrace.cpp |
Ted Kremenek | 1543d13 | 2009-09-01 17:01:02 +0000 | [diff] [blame] | 43 | Regex.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 44 | SmallPtrSet.cpp |
Chris Lattner | 4ea86c4 | 2009-12-16 08:44:24 +0000 | [diff] [blame] | 45 | SmallVector.cpp |
Chris Lattner | fd25575 | 2009-06-21 03:41:50 +0000 | [diff] [blame] | 46 | SourceMgr.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 47 | Statistic.cpp |
Derek Schuff | 8b2dcad | 2012-02-06 22:30:29 +0000 | [diff] [blame] | 48 | StreamableMemoryObject.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 49 | StringExtras.cpp |
50 | StringMap.cpp | ||||
51 | StringPool.cpp | ||||
Daniel Dunbar | 4498168 | 2009-09-16 22:38:48 +0000 | [diff] [blame] | 52 | StringRef.cpp |
Ahmed Bougacha | aa79068 | 2013-05-24 01:07:04 +0000 | [diff] [blame] | 53 | StringRefMemoryObject.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 54 | SystemUtils.cpp |
55 | Timer.cpp | ||||
John Thompson | f41f11c | 2010-10-07 23:12:15 +0000 | [diff] [blame] | 56 | ToolOutputFile.cpp |
Douglas Gregor | bbcf90f | 2009-05-27 16:52:17 +0000 | [diff] [blame] | 57 | Triple.cpp |
Daniel Dunbar | 0cf4e69 | 2009-07-24 07:04:49 +0000 | [diff] [blame] | 58 | Twine.cpp |
Alexander Kornienko | 9aa60fd | 2013-09-04 16:00:12 +0000 | [diff] [blame] | 59 | Unicode.cpp |
Michael J. Spencer | 22120c4 | 2012-04-03 23:09:22 +0000 | [diff] [blame] | 60 | YAMLParser.cpp |
Nick Kledzik | f60a927 | 2012-12-12 20:46:15 +0000 | [diff] [blame] | 61 | YAMLTraits.cpp |
Oscar Fuentes | a5ff9e3 | 2009-08-25 00:02:29 +0000 | [diff] [blame] | 62 | raw_os_ostream.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 63 | raw_ostream.cpp |
Torok Edwin | e14d4cd | 2009-08-30 08:24:09 +0000 | [diff] [blame] | 64 | regcomp.c |
65 | regerror.c | ||||
66 | regexec.c | ||||
67 | regfree.c | ||||
68 | regstrlcpy.c | ||||
Michael J. Spencer | 447762d | 2010-11-29 18:16:10 +0000 | [diff] [blame] | 69 | |
70 | # System | ||||
Michael J. Spencer | 447762d | 2010-11-29 18:16:10 +0000 | [diff] [blame] | 71 | Atomic.cpp |
72 | Disassembler.cpp | ||||
73 | DynamicLibrary.cpp | ||||
74 | Errno.cpp | ||||
75 | Host.cpp | ||||
76 | IncludeFile.cpp | ||||
77 | Memory.cpp | ||||
78 | Mutex.cpp | ||||
Rafael Espindola | f1fc382 | 2013-06-26 19:33:03 +0000 | [diff] [blame] | 79 | Path.cpp |
Michael J. Spencer | 447762d | 2010-11-29 18:16:10 +0000 | [diff] [blame] | 80 | Process.cpp |
81 | Program.cpp | ||||
82 | RWMutex.cpp | ||||
83 | SearchForAddressOfSpecialSymbol.cpp | ||||
84 | Signals.cpp | ||||
85 | system_error.cpp | ||||
Evan Cheng | 2bb4035 | 2011-08-24 18:08:43 +0000 | [diff] [blame] | 86 | TargetRegistry.cpp |
Michael J. Spencer | 447762d | 2010-11-29 18:16:10 +0000 | [diff] [blame] | 87 | ThreadLocal.cpp |
88 | Threading.cpp | ||||
89 | TimeValue.cpp | ||||
90 | Valgrind.cpp | ||||
Nick Lewycky | 8d97162 | 2013-03-26 01:29:15 +0000 | [diff] [blame] | 91 | Watchdog.cpp |
NAKAMURA Takumi | 6acf320 | 2014-01-20 10:20:23 +0000 | [diff] [blame] | 92 | |
93 | ADDITIONAL_HEADERS | ||||
Michael J. Spencer | 447762d | 2010-11-29 18:16:10 +0000 | [diff] [blame] | 94 | Unix/Host.inc |
95 | Unix/Memory.inc | ||||
96 | Unix/Mutex.inc | ||||
Rafael Espindola | f1fc382 | 2013-06-26 19:33:03 +0000 | [diff] [blame] | 97 | Unix/Path.inc |
Michael J. Spencer | 447762d | 2010-11-29 18:16:10 +0000 | [diff] [blame] | 98 | Unix/Process.inc |
99 | Unix/Program.inc | ||||
100 | Unix/RWMutex.inc | ||||
101 | Unix/Signals.inc | ||||
102 | Unix/system_error.inc | ||||
103 | Unix/ThreadLocal.inc | ||||
104 | Unix/TimeValue.inc | ||||
Nick Lewycky | 4e06def | 2013-03-26 01:27:52 +0000 | [diff] [blame] | 105 | Unix/Watchdog.inc |
Michael J. Spencer | 447762d | 2010-11-29 18:16:10 +0000 | [diff] [blame] | 106 | Windows/DynamicLibrary.inc |
107 | Windows/Host.inc | ||||
108 | Windows/Memory.inc | ||||
109 | Windows/Mutex.inc | ||||
Rafael Espindola | f1fc382 | 2013-06-26 19:33:03 +0000 | [diff] [blame] | 110 | Windows/Path.inc |
Michael J. Spencer | 447762d | 2010-11-29 18:16:10 +0000 | [diff] [blame] | 111 | Windows/Process.inc |
112 | Windows/Program.inc | ||||
113 | Windows/RWMutex.inc | ||||
114 | Windows/Signals.inc | ||||
115 | Windows/system_error.inc | ||||
116 | Windows/ThreadLocal.inc | ||||
117 | Windows/TimeValue.inc | ||||
Nick Lewycky | 4e06def | 2013-03-26 01:27:52 +0000 | [diff] [blame] | 118 | Windows/Watchdog.inc |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 119 | ) |
NAKAMURA Takumi | af2c113 | 2014-02-23 06:27:04 +0000 | [diff] [blame] | 120 | set(system_libs) |
121 | if( NOT MSVC ) | ||||
122 | if( MINGW ) | ||||
123 | set(system_libs ${system_libs} imagehlp psapi shell32) | ||||
124 | elseif( CMAKE_HOST_UNIX ) | ||||
125 | if( HAVE_LIBRT ) | ||||
126 | set(system_libs ${system_libs} rt) | ||||
127 | endif() | ||||
128 | if( HAVE_LIBDL ) | ||||
129 | set(system_libs ${system_libs} ${CMAKE_DL_LIBS}) | ||||
130 | endif() | ||||
131 | if(LLVM_ENABLE_TERMINFO) | ||||
132 | if(HAVE_TERMINFO) | ||||
133 | set(system_libs ${system_libs} ${TERMINFO_LIBS}) | ||||
134 | endif() | ||||
135 | endif() | ||||
136 | if( LLVM_ENABLE_THREADS AND HAVE_LIBPTHREAD ) | ||||
137 | set(system_libs ${system_libs} pthread) | ||||
138 | endif() | ||||
139 | if ( LLVM_ENABLE_ZLIB AND HAVE_LIBZ ) | ||||
140 | set(system_libs ${system_libs} z) | ||||
141 | endif() | ||||
142 | endif( MINGW ) | ||||
143 | endif( NOT MSVC ) | ||||
NAKAMURA Takumi | 4ca51b9 | 2014-02-26 12:18:55 +0000 | [diff] [blame] | 144 | |
145 | |||||
146 | if(POLICY CMP0022 AND BUILD_SHARED_LIBS) | ||||
147 | # FIXME: Should this be really PUBLIC? | ||||
148 | target_link_libraries(LLVMSupport PUBLIC ${system_libs}) | ||||
149 | else() | ||||
150 | target_link_libraries(LLVMSupport ${cmake_2_8_12_INTERFACE} ${system_libs}) | ||||
151 | endif() | ||||
152 | |||||
NAKAMURA Takumi | af2c113 | 2014-02-23 06:27:04 +0000 | [diff] [blame] | 153 | set_property(TARGET LLVMSupport PROPERTY LLVM_SYSTEM_LIBS "${system_libs}") |