2021-11-06 10:26:09 +00:00
|
|
|
// swift-tools-version:5.3
|
2021-10-27 16:47:08 +00:00
|
|
|
// 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: [
|
2021-11-06 20:50:31 +00:00
|
|
|
.iOS(.v13), .macOS(.v10_15)
|
2021-10-27 16:47:08 +00:00
|
|
|
],
|
|
|
|
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")),
|
2021-11-06 21:15:57 +00:00
|
|
|
.package(name: "Convenience", url: "https://github.com/keeshux/convenience", .revision("347105ec0ce27cd4255acf9875fd60ad1f213801")),
|
2021-10-27 16:47:08 +00:00
|
|
|
.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",
|
2021-11-06 20:50:31 +00:00
|
|
|
.product(name: "TunnelKit", package: "TunnelKit"),
|
2021-10-27 16:47:08 +00:00
|
|
|
.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",
|
2021-11-06 20:50:31 +00:00
|
|
|
.product(name: "TunnelKitOpenVPNAppExtension", package: "TunnelKit"),
|
2021-10-27 16:47:08 +00:00
|
|
|
.product(name: "TunnelKitLZO", package: "TunnelKit")
|
|
|
|
]),
|
|
|
|
.testTarget(
|
|
|
|
name: "PassepartoutCoreTests",
|
|
|
|
dependencies: ["PassepartoutCore"],
|
|
|
|
resources: [
|
|
|
|
.process("Resources")
|
|
|
|
])
|
|
|
|
]
|
|
|
|
)
|