mirror of
https://github.com/apple/swift-certificates
synced 2026-11-25 04:37:48 +00:00
55 lines
1.8 KiB
Swift
55 lines
1.8 KiB
Swift
// swift-tools-version: 5.7
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This source file is part of the SwiftCertificates open source project
|
|
//
|
|
// Copyright (c) 2022 Apple Inc. and the SwiftCertificates project authors
|
|
// Licensed under Apache License v2.0
|
|
//
|
|
// See LICENSE.txt for license information
|
|
// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "swift-certificates",
|
|
platforms: [
|
|
.macOS(.v10_15),
|
|
.iOS(.v13),
|
|
.watchOS(.v6),
|
|
.tvOS(.v13),
|
|
],
|
|
products: [
|
|
.library(
|
|
name: "X509",
|
|
targets: ["X509"]),
|
|
],
|
|
dependencies: [
|
|
.package(url: "https://github.com/apple/swift-crypto.git", from: "2.2.1"),
|
|
// swift-asn1 repo is private, so we can't access it anonymously yet
|
|
// .package(url: "https://github.com/apple/swift-asn1.git", .upToNextMinor(from: "0.3.0")),
|
|
.package(url: "git@github.com:apple/swift-asn1.git", .upToNextMinor(from: "0.3.0")),
|
|
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),
|
|
],
|
|
targets: [
|
|
.target(
|
|
name: "X509",
|
|
dependencies: [
|
|
.product(name: "SwiftASN1", package: "swift-asn1"),
|
|
.product(name: "Crypto", package: "swift-crypto"),
|
|
.product(name: "_CryptoExtras", package: "swift-crypto"),
|
|
]),
|
|
.testTarget(
|
|
name: "X509Tests",
|
|
dependencies: [
|
|
"X509",
|
|
.product(name: "SwiftASN1", package: "swift-asn1"),
|
|
.product(name: "Crypto", package: "swift-crypto"),
|
|
]),
|
|
]
|
|
)
|