зеркало из https://github.com/microsoft/clang-1.git
[CMake] Update target_link_libraries() and LLVM_LINK_COMPONENTS for each CMakeLists.txt.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196916 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
d2c03c9160
Коммит
d31b98f0a8
|
@ -1,6 +1,8 @@
|
|||
set(MODULE TRUE)
|
||||
|
||||
set( LLVM_LINK_COMPONENTS support mc)
|
||||
set( LLVM_LINK_COMPONENTS
|
||||
Support
|
||||
)
|
||||
|
||||
add_clang_library(PrintFunctionNames PrintFunctionNames.cpp)
|
||||
|
||||
|
@ -14,8 +16,9 @@ add_dependencies(PrintFunctionNames
|
|||
)
|
||||
|
||||
target_link_libraries(PrintFunctionNames
|
||||
clangFrontend
|
||||
clangAST
|
||||
clangBasic
|
||||
clangFrontend
|
||||
)
|
||||
|
||||
set_target_properties(PrintFunctionNames
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
set(MODULE TRUE)
|
||||
|
||||
set( LLVM_LINK_COMPONENTS support mc)
|
||||
set(LLVM_LINK_COMPONENTS
|
||||
Support
|
||||
)
|
||||
|
||||
add_clang_library(SampleAnalyzerPlugin MainCallChecker.cpp)
|
||||
|
||||
|
@ -14,6 +16,8 @@ add_dependencies(SampleAnalyzerPlugin
|
|||
)
|
||||
|
||||
target_link_libraries(SampleAnalyzerPlugin
|
||||
clangAST
|
||||
clangAnalysis
|
||||
clangStaticAnalyzerCore
|
||||
)
|
||||
|
||||
|
|
|
@ -1,15 +1,9 @@
|
|||
set(LLVM_LINK_COMPONENTS
|
||||
jit
|
||||
interpreter
|
||||
Core
|
||||
ExecutionEngine
|
||||
JIT
|
||||
Support
|
||||
nativecodegen
|
||||
asmparser
|
||||
bitreader
|
||||
bitwriter
|
||||
irreader
|
||||
codegen
|
||||
ipo
|
||||
linker
|
||||
selectiondag
|
||||
)
|
||||
|
||||
add_clang_executable(clang-interpreter
|
||||
|
@ -21,19 +15,8 @@ add_dependencies(clang-interpreter
|
|||
)
|
||||
|
||||
target_link_libraries(clang-interpreter
|
||||
clangFrontend
|
||||
clangSerialization
|
||||
clangDriver
|
||||
clangCodeGen
|
||||
clangSema
|
||||
clangStaticAnalyzerFrontend
|
||||
clangStaticAnalyzerCheckers
|
||||
clangStaticAnalyzerCore
|
||||
clangAnalysis
|
||||
clangRewriteCore
|
||||
clangRewriteFrontend
|
||||
clangAST
|
||||
clangParse
|
||||
clangLex
|
||||
clangBasic
|
||||
clangCodeGen
|
||||
clangDriver
|
||||
clangFrontend
|
||||
)
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
set( LLVM_LINK_COMPONENTS
|
||||
support
|
||||
mc
|
||||
)
|
||||
|
||||
add_clang_executable(c-arcmt-test
|
||||
c-arcmt-test.c
|
||||
)
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
set( LLVM_LINK_COMPONENTS
|
||||
support
|
||||
mc
|
||||
)
|
||||
|
||||
add_clang_executable(c-index-test
|
||||
c-index-test.c
|
||||
)
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
set(LLVM_LINK_COMPONENTS
|
||||
${LLVM_TARGETS_TO_BUILD}
|
||||
asmparser
|
||||
bitreader
|
||||
support
|
||||
mc
|
||||
Option
|
||||
Support
|
||||
)
|
||||
|
||||
add_clang_executable(clang-check
|
||||
|
@ -11,10 +8,13 @@ add_clang_executable(clang-check
|
|||
)
|
||||
|
||||
target_link_libraries(clang-check
|
||||
clangTooling
|
||||
clangAST
|
||||
clangBasic
|
||||
clangDriver
|
||||
clangFrontend
|
||||
clangRewriteFrontend
|
||||
clangStaticAnalyzerFrontend
|
||||
clangTooling
|
||||
)
|
||||
|
||||
install(TARGETS clang-check
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
set(LLVM_LINK_COMPONENTS support)
|
||||
set(LLVM_USED_LIBS clangFormat clangTooling clangBasic clangAST)
|
||||
|
||||
add_clang_executable(clang-format
|
||||
ClangFormat.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(clang-format
|
||||
clangFormat
|
||||
clangTooling
|
||||
clangBasic
|
||||
clangRewriteFrontend
|
||||
clangFormat
|
||||
clangLex
|
||||
clangRewriteCore
|
||||
clangTooling
|
||||
)
|
||||
|
||||
install(TARGETS clang-format RUNTIME DESTINATION bin)
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
set(LLVM_LINK_COMPONENTS
|
||||
${LLVM_TARGETS_TO_BUILD}
|
||||
asmparser
|
||||
bitreader
|
||||
support
|
||||
mc
|
||||
Support
|
||||
)
|
||||
|
||||
add_clang_executable(diagtool
|
||||
|
@ -21,8 +17,6 @@ add_dependencies(diagtool
|
|||
|
||||
target_link_libraries(diagtool
|
||||
clangBasic
|
||||
clangLex
|
||||
clangSema
|
||||
clangFrontend
|
||||
)
|
||||
|
||||
|
|
|
@ -1,14 +1,19 @@
|
|||
set( LLVM_LINK_COMPONENTS
|
||||
${LLVM_TARGETS_TO_BUILD}
|
||||
asmparser
|
||||
bitreader
|
||||
bitwriter
|
||||
irreader
|
||||
codegen
|
||||
instrumentation
|
||||
ipo
|
||||
linker
|
||||
selectiondag
|
||||
Analysis
|
||||
Core
|
||||
IPA
|
||||
IPO
|
||||
InstCombine
|
||||
Instrumentation
|
||||
MC
|
||||
MCParser
|
||||
ObjCARCOpts
|
||||
Option
|
||||
ScalarOpts
|
||||
Support
|
||||
TransformUtils
|
||||
Vectorize
|
||||
)
|
||||
|
||||
add_clang_executable(clang
|
||||
|
@ -18,19 +23,10 @@ add_clang_executable(clang
|
|||
)
|
||||
|
||||
target_link_libraries(clang
|
||||
clangFrontendTool
|
||||
clangAST
|
||||
clangAnalysis
|
||||
clangBasic
|
||||
clangCodeGen
|
||||
clangDriver
|
||||
clangEdit
|
||||
clangFrontend
|
||||
clangLex
|
||||
clangParse
|
||||
clangEdit
|
||||
clangSema
|
||||
clangSerialization
|
||||
clangFrontendTool
|
||||
)
|
||||
|
||||
if(CLANG_ENABLE_STATIC_ANALYZER)
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
set(LLVM_LINK_COMPONENTS
|
||||
${LLVM_TARGETS_TO_BUILD}
|
||||
asmparser
|
||||
support
|
||||
bitreader
|
||||
mc
|
||||
BitReader
|
||||
Support
|
||||
)
|
||||
|
||||
set(SOURCES
|
||||
|
@ -43,19 +40,14 @@ set(SOURCES
|
|||
)
|
||||
|
||||
set(LIBRARIES
|
||||
clangIndex
|
||||
clangARCMigrate
|
||||
clangRewriteCore
|
||||
clangRewriteFrontend
|
||||
clangFrontend
|
||||
clangDriver
|
||||
clangSerialization
|
||||
clangSema
|
||||
clangEdit
|
||||
clangAST
|
||||
clangLex
|
||||
clangTooling
|
||||
clangBasic
|
||||
clangFrontend
|
||||
clangIndex
|
||||
clangLex
|
||||
clangSema
|
||||
clangTooling
|
||||
)
|
||||
|
||||
set(GENERATED_HEADERS
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
set(LLVM_LINK_COMPONENTS
|
||||
Support
|
||||
)
|
||||
|
||||
add_clang_unittest(ASTTests
|
||||
ASTContextParentMapTest.cpp
|
||||
ASTTypeTraitsTest.cpp
|
||||
|
@ -11,5 +15,9 @@ add_clang_unittest(ASTTests
|
|||
)
|
||||
|
||||
target_link_libraries(ASTTests
|
||||
clangAST clangASTMatchers clangTooling
|
||||
clangAST
|
||||
clangASTMatchers
|
||||
clangBasic
|
||||
clangFrontend
|
||||
clangTooling
|
||||
)
|
||||
|
|
|
@ -1,15 +1,16 @@
|
|||
set(LLVM_LINK_COMPONENTS
|
||||
${LLVM_TARGETS_TO_BUILD}
|
||||
asmparser
|
||||
bitreader
|
||||
support
|
||||
mc
|
||||
Support
|
||||
)
|
||||
|
||||
add_clang_unittest(ASTMatchersTests
|
||||
ASTMatchersTest.cpp)
|
||||
|
||||
target_link_libraries(ASTMatchersTests
|
||||
gtest gtest_main clangASTMatchers clangTooling)
|
||||
clangAST
|
||||
clangASTMatchers
|
||||
clangBasic
|
||||
clangFrontend
|
||||
clangTooling
|
||||
)
|
||||
|
||||
add_subdirectory(Dynamic)
|
||||
|
|
|
@ -1,7 +1,16 @@
|
|||
set(LLVM_LINK_COMPONENTS
|
||||
Support
|
||||
)
|
||||
|
||||
add_clang_unittest(DynamicASTMatchersTests
|
||||
VariantValueTest.cpp
|
||||
ParserTest.cpp
|
||||
RegistryTest.cpp)
|
||||
|
||||
target_link_libraries(DynamicASTMatchersTests
|
||||
gtest gtest_main clangASTMatchers clangDynamicASTMatchers clangTooling)
|
||||
clangAST
|
||||
clangASTMatchers
|
||||
clangDynamicASTMatchers
|
||||
clangFrontend
|
||||
clangTooling
|
||||
)
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
set(LLVM_LINK_COMPONENTS
|
||||
Support
|
||||
)
|
||||
|
||||
add_clang_unittest(BasicTests
|
||||
CharInfoTest.cpp
|
||||
FileManagerTest.cpp
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
set(LLVM_LINK_COMPONENTS
|
||||
${LLVM_TARGETS_TO_BUILD}
|
||||
asmparser
|
||||
bitreader
|
||||
support
|
||||
mc
|
||||
Support
|
||||
)
|
||||
|
||||
add_clang_unittest(FormatTests
|
||||
|
@ -12,8 +8,6 @@ add_clang_unittest(FormatTests
|
|||
)
|
||||
|
||||
target_link_libraries(FormatTests
|
||||
clangAST
|
||||
clangFormat
|
||||
clangTooling
|
||||
clangRewriteCore
|
||||
)
|
||||
|
|
|
@ -1,14 +1,11 @@
|
|||
set(LLVM_LINK_COMPONENTS
|
||||
${LLVM_TARGETS_TO_BUILD}
|
||||
asmparser
|
||||
bitreader
|
||||
support
|
||||
mc
|
||||
Support
|
||||
)
|
||||
|
||||
add_clang_unittest(FrontendTests
|
||||
FrontendActionTest.cpp
|
||||
)
|
||||
target_link_libraries(FrontendTests
|
||||
clangAST
|
||||
clangFrontend
|
||||
)
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
set(LLVM_LINK_COMPONENTS
|
||||
Support
|
||||
)
|
||||
|
||||
add_clang_unittest(LexTests
|
||||
LexerTest.cpp
|
||||
PPCallbacksTest.cpp
|
||||
|
@ -5,5 +9,9 @@ add_clang_unittest(LexTests
|
|||
)
|
||||
|
||||
target_link_libraries(LexTests
|
||||
clangLex clangParse clangSema
|
||||
clangAST
|
||||
clangBasic
|
||||
clangLex
|
||||
clangParse
|
||||
clangSema
|
||||
)
|
||||
|
|
|
@ -1,7 +1,16 @@
|
|||
set(LLVM_LINK_COMPONENTS
|
||||
Support
|
||||
)
|
||||
|
||||
add_clang_unittest(SemaTests
|
||||
ExternalSemaSourceTest.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(SemaTests
|
||||
clangAST clangASTMatchers clangTooling
|
||||
clangAST
|
||||
clangBasic
|
||||
clangFrontend
|
||||
clangParse
|
||||
clangSema
|
||||
clangTooling
|
||||
)
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
set(LLVM_LINK_COMPONENTS
|
||||
${LLVM_TARGETS_TO_BUILD}
|
||||
asmparser
|
||||
bitreader
|
||||
support
|
||||
mc
|
||||
Support
|
||||
)
|
||||
|
||||
add_clang_unittest(ToolingTests
|
||||
|
@ -19,6 +15,10 @@ add_clang_unittest(ToolingTests
|
|||
|
||||
target_link_libraries(ToolingTests
|
||||
clangAST
|
||||
clangTooling
|
||||
clangASTMatchers
|
||||
clangBasic
|
||||
clangFrontend
|
||||
clangLex
|
||||
clangRewriteCore
|
||||
clangTooling
|
||||
)
|
||||
|
|
Загрузка…
Ссылка в новой задаче