2008-10-26 03:56:18 +03:00
|
|
|
set(LLVM_NO_RTTI 1)
|
|
|
|
|
2009-03-24 20:52:34 +03:00
|
|
|
add_clang_library(clangFrontend
|
2009-05-19 03:06:15 +04:00
|
|
|
ASTConsumers.cpp
|
2010-02-09 22:21:46 +03:00
|
|
|
ASTMerge.cpp
|
2009-06-24 02:01:29 +04:00
|
|
|
ASTUnit.cpp
|
2009-07-16 01:08:41 +04:00
|
|
|
AnalysisConsumer.cpp
|
2009-05-19 08:21:30 +04:00
|
|
|
CacheTokens.cpp
|
2010-02-25 07:52:01 +03:00
|
|
|
CodeGenAction.cpp
|
2009-11-13 06:51:44 +03:00
|
|
|
CompilerInstance.cpp
|
2009-11-17 09:02:29 +03:00
|
|
|
CompilerInvocation.cpp
|
2009-06-15 23:02:54 +04:00
|
|
|
DeclXML.cpp
|
2009-05-19 08:21:30 +04:00
|
|
|
DependencyFile.cpp
|
|
|
|
DiagChecker.cpp
|
2009-05-22 01:21:53 +04:00
|
|
|
DocumentXML.cpp
|
2009-04-02 20:34:42 +04:00
|
|
|
FixItRewriter.cpp
|
2009-11-14 13:42:35 +03:00
|
|
|
FrontendAction.cpp
|
2009-11-14 13:42:46 +03:00
|
|
|
FrontendActions.cpp
|
2009-11-13 05:06:12 +03:00
|
|
|
FrontendOptions.cpp
|
2009-05-19 03:06:15 +04:00
|
|
|
GeneratePCH.cpp
|
2008-10-26 03:56:18 +03:00
|
|
|
HTMLDiagnostics.cpp
|
2009-05-19 03:06:15 +04:00
|
|
|
HTMLPrint.cpp
|
2008-10-26 03:56:18 +03:00
|
|
|
InitHeaderSearch.cpp
|
2009-04-21 09:40:52 +04:00
|
|
|
InitPreprocessor.cpp
|
2009-11-26 05:14:31 +03:00
|
|
|
LangStandards.cpp
|
2009-04-10 21:28:42 +04:00
|
|
|
PCHReader.cpp
|
2009-04-27 09:27:42 +04:00
|
|
|
PCHReaderDecl.cpp
|
2009-04-27 09:14:47 +04:00
|
|
|
PCHReaderStmt.cpp
|
2009-04-10 21:28:42 +04:00
|
|
|
PCHWriter.cpp
|
2009-04-27 10:16:06 +04:00
|
|
|
PCHWriterDecl.cpp
|
2009-04-27 10:20:01 +04:00
|
|
|
PCHWriterStmt.cpp
|
2008-11-04 23:31:17 +03:00
|
|
|
PlistDiagnostics.cpp
|
2009-05-19 08:21:30 +04:00
|
|
|
PrintParserCallbacks.cpp
|
|
|
|
PrintPreprocessedOutput.cpp
|
|
|
|
RewriteMacros.cpp
|
2009-05-19 03:06:15 +04:00
|
|
|
RewriteObjC.cpp
|
2009-05-19 08:21:30 +04:00
|
|
|
RewriteTest.cpp
|
2009-05-22 01:21:53 +04:00
|
|
|
StmtXML.cpp
|
2009-05-19 08:21:30 +04:00
|
|
|
TextDiagnosticBuffer.cpp
|
|
|
|
TextDiagnosticPrinter.cpp
|
2009-06-15 23:02:54 +04:00
|
|
|
TypeXML.cpp
|
2009-11-14 06:23:19 +03:00
|
|
|
VerifyDiagnosticsClient.cpp
|
2009-05-19 08:21:30 +04:00
|
|
|
Warnings.cpp
|
2008-10-26 03:56:18 +03:00
|
|
|
)
|
2009-06-18 19:05:47 +04:00
|
|
|
|
2009-10-13 00:50:45 +04: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 09:03:29 +04:00
|
|
|
add_dependencies(clangFrontend
|
|
|
|
ClangDiagnosticFrontend
|
|
|
|
ClangDiagnosticLex
|
|
|
|
ClangDiagnosticSema)
|