mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 17:36:36 +00:00

Split from https://github.com/llvm/llvm-project/pull/133161 refactor the code to extract file helpers used in HTML generators for use in other generators for clang-doc This patch fixes the error where compiling with -DLLVM_LINK_LLVM_DYLIB=ON broke the buildbot
45 lines
664 B
CMake
45 lines
664 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
support
|
|
BitstreamReader
|
|
FrontendOpenMP
|
|
)
|
|
add_subdirectory(support)
|
|
|
|
add_clang_library(clangDoc STATIC
|
|
BitcodeReader.cpp
|
|
BitcodeWriter.cpp
|
|
ClangDoc.cpp
|
|
Generators.cpp
|
|
HTMLGenerator.cpp
|
|
Mapper.cpp
|
|
MDGenerator.cpp
|
|
Representation.cpp
|
|
Serialize.cpp
|
|
YAMLGenerator.cpp
|
|
|
|
DEPENDS
|
|
omp_gen
|
|
ClangDriverOptions
|
|
)
|
|
|
|
clang_target_link_libraries(clangDoc
|
|
PRIVATE
|
|
clangDocSupport
|
|
clangAnalysis
|
|
clangAST
|
|
clangASTMatchers
|
|
clangBasic
|
|
clangFrontend
|
|
clangIndex
|
|
clangLex
|
|
clangTooling
|
|
clangToolingCore
|
|
)
|
|
|
|
target_link_libraries(clangDoc
|
|
PRIVATE
|
|
clangDocSupport
|
|
)
|
|
|
|
add_subdirectory(tool)
|