2008-10-26 08:56:18 +08:00
|
|
|
set(LLVM_NO_RTTI 1)
|
|
|
|
|
|
|
|
add_clang_library(clangBasic
|
2009-06-14 09:05:48 +08:00
|
|
|
Builtins.cpp
|
2009-04-01 23:50:34 +08:00
|
|
|
ConvertUTF.c
|
2008-10-26 08:56:18 +08:00
|
|
|
Diagnostic.cpp
|
|
|
|
FileManager.cpp
|
|
|
|
IdentifierTable.cpp
|
|
|
|
SourceLocation.cpp
|
|
|
|
SourceManager.cpp
|
|
|
|
TargetInfo.cpp
|
|
|
|
Targets.cpp
|
|
|
|
TokenKinds.cpp
|
2009-10-06 04:33:49 +08:00
|
|
|
Version.cpp
|
2008-10-26 08:56:18 +08:00
|
|
|
)
|
2009-03-17 07:06:59 +08:00
|
|
|
|
2009-10-06 04:33:49 +08:00
|
|
|
# Determine Subversion revision.
|
|
|
|
# FIXME: This only gets updated when CMake is run, so this revision number
|
|
|
|
# may be out-of-date!
|
|
|
|
find_package(Subversion)
|
2009-10-25 04:32:58 +08:00
|
|
|
if (Subversion_FOUND AND EXISTS "${CLANG_SOURCE_DIR}/.svn")
|
2009-10-06 04:33:49 +08:00
|
|
|
Subversion_WC_INFO(${CLANG_SOURCE_DIR} CLANG)
|
|
|
|
set_source_files_properties(Version.cpp
|
|
|
|
PROPERTIES COMPILE_DEFINITIONS "SVN_REVISION=\"${CLANG_WC_REVISION}\"")
|
|
|
|
endif()
|
|
|
|
|
2009-03-17 07:06:59 +08:00
|
|
|
add_dependencies(clangBasic
|
2010-06-17 23:17:41 +08:00
|
|
|
ClangARMNeon
|
2010-06-17 08:37:02 +08:00
|
|
|
ClangAttrList
|
2009-03-17 07:06:59 +08:00
|
|
|
ClangDiagnosticAnalysis
|
|
|
|
ClangDiagnosticAST
|
|
|
|
ClangDiagnosticCommon
|
|
|
|
ClangDiagnosticDriver
|
|
|
|
ClangDiagnosticFrontend
|
2009-04-23 02:59:57 +08:00
|
|
|
ClangDiagnosticGroups
|
2009-03-17 07:06:59 +08:00
|
|
|
ClangDiagnosticLex
|
|
|
|
ClangDiagnosticParse
|
|
|
|
ClangDiagnosticSema)
|
2010-06-17 23:17:41 +08:00
|
|
|
|