Files
swift-mirror/lib/DependencyScan/CMakeLists.txt
Steven Wu 47598bbe8f [ScanDependency] Respect working directory set inside invocation
Teach scanner to respect the working directory set in the invocation
through scanner C API.

Also add test infrastructure to testing scanner from C API. Break up
DependencyScan lib into two so the swift-scan-test and remain small
without understanding swift AST.

rdar://127626011
2024-05-22 11:04:45 -07:00

21 lines
522 B
CMake

add_swift_host_library(swiftDependencyScanImpl STATIC
DependencyScanJSON.cpp
StringUtils.cpp)
add_swift_host_library(swiftDependencyScan STATIC
DependencyScanningTool.cpp
ModuleDependencyCacheSerialization.cpp
ModuleDependencyScanner.cpp
ScanDependencies.cpp)
target_link_libraries(swiftDependencyScan INTERFACE
clangBasic)
target_link_libraries(swiftDependencyScan PRIVATE
swiftClangImporter
swiftAST
swiftSerialization)
target_link_libraries(swiftDependencyScan PUBLIC
swiftDependencyScanImpl)