mirror of
https://github.com/apple/swift-nio-ssl
synced 2026-11-26 04:57:52 +00:00
52 lines
2.3 KiB
Swift
52 lines
2.3 KiB
Swift
// swift-tools-version:5.0
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// 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
|
|
|
|
// This package contains a vendored copy of BoringSSL. For ease of tracking
|
|
// down problems with the copy of BoringSSL in use, we include a copy of the
|
|
// commit hash of the revision of BoringSSL included in the given release.
|
|
// This is also reproduced in a file called hash.txt in the
|
|
// Sources/CNIOBoringSSL directory. The source repository is at
|
|
// https://boringssl.googlesource.com/boringssl.
|
|
//
|
|
// BoringSSL Commit: 21a879a78a60c8667468a9eba994c8365eaf92ea
|
|
|
|
let package = Package(
|
|
name: "swift-nio-ssl",
|
|
products: [
|
|
.library(name: "NIOSSL", targets: ["NIOSSL"]),
|
|
.executable(name: "NIOTLSServer", targets: ["NIOTLSServer"]),
|
|
.executable(name: "NIOSSLHTTP1Client", targets: ["NIOSSLHTTP1Client"]),
|
|
/* This target is used only for symbol mangling. It's added and removed automatically because it emits build warnings. MANGLE_START
|
|
.library(name: "CNIOBoringSSL", type: .static, targets: ["CNIOBoringSSL"]),
|
|
MANGLE_END */
|
|
],
|
|
dependencies: [
|
|
.package(url: "https://github.com/apple/swift-nio.git", from: "2.14.0"),
|
|
],
|
|
targets: [
|
|
.target(name: "CNIOBoringSSL"),
|
|
.target(name: "CNIOBoringSSLShims", dependencies: ["CNIOBoringSSL"]),
|
|
.target(name: "NIOSSL",
|
|
dependencies: ["NIO", "NIOConcurrencyHelpers", "CNIOBoringSSL", "CNIOBoringSSLShims", "NIOTLS"]),
|
|
.target(name: "NIOTLSServer", dependencies: ["NIO", "NIOSSL", "NIOConcurrencyHelpers"]),
|
|
.target(name: "NIOSSLHTTP1Client", dependencies: ["NIO", "NIOHTTP1", "NIOSSL", "NIOFoundationCompat"]),
|
|
.target(name: "NIOSSLPerformanceTester", dependencies: ["NIO", "NIOSSL"]),
|
|
.testTarget(name: "NIOSSLTests", dependencies: ["NIOTLS", "NIOSSL"]),
|
|
],
|
|
cxxLanguageStandard: .cxx11
|
|
)
|