mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-24 04:38:00 +00:00
Motivation: We never supported Swift 4.0 in this repository and Swift 4.0 is quite a pain mostly because of the Unsafe*Pointer API differences. Changes: Require 4.1 Result: fewer lies, fixes #17
42 lines
1.5 KiB
Swift
42 lines
1.5 KiB
Swift
// swift-tools-version:4.1
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This source file is part of the SwiftNIO open source project
|
|
//
|
|
// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors
|
|
// Licensed under Apache License v2.0
|
|
//
|
|
// See LICENSE.txt for license information
|
|
// See CONTRIBUTORS.txt for the list of SwiftNIO project authors
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "swift-nio-http2",
|
|
products: [
|
|
.executable(name: "NIOHTTP2Server", targets: ["NIOHTTP2Server"]),
|
|
.library(name: "NIOHTTP2", targets: ["NIOHTTP2"]),
|
|
],
|
|
dependencies: [
|
|
.package(url: "https://github.com/apple/swift-nio.git", from: "1.9.0"),
|
|
.package(url: "https://github.com/apple/swift-nio-nghttp2-support.git", from: "1.0.0"),
|
|
],
|
|
targets: [
|
|
.target(name: "CNIONghttp2"),
|
|
.target(name: "NIOHTTP2Server",
|
|
dependencies: ["NIOHTTP2"]),
|
|
.target(name: "NIOHTTP2",
|
|
dependencies: ["NIO", "NIOHTTP1", "NIOTLS", "CNIONghttp2"]),
|
|
.target(name: "NIOHPACK",
|
|
dependencies: ["NIO", "NIOConcurrencyHelpers", "NIOHTTP1"]),
|
|
.testTarget(name: "NIOHTTP2Tests",
|
|
dependencies: ["NIO", "NIOHTTP1", "NIOHTTP2"]),
|
|
.testTarget(name: "NIOHPACKTests",
|
|
dependencies: ["NIOHPACK"])
|
|
]
|
|
)
|