2023-03-18 12:46:22 +00:00
|
|
|
// swift-tools-version:5.5
|
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),
|
|
|
|
.iOS(.v15)
|
2020-11-02 13:40:24 +00:00
|
|
|
],
|
|
|
|
products: [
|
2020-12-02 14:21:36 +00:00
|
|
|
.library(name: "WireGuardKit", targets: ["WireGuardKit"])
|
2020-11-02 13:40:24 +00:00
|
|
|
],
|
|
|
|
dependencies: [],
|
|
|
|
targets: [
|
|
|
|
.target(
|
2020-12-02 14:21:36 +00:00
|
|
|
name: "WireGuardKit",
|
2020-12-02 11:27:39 +00:00
|
|
|
dependencies: ["WireGuardKitGo", "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",
|
2020-11-02 13:40:24 +00:00
|
|
|
dependencies: [],
|
2020-12-02 12:06:36 +00:00
|
|
|
exclude: [
|
|
|
|
"goruntime-boottime-over-monotonic.diff",
|
|
|
|
"go.mod",
|
|
|
|
"go.sum",
|
2021-06-15 13:18:21 +00:00
|
|
|
"api-apple.go",
|
2020-12-02 12:06:36 +00:00
|
|
|
"Makefile"
|
|
|
|
],
|
2020-12-02 12:02:36 +00:00
|
|
|
publicHeadersPath: ".",
|
2020-11-02 13:40:24 +00:00
|
|
|
linkerSettings: [.linkedLibrary("wg-go")]
|
|
|
|
)
|
|
|
|
]
|
|
|
|
)
|