Skip to content

Commit e8121ad

Browse files
committed
Add a SwiftPM 4 version of the manifest.
Looking at the SwiftPM docs: https://github.com/apple/swift-package-manager/blob/master/Documentation/Usage.md#version-specific-manifest-selection this naming seems to be what is needed to support SwiftPM 3 getting the old file while folks using SwiftPM 4 will get the new. Hopefully this is a step in the direction of supporting folks only having to build the parts they want, i.e. - apple#125
1 parent f2971d5 commit e8121ad

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

[email protected]

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// swift-tools-version:4.0
2+
3+
// Package.swift
4+
//
5+
// Copyright (c) 2014 - 2017 Apple Inc. and the project authors
6+
// Licensed under Apache License v2.0 with Runtime Library Exception
7+
//
8+
// See LICENSE.txt for license information:
9+
// https://github.com/apple/swift-protobuf/blob/master/LICENSE.txt
10+
//
11+
12+
import PackageDescription
13+
14+
let package = Package(
15+
name: "SwiftProtobuf",
16+
products: [
17+
.executable(name: "protoc-gen-swift", targets: ["protoc-gen-swift"]),
18+
.library(name: "SwiftProtobuf", type: .static, targets: ["SwiftProtobuf"]),
19+
],
20+
targets: [
21+
.target(name: "SwiftProtobuf"),
22+
.target(name: "PluginLibrary",
23+
dependencies: ["SwiftProtobuf"]),
24+
.target(name: "protoc-gen-swift",
25+
dependencies: ["PluginLibrary", "SwiftProtobuf"]),
26+
.target(name: "Conformance",
27+
dependencies: ["SwiftProtobuf"]),
28+
.testTarget(name: "SwiftProtobufTests",
29+
dependencies: ["SwiftProtobuf"]),
30+
.testTarget(name: "PluginLibraryTests",
31+
dependencies: ["PluginLibrary"]),
32+
],
33+
swiftLanguageVersions: [3, 4]
34+
)

0 commit comments

Comments
 (0)