PeterChou1 6d98d45c9c
reland [clang-doc][NFC] refactor out file helpers (#135164)
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
2025-04-10 07:58:29 -04:00

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)