Jeffrey Yasskin | c498878 | 2011-02-11 23:46:38 +0000 | [diff] [blame] | 1 | set(LLVM_LINK_COMPONENTS mc) |
| 2 | |
Oscar Fuentes | 07d9f9a | 2008-10-26 00:56:18 +0000 | [diff] [blame] | 3 | add_clang_library(clangBasic |
Chris Lattner | 5abdec7 | 2009-06-14 01:05:48 +0000 | [diff] [blame] | 4 | Builtins.cpp |
Steve Naroff | 29cae66 | 2009-04-01 15:50:34 +0000 | [diff] [blame] | 5 | ConvertUTF.c |
Oscar Fuentes | 07d9f9a | 2008-10-26 00:56:18 +0000 | [diff] [blame] | 6 | Diagnostic.cpp |
Benjamin Kramer | fc30598 | 2010-11-18 21:19:52 +0000 | [diff] [blame] | 7 | DiagnosticIDs.cpp |
Oscar Fuentes | 07d9f9a | 2008-10-26 00:56:18 +0000 | [diff] [blame] | 8 | FileManager.cpp |
Chris Lattner | 226efd3 | 2010-11-23 19:19:34 +0000 | [diff] [blame] | 9 | FileSystemStatCache.cpp |
Oscar Fuentes | 07d9f9a | 2008-10-26 00:56:18 +0000 | [diff] [blame] | 10 | IdentifierTable.cpp |
Douglas Gregor | 79a9141 | 2011-09-13 17:21:33 +0000 | [diff] [blame] | 11 | LangOptions.cpp |
Douglas Gregor | de3ef50 | 2011-11-30 23:21:26 +0000 | [diff] [blame] | 12 | Module.cpp |
Oscar Fuentes | 07d9f9a | 2008-10-26 00:56:18 +0000 | [diff] [blame] | 13 | SourceLocation.cpp |
| 14 | SourceManager.cpp |
| 15 | TargetInfo.cpp |
| 16 | Targets.cpp |
| 17 | TokenKinds.cpp |
Douglas Gregor | 1b7035d | 2009-10-05 20:33:49 +0000 | [diff] [blame] | 18 | Version.cpp |
Douglas Gregor | 20b2ebd | 2011-03-23 00:50:03 +0000 | [diff] [blame] | 19 | VersionTuple.cpp |
Oscar Fuentes | 07d9f9a | 2008-10-26 00:56:18 +0000 | [diff] [blame] | 20 | ) |
Douglas Gregor | 23d75bb | 2009-03-16 23:06:59 +0000 | [diff] [blame] | 21 | |
Douglas Gregor | 1b7035d | 2009-10-05 20:33:49 +0000 | [diff] [blame] | 22 | # Determine Subversion revision. |
| 23 | # FIXME: This only gets updated when CMake is run, so this revision number |
| 24 | # may be out-of-date! |
Oscar Fuentes | ac1a614 | 2010-10-22 17:16:39 +0000 | [diff] [blame] | 25 | if( NOT IS_SYMLINK "${CLANG_SOURCE_DIR}" ) # See PR 8437 |
| 26 | find_package(Subversion) |
| 27 | endif() |
Daniel Dunbar | 841fa8e | 2009-10-24 20:32:58 +0000 | [diff] [blame] | 28 | if (Subversion_FOUND AND EXISTS "${CLANG_SOURCE_DIR}/.svn") |
Douglas Gregor | 1b7035d | 2009-10-05 20:33:49 +0000 | [diff] [blame] | 29 | Subversion_WC_INFO(${CLANG_SOURCE_DIR} CLANG) |
| 30 | set_source_files_properties(Version.cpp |
| 31 | PROPERTIES COMPILE_DEFINITIONS "SVN_REVISION=\"${CLANG_WC_REVISION}\"") |
| 32 | endif() |
| 33 | |
Michael J. Spencer | 0947621 | 2010-09-13 23:54:41 +0000 | [diff] [blame] | 34 | add_dependencies(clangBasic |
| 35 | ClangARMNeon |
| 36 | ClangAttrList |
| 37 | ClangDiagnosticAnalysis |
| 38 | ClangDiagnosticAST |
| 39 | ClangDiagnosticCommon |
| 40 | ClangDiagnosticDriver |
| 41 | ClangDiagnosticFrontend |
| 42 | ClangDiagnosticGroups |
| 43 | ClangDiagnosticLex |
| 44 | ClangDiagnosticParse |
Douglas Gregor | 46ce91a | 2011-04-15 22:04:17 +0000 | [diff] [blame] | 45 | ClangDiagnosticSema |
Ted Kremenek | 8f3c349 | 2011-12-17 20:08:54 +0000 | [diff] [blame] | 46 | ClangDiagnosticSerialization |
Douglas Gregor | 46ce91a | 2011-04-15 22:04:17 +0000 | [diff] [blame] | 47 | ClangDiagnosticIndexName) |
Michael J. Spencer | 0947621 | 2010-09-13 23:54:41 +0000 | [diff] [blame] | 48 | |