diff --git a/Sources/CMakeLists.txt b/Sources/CMakeLists.txt index 0b28ca19927..bfe3b11b24a 100644 --- a/Sources/CMakeLists.txt +++ b/Sources/CMakeLists.txt @@ -8,6 +8,7 @@ add_subdirectory(_SwiftLibraryPluginProviderCShims) add_subdirectory(_SwiftSyntaxCShims) +add_subdirectory(_SwiftSyntaxGenericTestSupport) add_subdirectory(SwiftBasicFormat) add_subdirectory(SwiftSyntax) add_subdirectory(SwiftDiagnostics) @@ -21,6 +22,7 @@ add_subdirectory(SwiftIfConfig) add_subdirectory(SwiftSyntaxBuilder) add_subdirectory(SwiftSyntaxMacros) add_subdirectory(SwiftSyntaxMacroExpansion) +add_subdirectory(SwiftSyntaxMacrosGenericTestSupport) add_subdirectory(SwiftCompilerPluginMessageHandling) add_subdirectory(SwiftIDEUtils) add_subdirectory(SwiftCompilerPlugin) diff --git a/Sources/SwiftSyntaxMacrosGenericTestSupport/CMakeLists.txt b/Sources/SwiftSyntaxMacrosGenericTestSupport/CMakeLists.txt new file mode 100644 index 00000000000..eff235360c0 --- /dev/null +++ b/Sources/SwiftSyntaxMacrosGenericTestSupport/CMakeLists.txt @@ -0,0 +1,24 @@ +# This source file is part of the Swift.org open source project +# +# Copyright (c) 2014 - 2026 Apple Inc. and the Swift project authors +# Licensed under Apache License v2.0 with Runtime Library Exception +# +# See http://swift.org/LICENSE.txt for license information +# See http://swift.org/CONTRIBUTORS.txt for Swift project authors + +add_swift_syntax_library(SwiftSyntaxMacrosGenericTestSupport + EXCLUDE_FROM_ALL + Assertions.swift +) + +target_link_swift_syntax_libraries(SwiftSyntaxMacrosGenericTestSupport PUBLIC + _SwiftSyntaxGenericTestSupport + SwiftDiagnostics + SwiftIDEUtils + SwiftIfConfig + SwiftParser + SwiftParserDiagnostics + SwiftSyntaxMacros + SwiftSyntaxMacroExpansion +) + diff --git a/Sources/_SwiftSyntaxGenericTestSupport/CMakeLists.txt b/Sources/_SwiftSyntaxGenericTestSupport/CMakeLists.txt new file mode 100644 index 00000000000..7c72f47c34d --- /dev/null +++ b/Sources/_SwiftSyntaxGenericTestSupport/CMakeLists.txt @@ -0,0 +1,17 @@ +# This source file is part of the Swift.org open source project +# +# Copyright (c) 2014 - 2026 Apple Inc. and the Swift project authors +# Licensed under Apache License v2.0 with Runtime Library Exception +# +# See http://swift.org/LICENSE.txt for license information +# See http://swift.org/CONTRIBUTORS.txt for Swift project authors + +add_swift_syntax_library(_SwiftSyntaxGenericTestSupport + EXCLUDE_FROM_ALL + AssertEqualWithDiff.swift + String+TrimmingTrailingWhitespace.swift +) + +target_link_swift_syntax_libraries(_SwiftSyntaxGenericTestSupport PUBLIC +) +