wireguard-apple/Package.swift

34 lines
848 B
Swift
Raw Normal View History

// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "WireGuardKit",
platforms: [
.macOS(.v10_14),
.iOS(.v12)
],
products: [
.library(name: "WireGuardKit", targets: ["WireGuardKitSwift"])
],
dependencies: [],
targets: [
.target(
name: "WireGuardKitSwift",
dependencies: ["WireGuardKitGo", "WireGuardKitC"]
),
.target(
name: "WireGuardKitC",
dependencies: [],
publicHeadersPath: "."
),
.target(
name: "WireGuardKitGo",
dependencies: [],
publicHeadersPath: ".",
linkerSettings: [.linkedLibrary("wg-go")]
)
]
)