|
| 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