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] = [
6060 ) ,
6161 . target(
6262 name: " _GenerateSwiftFormat " ,
63- dependencies: [ " SwiftFormat " ]
63+ dependencies: [ " SwiftFormat " ] ,
64+ exclude: [ " CMakeLists.txt " ]
6465 ) ,
6566 . plugin(
6667 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
99
1010add_subdirectory (SwiftFormat)
1111add_subdirectory (_SwiftFormatInstructionCounter)
12+ add_subdirectory (_GenerateSwiftFormat)
1213add_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
2727 Utilities/StderrDiagnosticPrinter.swift
2828 Utilities/TTY.swift)
2929target_link_libraries (swift-format PRIVATE
30+ _GenerateSwiftFormat
3031 _SwiftFormatInstructionCounter
3132 ArgumentParser
3233 SwiftFormat
You can’t perform that action at this time.
0 commit comments