mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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
21 lines
522 B
CMake
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)
|