2013-12-10 03:04:43 +08:00
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
|
|
Option
|
|
|
|
Support
|
|
|
|
)
|
|
|
|
|
2014-02-26 14:41:29 +08:00
|
|
|
set(link_libs
|
2013-12-10 03:04:43 +08:00
|
|
|
clangBasic
|
|
|
|
clangCodeGen
|
2012-06-21 09:30:21 +08:00
|
|
|
clangDriver
|
|
|
|
clangFrontend
|
2012-09-01 13:09:24 +08:00
|
|
|
clangRewriteFrontend
|
2012-06-21 09:30:21 +08:00
|
|
|
)
|
2013-07-04 00:20:29 +08:00
|
|
|
|
2013-08-22 23:50:02 +08:00
|
|
|
if(CLANG_ENABLE_ARCMT)
|
2014-02-26 14:41:29 +08:00
|
|
|
list(APPEND link_libs
|
2013-08-22 23:50:02 +08:00
|
|
|
clangARCMigrate
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2013-07-04 00:20:29 +08:00
|
|
|
if(CLANG_ENABLE_STATIC_ANALYZER)
|
2014-02-26 14:41:29 +08:00
|
|
|
list(APPEND link_libs
|
2013-07-04 00:20:29 +08:00
|
|
|
clangStaticAnalyzerFrontend
|
|
|
|
)
|
|
|
|
endif()
|
2014-02-26 14:41:29 +08:00
|
|
|
|
|
|
|
add_clang_library(clangFrontendTool
|
|
|
|
ExecuteCompilerInvocation.cpp
|
|
|
|
|
|
|
|
DEPENDS
|
|
|
|
ClangDriverOptions
|
|
|
|
|
|
|
|
LINK_LIBS
|
|
|
|
${link_libs}
|
|
|
|
)
|