2023-12-15 23:40:37 +00:00
|
|
|
// swift-tools-version:5.9
|
2020-11-02 13:40:24 +00:00
|
|
|
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
|
|
|
|
|
|
|
import PackageDescription
|
|
|
|
|
|
|
|
let package = Package(
|
|
|
|
name: "WireGuardKit",
|
|
|
|
platforms: [
|
2023-02-14 14:31:52 +00:00
|
|
|
.macOS(.v12),
|
2023-12-15 23:40:37 +00:00
|
|
|
.iOS(.v15),
|
|
|
|
.tvOS(.v17)
|
2020-11-02 13:40:24 +00:00
|
|
|
],
|
|
|
|
products: [
|
2024-03-23 19:25:41 +00:00
|
|
|
.library(
|
|
|
|
name: "WireGuardKit",
|
|
|
|
targets: [
|
|
|
|
"WireGuardKit",
|
|
|
|
"WireGuardKitGo"
|
|
|
|
]
|
|
|
|
)
|
|
|
|
],
|
|
|
|
dependencies: [
|
2024-07-14 15:36:33 +00:00
|
|
|
.package(url: "https://github.com/passepartoutvpn/wg-go-apple", from: "0.0.20240714")
|
2020-11-02 13:40:24 +00:00
|
|
|
],
|
|
|
|
targets: [
|
|
|
|
.target(
|
2020-12-02 14:21:36 +00:00
|
|
|
name: "WireGuardKit",
|
2024-03-23 19:25:41 +00:00
|
|
|
dependencies: ["WireGuardKitC"]
|
2020-11-02 13:40:24 +00:00
|
|
|
),
|
2020-11-05 11:41:31 +00:00
|
|
|
.target(
|
2020-12-02 11:27:39 +00:00
|
|
|
name: "WireGuardKitC",
|
2020-12-02 12:02:36 +00:00
|
|
|
dependencies: [],
|
|
|
|
publicHeadersPath: "."
|
2020-11-05 11:41:31 +00:00
|
|
|
),
|
2020-11-02 13:40:24 +00:00
|
|
|
.target(
|
2020-12-02 11:27:39 +00:00
|
|
|
name: "WireGuardKitGo",
|
2024-03-23 19:25:41 +00:00
|
|
|
dependencies: [
|
|
|
|
"WireGuardKit",
|
|
|
|
"wg-go-apple"
|
|
|
|
]
|
2020-11-02 13:40:24 +00:00
|
|
|
)
|
|
|
|
]
|
|
|
|
)
|