-
Notifications
You must be signed in to change notification settings - Fork 460
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable
StrictConcurrency=complete
in builds.
- Add [email protected], [email protected] as clones of the existing file. - Update Package.swift to 5.8 and enable `StrictConcurrency=complete` for `SwiftProtobuf` and the related testing libraries.
- Loading branch information
Showing
3 changed files
with
177 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
// swift-tools-version:5.6 | ||
|
||
// Package.swift | ||
// | ||
// Copyright (c) 2014 - 2018 Apple Inc. and the project authors | ||
// Licensed under Apache License v2.0 with Runtime Library Exception | ||
// | ||
// See LICENSE.txt for license information: | ||
// https://github.com/apple/swift-protobuf/blob/main/LICENSE.txt | ||
// | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "SwiftProtobuf", | ||
products: [ | ||
.executable( | ||
name: "protoc-gen-swift", | ||
targets: ["protoc-gen-swift"] | ||
), | ||
.library( | ||
name: "SwiftProtobuf", | ||
targets: ["SwiftProtobuf"] | ||
), | ||
.library( | ||
name: "SwiftProtobufPluginLibrary", | ||
targets: ["SwiftProtobufPluginLibrary"] | ||
), | ||
.plugin( | ||
name: "SwiftProtobufPlugin", | ||
targets: ["SwiftProtobufPlugin"] | ||
), | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"), | ||
], | ||
targets: [ | ||
.target( | ||
name: "SwiftProtobuf", | ||
exclude: ["CMakeLists.txt"] | ||
), | ||
.target( | ||
name: "SwiftProtobufPluginLibrary", | ||
dependencies: ["SwiftProtobuf"], | ||
exclude: ["CMakeLists.txt"] | ||
), | ||
.target( | ||
name: "SwiftProtobufTestHelpers", | ||
dependencies: ["SwiftProtobuf"] | ||
), | ||
.executableTarget( | ||
name: "protoc-gen-swift", | ||
dependencies: ["SwiftProtobufPluginLibrary", "SwiftProtobuf"], | ||
exclude: ["CMakeLists.txt"] | ||
), | ||
.executableTarget( | ||
name: "Conformance", | ||
dependencies: ["SwiftProtobuf"], | ||
exclude: ["failure_list_swift.txt", "text_format_failure_list_swift.txt"] | ||
), | ||
.plugin( | ||
name: "SwiftProtobufPlugin", | ||
capability: .buildTool(), | ||
dependencies: [ | ||
"protoc-gen-swift" | ||
] | ||
), | ||
.testTarget( | ||
name: "SwiftProtobufTests", | ||
dependencies: ["SwiftProtobuf"] | ||
), | ||
.testTarget( | ||
name: "SwiftProtobufPluginLibraryTests", | ||
dependencies: ["SwiftProtobufPluginLibrary", "SwiftProtobufTestHelpers"] | ||
), | ||
.testTarget( | ||
name: "protoc-gen-swiftTests", | ||
dependencies: ["protoc-gen-swift", "SwiftProtobufTestHelpers"] | ||
), | ||
], | ||
swiftLanguageVersions: [.v5] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
// swift-tools-version:5.6 | ||
|
||
// Package.swift | ||
// | ||
// Copyright (c) 2014 - 2018 Apple Inc. and the project authors | ||
// Licensed under Apache License v2.0 with Runtime Library Exception | ||
// | ||
// See LICENSE.txt for license information: | ||
// https://github.com/apple/swift-protobuf/blob/main/LICENSE.txt | ||
// | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "SwiftProtobuf", | ||
products: [ | ||
.executable( | ||
name: "protoc-gen-swift", | ||
targets: ["protoc-gen-swift"] | ||
), | ||
.library( | ||
name: "SwiftProtobuf", | ||
targets: ["SwiftProtobuf"] | ||
), | ||
.library( | ||
name: "SwiftProtobufPluginLibrary", | ||
targets: ["SwiftProtobufPluginLibrary"] | ||
), | ||
.plugin( | ||
name: "SwiftProtobufPlugin", | ||
targets: ["SwiftProtobufPlugin"] | ||
), | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"), | ||
], | ||
targets: [ | ||
.target( | ||
name: "SwiftProtobuf", | ||
exclude: ["CMakeLists.txt"] | ||
), | ||
.target( | ||
name: "SwiftProtobufPluginLibrary", | ||
dependencies: ["SwiftProtobuf"], | ||
exclude: ["CMakeLists.txt"] | ||
), | ||
.target( | ||
name: "SwiftProtobufTestHelpers", | ||
dependencies: ["SwiftProtobuf"] | ||
), | ||
.executableTarget( | ||
name: "protoc-gen-swift", | ||
dependencies: ["SwiftProtobufPluginLibrary", "SwiftProtobuf"], | ||
exclude: ["CMakeLists.txt"] | ||
), | ||
.executableTarget( | ||
name: "Conformance", | ||
dependencies: ["SwiftProtobuf"], | ||
exclude: ["failure_list_swift.txt", "text_format_failure_list_swift.txt"] | ||
), | ||
.plugin( | ||
name: "SwiftProtobufPlugin", | ||
capability: .buildTool(), | ||
dependencies: [ | ||
"protoc-gen-swift" | ||
] | ||
), | ||
.testTarget( | ||
name: "SwiftProtobufTests", | ||
dependencies: ["SwiftProtobuf"] | ||
), | ||
.testTarget( | ||
name: "SwiftProtobufPluginLibraryTests", | ||
dependencies: ["SwiftProtobufPluginLibrary", "SwiftProtobufTestHelpers"] | ||
), | ||
.testTarget( | ||
name: "protoc-gen-swiftTests", | ||
dependencies: ["protoc-gen-swift", "SwiftProtobufTestHelpers"] | ||
), | ||
], | ||
swiftLanguageVersions: [.v5] | ||
) |