mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2025-02-02 05:52:18 +00:00
1942b82ebb
Simplify development and maintenance immensely by making this a monorepository: - Convert PassepartoutKit and VPN bindings to local packages - OpenVPN/OpenSSL - WireGuard/Go - Make PassepartoutKit available via - Source submodule for production (private) - [Binary XCFramework for development](https://github.com/passepartoutvpn/passepartoutkit) - Add PassepartoutKit Demo in root - Deploy package later
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",
|
|
"PassepartoutKit-Framework"
|
|
]
|
|
),
|
|
.target(
|
|
name: "CPassepartoutOpenVPNOpenSSL",
|
|
dependencies: ["CPassepartoutCryptoOpenSSL"],
|
|
exclude: [
|
|
"lib/COPYING",
|
|
"lib/Makefile",
|
|
"lib/README.LZO",
|
|
"lib/testmini.c"
|
|
]
|
|
),
|
|
.target(
|
|
name: "PassepartoutCryptoOpenSSL",
|
|
dependencies: ["CPassepartoutCryptoOpenSSL"]
|
|
),
|
|
.target(
|
|
name: "PassepartoutOpenVPNOpenSSL",
|
|
dependencies: [
|
|
"CPassepartoutOpenVPNOpenSSL",
|
|
"PassepartoutCryptoOpenSSL"
|
|
]
|
|
),
|
|
.testTarget(
|
|
name: "PassepartoutCryptoOpenSSLTests",
|
|
dependencies: ["PassepartoutCryptoOpenSSL"]
|
|
),
|
|
.testTarget(
|
|
name: "PassepartoutOpenVPNOpenSSLTests",
|
|
dependencies: ["PassepartoutOpenVPNOpenSSL"],
|
|
resources: [
|
|
.process("Resources")
|
|
]
|
|
)
|
|
]
|
|
)
|