2010-09-14 07:54:41 +08:00
|
|
|
set( LLVM_USED_LIBS
|
2011-02-12 07:46:38 +08:00
|
|
|
clangAST
|
|
|
|
clangBasic
|
2010-09-14 07:54:41 +08:00
|
|
|
clangDriver
|
2011-02-12 07:46:38 +08:00
|
|
|
clangLex
|
2010-09-14 07:54:41 +08:00
|
|
|
clangParse
|
|
|
|
clangSema
|
2011-02-12 07:46:38 +08:00
|
|
|
clangSerialization
|
2010-09-14 07:54:41 +08:00
|
|
|
)
|
|
|
|
|
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
|
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
|
2011-04-05 07:17:56 +08:00
|
|
|
CreateInvocationFromCommandLine.cpp
|
2009-05-19 12:21:30 +08:00
|
|
|
DependencyFile.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
|
2011-02-02 23:41:17 +08:00
|
|
|
HeaderIncludeGen.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
|
2011-04-08 02:31:10 +08:00
|
|
|
LogDiagnosticPrinter.cpp
|
2011-01-26 06:10:37 +08:00
|
|
|
MultiplexConsumer.cpp
|
2009-05-19 12:21:30 +08:00
|
|
|
PrintPreprocessedOutput.cpp
|
|
|
|
TextDiagnosticBuffer.cpp
|
|
|
|
TextDiagnosticPrinter.cpp
|
2011-09-26 08:38:03 +08:00
|
|
|
VerifyDiagnosticConsumer.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
|
|
|
|
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-14 07:54:41 +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-14 07:54:41 +08:00
|
|
|
ClangDiagnosticFrontend
|
2009-06-25 13:03:29 +08:00
|
|
|
ClangDiagnosticLex
|
2010-05-05 13:41:05 +08:00
|
|
|
ClangDiagnosticSema
|
2011-09-06 10:08:40 +08:00
|
|
|
ClangDriverOptions
|
2010-05-30 15:21:58 +08:00
|
|
|
ClangDeclNodes
|
2010-09-14 07:54:41 +08:00
|
|
|
ClangStmtNodes)
|