passepartout-apple/PassepartoutCore/Package.swift

63 lines
2.5 KiB
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: "PassepartoutCore",
defaultLocalization: "en",
platforms: [
.iOS(.v13), .macOS(.v10_15)
],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "PassepartoutCore",
targets: ["PassepartoutCore"]),
.library(
name: "PassepartoutOpenVPNTunnel",
targets: ["PassepartoutOpenVPNTunnel"])
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
2021-11-18 11:15:21 +00:00
.package(name: "TunnelKit", url: "https://github.com/passepartoutvpn/tunnelkit", .revision("995009121a4ad02fb9d8a3f2980ea9dd1693e396")),
.package(name: "Convenience", url: "https://github.com/keeshux/convenience", .revision("347105ec0ce27cd4255acf9875fd60ad1f213801")),
.package(url: "https://github.com/Cocoanetics/Kvitto", from: "1.0.0")
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.target(
name: "PassepartoutConstants",
dependencies: []),
.target(
name: "PassepartoutCore",
dependencies: [
"PassepartoutConstants",
.product(name: "TunnelKit", package: "TunnelKit"),
.product(name: "TunnelKitOpenVPN", package: "TunnelKit"),
.product(name: "TunnelKitLZO", package: "TunnelKit"),
"Convenience",
.product(name: "ConvenienceUI", package: "Convenience", condition: .when(platforms: [.iOS])),
"Kvitto"
],
resources: [
.copy("API")
]),
.target(
name: "PassepartoutOpenVPNTunnel",
dependencies: [
"PassepartoutConstants",
.product(name: "TunnelKitOpenVPNAppExtension", package: "TunnelKit"),
.product(name: "TunnelKitLZO", package: "TunnelKit")
]),
.testTarget(
name: "PassepartoutCoreTests",
dependencies: ["PassepartoutCore"],
resources: [
.process("Resources")
])
]
)