mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2025-02-02 05:52:18 +00:00
7b8dbfe84a
### OpenVPN - Make CPassepartoutCryptoOpenSSL agnostic of PassepartoutKit - Move Allocation/ZeroingData from PassepartoutKit to package for internal use - Rename ZeroingData.count to .length for consistency with NSData - Duplicate some Data manipulation code in CryptoOpenSSL - Retain a simplified version of ZeroingData in PassepartoutKit (AutoerasingData) ### WireGuard - Make WireGuardKit imports `internal`
73 lines
2.1 KiB
Swift
73 lines
2.1 KiB
Swift
// swift-tools-version: 5.9
|
|
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "PassepartoutOpenVPNOpenSSL",
|
|
platforms: [
|
|
.iOS(.v15),
|
|
.macOS(.v12),
|
|
.tvOS(.v17)
|
|
],
|
|
products: [
|
|
.library(
|
|
name: "CPassepartoutCryptoOpenSSL",
|
|
targets: ["CPassepartoutCryptoOpenSSL"]
|
|
),
|
|
.library(
|
|
name: "CPassepartoutOpenVPNOpenSSL",
|
|
targets: ["CPassepartoutOpenVPNOpenSSL"]
|
|
),
|
|
.library(
|
|
name: "PassepartoutOpenVPNOpenSSL",
|
|
targets: ["PassepartoutOpenVPNOpenSSL"]
|
|
)
|
|
],
|
|
dependencies: [
|
|
.package(path: "../PassepartoutKit-Framework"),
|
|
.package(url: "https://github.com/passepartoutvpn/openssl-apple", from: "3.2.105")
|
|
],
|
|
targets: [
|
|
.target(
|
|
name: "CPassepartoutCryptoOpenSSL",
|
|
dependencies: ["openssl-apple",]
|
|
),
|
|
.target(
|
|
name: "CPassepartoutOpenVPNOpenSSL",
|
|
dependencies: [
|
|
"CPassepartoutCryptoOpenSSL",
|
|
"PassepartoutKit-Framework"
|
|
],
|
|
exclude: [
|
|
"lib/COPYING",
|
|
"lib/Makefile",
|
|
"lib/README.LZO",
|
|
"lib/testmini.c"
|
|
]
|
|
),
|
|
.target(
|
|
name: "PassepartoutCryptoOpenSSL",
|
|
dependencies: ["CPassepartoutCryptoOpenSSL"]
|
|
),
|
|
.target(
|
|
name: "PassepartoutOpenVPNOpenSSL",
|
|
dependencies: [
|
|
"CPassepartoutOpenVPNOpenSSL",
|
|
"PassepartoutCryptoOpenSSL"
|
|
]
|
|
),
|
|
.testTarget(
|
|
name: "CPassepartoutCryptoOpenSSLTests",
|
|
dependencies: ["PassepartoutCryptoOpenSSL"]
|
|
),
|
|
.testTarget(
|
|
name: "PassepartoutOpenVPNOpenSSLTests",
|
|
dependencies: ["PassepartoutOpenVPNOpenSSL"],
|
|
resources: [
|
|
.process("Resources")
|
|
]
|
|
)
|
|
]
|
|
)
|