2008-10-26 08:56:18 +08:00
|
|
|
set(LLVM_NO_RTTI 1)
|
|
|
|
|
2009-03-25 01:52:34 +08:00
|
|
|
add_clang_library(clangFrontend
|
2009-05-19 07:06:15 +08:00
|
|
|
ASTConsumers.cpp
|
2010-02-10 03:21:46 +08:00
|
|
|
ASTMerge.cpp
|
2009-06-24 06:01:29 +08:00
|
|
|
ASTUnit.cpp
|
2010-05-07 23:41:56 +08:00
|
|
|
BoostConAction.cpp
|
2009-05-19 12:21:30 +08:00
|
|
|
CacheTokens.cpp
|
2009-11-13 11:51:44 +08:00
|
|
|
CompilerInstance.cpp
|
2009-11-17 14:02:29 +08:00
|
|
|
CompilerInvocation.cpp
|
2009-06-16 03:02:54 +08:00
|
|
|
DeclXML.cpp
|
2009-05-19 12:21:30 +08:00
|
|
|
DependencyFile.cpp
|
|
|
|
DiagChecker.cpp
|
2009-05-22 05:21:53 +08:00
|
|
|
DocumentXML.cpp
|
2009-11-14 18:42:35 +08:00
|
|
|
FrontendAction.cpp
|
2009-11-14 18:42:46 +08:00
|
|
|
FrontendActions.cpp
|
2009-11-13 10:06:12 +08:00
|
|
|
FrontendOptions.cpp
|
2008-10-26 08:56:18 +08:00
|
|
|
InitHeaderSearch.cpp
|
2009-04-21 13:40:52 +08:00
|
|
|
InitPreprocessor.cpp
|
2009-11-26 10:14:31 +08:00
|
|
|
LangStandards.cpp
|
2009-05-19 12:21:30 +08:00
|
|
|
PrintPreprocessedOutput.cpp
|
2009-05-22 05:21:53 +08:00
|
|
|
StmtXML.cpp
|
2009-05-19 12:21:30 +08:00
|
|
|
TextDiagnosticBuffer.cpp
|
|
|
|
TextDiagnosticPrinter.cpp
|
2009-06-16 03:02:54 +08:00
|
|
|
TypeXML.cpp
|
2009-11-14 11:23:19 +08:00
|
|
|
VerifyDiagnosticsClient.cpp
|
2009-05-19 12:21:30 +08:00
|
|
|
Warnings.cpp
|
2008-10-26 08:56:18 +08:00
|
|
|
)
|
2009-06-18 23:05:47 +08:00
|
|
|
|
2010-09-11 05:13:16 +08:00
|
|
|
target_link_libraries(clangFrontend
|
|
|
|
LLVMCore
|
|
|
|
|
|
|
|
clangDriver
|
|
|
|
clangParse
|
|
|
|
clangSema
|
|
|
|
clangAST
|
|
|
|
clangLex
|
|
|
|
clangBasic
|
|
|
|
)
|
|
|
|
|
2009-10-13 04:50:45 +08:00
|
|
|
IF(MSVC)
|
|
|
|
get_target_property(NON_ANSI_COMPILE_FLAGS clangFrontend COMPILE_FLAGS)
|
|
|
|
string(REPLACE /Za
|
|
|
|
"" NON_ANSI_COMPILE_FLAGS
|
|
|
|
${NON_ANSI_COMPILE_FLAGS})
|
|
|
|
set_target_properties(clangFrontend PROPERTIES COMPILE_FLAGS ${NON_ANSI_COMPILE_FLAGS})
|
|
|
|
ENDIF(MSVC)
|
|
|
|
|
2010-09-11 05:13:16 +08:00
|
|
|
add_dependencies(clangFrontend
|
2010-06-17 08:37:02 +08:00
|
|
|
ClangAttrClasses
|
|
|
|
ClangAttrList
|
2010-09-09 07:40:30 +08:00
|
|
|
ClangCC1Options
|
2010-09-11 05:13:16 +08:00
|
|
|
ClangDiagnosticFrontend
|
2009-06-25 13:03:29 +08:00
|
|
|
ClangDiagnosticLex
|
2010-05-05 13:41:05 +08:00
|
|
|
ClangDiagnosticSema
|
2010-05-30 15:21:58 +08:00
|
|
|
ClangDeclNodes
|
2010-09-11 05:13:16 +08:00
|
|
|
ClangStmtNodes
|
|
|
|
)
|