This is a recommit of d8a4ef0e68 with the nondeterminism fixed.
This adds experimental support for extracting a Clang module dependency graph
from a compilation database. The output format is experimental and will change.
It is currently a concatenation of JSON outputs for each compilation. Future
patches will change this to deduplicate modules between compilations.
Differential Revision: https://reviews.llvm.org/D69420
27 lines
422 B
CMake
27 lines
422 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
Core
|
|
Support
|
|
)
|
|
|
|
add_clang_library(clangDependencyScanning
|
|
DependencyScanningFilesystem.cpp
|
|
DependencyScanningService.cpp
|
|
DependencyScanningWorker.cpp
|
|
DependencyScanningTool.cpp
|
|
ModuleDepCollector.cpp
|
|
|
|
DEPENDS
|
|
ClangDriverOptions
|
|
|
|
LINK_LIBS
|
|
clangAST
|
|
clangBasic
|
|
clangDriver
|
|
clangFrontend
|
|
clangFrontendTool
|
|
clangLex
|
|
clangParse
|
|
clangSerialization
|
|
clangTooling
|
|
)
|