File tree Expand file tree Collapse file tree 4 files changed +25
-1
lines changed Expand file tree Collapse file tree 4 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,8 @@ var targets: [Target] = [
60
60
) ,
61
61
. target(
62
62
name: " _GenerateSwiftFormat " ,
63
- dependencies: [ " SwiftFormat " ]
63
+ dependencies: [ " SwiftFormat " ] ,
64
+ exclude: [ " CMakeLists.txt " ]
64
65
) ,
65
66
. plugin(
66
67
name: " Format Source Code " ,
Original file line number Diff line number Diff line change @@ -9,4 +9,5 @@ See https://swift.org/LICENSE.txt for license information
9
9
10
10
add_subdirectory (SwiftFormat )
11
11
add_subdirectory (_SwiftFormatInstructionCounter )
12
+ add_subdirectory (_GenerateSwiftFormat )
12
13
add_subdirectory (swift-format )
Original file line number Diff line number Diff line change
1
+ #[[
2
+ This source file is part of the swift-format open source project
3
+
4
+ Copyright (c) 2024 Apple Inc. and the swift-format project authors
5
+ Licensed under Apache License v2.0 with Runtime Library Exception
6
+
7
+ See https://swift.org/LICENSE.txt for license information
8
+ #]]
9
+
10
+ add_library (_GenerateSwiftFormat
11
+ FileGenerator.swift
12
+ GenerateSwiftFormatPaths.swift
13
+ PipelineGenerator.swift
14
+ RuleCollector.swift
15
+ RuleDocumentationGenerator.swift
16
+ RuleNameCacheGenerator.swift
17
+ RuleRegistryGenerator.swift
18
+ Syntax+Convenience.swift
19
+ )
20
+
21
+ _install_target (_GenerateSwiftFormat )
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ add_executable(swift-format
27
27
Utilities/StderrDiagnosticPrinter.swift
28
28
Utilities/TTY.swift )
29
29
target_link_libraries (swift-format PRIVATE
30
+ _GenerateSwiftFormat
30
31
_SwiftFormatInstructionCounter
31
32
ArgumentParser
32
33
SwiftFormat
You can’t perform that action at this time.
0 commit comments