Skip to content

Commit a84e48a

Browse files
authored
Merge pull request #2506 from ahoppen/ahoppen/build-swift-refactor-using-cmake
Add a CMake build of the `SwiftRefactor` module
2 parents 467cacb + c599122 commit a84e48a

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

Sources/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ add_subdirectory(SwiftSyntax)
1111
add_subdirectory(SwiftDiagnostics)
1212
add_subdirectory(SwiftParser)
1313
add_subdirectory(SwiftParserDiagnostics)
14+
add_subdirectory(SwiftRefactor)
1415
add_subdirectory(SwiftOperators)
1516
add_subdirectory(SwiftSyntaxBuilder)
1617
add_subdirectory(SwiftSyntaxMacros)

Sources/SwiftRefactor/CMakeLists.txt

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# This source file is part of the Swift.org open source project
2+
#
3+
# Copyright (c) 2014 - 2024 Apple Inc. and the Swift project authors
4+
# Licensed under Apache License v2.0 with Runtime Library Exception
5+
#
6+
# See http://swift.org/LICENSE.txt for license information
7+
# See http://swift.org/CONTRIBUTORS.txt for Swift project authors
8+
9+
add_swift_syntax_library(SwiftRefactor
10+
AddSeparatorsToIntegerLiteral.swift
11+
CallToTrailingClosures.swift
12+
ExpandEditorPlaceholder.swift
13+
FormatRawStringLiteral.swift
14+
IntegerLiteralUtilities.swift
15+
MigrateToNewIfLetSyntax.swift
16+
OpaqueParameterToGeneric.swift
17+
RefactoringProvider.swift
18+
RemoveSeparatorsFromIntegerLiteral.swift
19+
)
20+
21+
target_link_swift_syntax_libraries(SwiftRefactor PUBLIC
22+
SwiftBasicFormat
23+
SwiftParser
24+
SwiftSyntax
25+
SwiftSyntaxBuilder
26+
)

0 commit comments

Comments
 (0)