• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1set(LLVM_LINK_COMPONENTS mc)
2
3add_clang_library(clangBasic
4  Builtins.cpp
5  CharInfo.cpp
6  Diagnostic.cpp
7  DiagnosticIDs.cpp
8  FileManager.cpp
9  FileSystemStatCache.cpp
10  IdentifierTable.cpp
11  LangOptions.cpp
12  Module.cpp
13  ObjCRuntime.cpp
14  OperatorPrecedence.cpp
15  SourceLocation.cpp
16  SourceManager.cpp
17  TargetInfo.cpp
18  Targets.cpp
19  TokenKinds.cpp
20  Version.cpp
21  VersionTuple.cpp
22  )
23
24# Determine Subversion revision.
25# FIXME: This only gets updated when CMake is run, so this revision number
26# may be out-of-date!
27if( NOT IS_SYMLINK "${CLANG_SOURCE_DIR}" )  # See PR 8437
28  find_package(Subversion)
29endif()
30if (Subversion_FOUND AND EXISTS "${CLANG_SOURCE_DIR}/.svn")
31  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
36add_dependencies(clangBasic
37  ClangARMNeon
38  ClangAttrList
39  ClangDiagnosticAnalysis
40  ClangDiagnosticAST
41  ClangDiagnosticComment
42  ClangDiagnosticCommon
43  ClangDiagnosticDriver
44  ClangDiagnosticFrontend
45  ClangDiagnosticGroups
46  ClangDiagnosticIndexName
47  ClangDiagnosticLex
48  ClangDiagnosticParse
49  ClangDiagnosticSema
50  ClangDiagnosticSerialization
51  )
52