blob: 73e693befa4f599d8b114f635214066d083ec5ae [file] [log] [blame]
Jeffrey Yasskin0a86d442011-02-11 23:46:38 +00001set(LLVM_LINK_COMPONENTS mc)
2
Oscar Fuentesd2f4e5e2008-10-26 00:56:18 +00003add_clang_library(clangBasic
Chris Lattner6b15cdc2009-06-14 01:05:48 +00004 Builtins.cpp
Steve Naroffe9b7d8a2009-04-01 15:50:34 +00005 ConvertUTF.c
Nico Weber941e47c2012-07-03 02:24:52 +00006 ConvertUTFWrapper.cpp
Oscar Fuentesd2f4e5e2008-10-26 00:56:18 +00007 Diagnostic.cpp
Benjamin Kramer3bbe0b02010-11-18 21:19:52 +00008 DiagnosticIDs.cpp
Oscar Fuentesd2f4e5e2008-10-26 00:56:18 +00009 FileManager.cpp
Chris Lattner10e286a2010-11-23 19:19:34 +000010 FileSystemStatCache.cpp
Oscar Fuentesd2f4e5e2008-10-26 00:56:18 +000011 IdentifierTable.cpp
Douglas Gregore289d812011-09-13 17:21:33 +000012 LangOptions.cpp
Douglas Gregor1a4761e2011-11-30 23:21:26 +000013 Module.cpp
John McCall260611a2012-06-20 06:18:46 +000014 ObjCRuntime.cpp
Oscar Fuentesd2f4e5e2008-10-26 00:56:18 +000015 SourceLocation.cpp
16 SourceManager.cpp
17 TargetInfo.cpp
18 Targets.cpp
19 TokenKinds.cpp
Douglas Gregorb8d11912009-10-05 20:33:49 +000020 Version.cpp
Douglas Gregor0a0d2b12011-03-23 00:50:03 +000021 VersionTuple.cpp
Oscar Fuentesd2f4e5e2008-10-26 00:56:18 +000022 )
Douglas Gregora393e9e2009-03-16 23:06:59 +000023
Douglas Gregorb8d11912009-10-05 20:33:49 +000024# Determine Subversion revision.
25# FIXME: This only gets updated when CMake is run, so this revision number
26# may be out-of-date!
Oscar Fuentes8523d812010-10-22 17:16:39 +000027if( NOT IS_SYMLINK "${CLANG_SOURCE_DIR}" ) # See PR 8437
28 find_package(Subversion)
29endif()
Daniel Dunbar5c14dce2009-10-24 20:32:58 +000030if (Subversion_FOUND AND EXISTS "${CLANG_SOURCE_DIR}/.svn")
Douglas Gregorb8d11912009-10-05 20:33:49 +000031 Subversion_WC_INFO(${CLANG_SOURCE_DIR} CLANG)
32 set_source_files_properties(Version.cpp
33 PROPERTIES COMPILE_DEFINITIONS "SVN_REVISION=\"${CLANG_WC_REVISION}\"")
34endif()
35
Chandler Carruthb0d86712012-06-21 01:30:21 +000036add_dependencies(clangBasic
37 ClangARMNeon
38 ClangAttrList
39 ClangDiagnosticAnalysis
40 ClangDiagnosticAST
NAKAMURA Takumif9181a72012-07-12 00:27:55 +000041 ClangDiagnosticComment
Chandler Carruthb0d86712012-06-21 01:30:21 +000042 ClangDiagnosticCommon
43 ClangDiagnosticDriver
44 ClangDiagnosticFrontend
45 ClangDiagnosticGroups
NAKAMURA Takumi866abce2012-07-27 06:18:12 +000046 ClangDiagnosticIndexName
Chandler Carruthb0d86712012-06-21 01:30:21 +000047 ClangDiagnosticLex
48 ClangDiagnosticParse
49 ClangDiagnosticSema
50 ClangDiagnosticSerialization
Chandler Carruthb0d86712012-06-21 01:30:21 +000051 )