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
|
2009-06-24 06:01:29 +08:00
|
|
|
ASTUnit.cpp
|
2009-07-16 05:08:41 +08:00
|
|
|
AnalysisConsumer.cpp
|
2009-05-19 07:06:15 +08:00
|
|
|
Backend.cpp
|
2009-05-19 12:21:30 +08:00
|
|
|
CacheTokens.cpp
|
2009-11-13 11:51:44 +08:00
|
|
|
CompilerInstance.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-04-03 00:34:42 +08:00
|
|
|
FixItRewriter.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
|
2009-05-19 07:06:15 +08:00
|
|
|
GeneratePCH.cpp
|
2008-10-26 08:56:18 +08:00
|
|
|
HTMLDiagnostics.cpp
|
2009-05-19 07:06:15 +08:00
|
|
|
HTMLPrint.cpp
|
2008-10-26 08:56:18 +08:00
|
|
|
InitHeaderSearch.cpp
|
2009-04-21 13:40:52 +08:00
|
|
|
InitPreprocessor.cpp
|
2009-04-11 01:28:42 +08:00
|
|
|
PCHReader.cpp
|
2009-04-27 13:27:42 +08:00
|
|
|
PCHReaderDecl.cpp
|
2009-04-27 13:14:47 +08:00
|
|
|
PCHReaderStmt.cpp
|
2009-04-11 01:28:42 +08:00
|
|
|
PCHWriter.cpp
|
2009-04-27 14:16:06 +08:00
|
|
|
PCHWriterDecl.cpp
|
2009-04-27 14:20:01 +08:00
|
|
|
PCHWriterStmt.cpp
|
2008-11-05 04:31:17 +08:00
|
|
|
PlistDiagnostics.cpp
|
2009-05-19 12:21:30 +08:00
|
|
|
PrintParserCallbacks.cpp
|
|
|
|
PrintPreprocessedOutput.cpp
|
2009-05-19 07:06:15 +08:00
|
|
|
RewriteBlocks.cpp
|
2009-05-19 12:21:30 +08:00
|
|
|
RewriteMacros.cpp
|
2009-05-19 07:06:15 +08:00
|
|
|
RewriteObjC.cpp
|
2009-05-19 12:21:30 +08:00
|
|
|
RewriteTest.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
|
|
|
|
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)
|
|
|
|
|
2009-06-25 13:03:29 +08:00
|
|
|
add_dependencies(clangFrontend
|
|
|
|
ClangDiagnosticFrontend
|
|
|
|
ClangDiagnosticLex
|
|
|
|
ClangDiagnosticSema)
|