68 lines
1.7 KiB
Swift
68 lines
1.7 KiB
Swift
// swift-tools-version: 6.3
|
|||
|
|
|
||
|
|
import PackageDescription
|
||
|
|
|
||
|
|
let package = Package(
|
||
|
|
name: "Persistence",
|
||
|
|
platforms: [
|
||
|
|
.macOS(.v15),
|
||
|
|
],
|
||
|
|
products: [
|
||
|
|
.library(
|
||
|
|
name: "Persistence",
|
||
|
|
targets: [
|
||
|
|
"Persistence"
|
||
|
|
]
|
||
|
|
)
|
||
|
|
],
|
||
|
|
dependencies: [
|
||
|
|
.package(
|
||
|
|
url: "https://github.com/hummingbird-project/hummingbird-fluent.git",
|
||
|
|
from: "2.0.0"
|
||
|
|
),
|
||
|
|
.package(
|
||
|
|
url: "https://github.com/vapor/fluent-mysql-driver.git",
|
||
|
|
from: "4.8.0"
|
||
|
|
),
|
||
|
|
.package(
|
||
|
|
url: "https://github.com/vapor/fluent-sqlite-driver.git",
|
||
|
|
from: "4.9.0"
|
||
|
|
),
|
||
|
|
.package(
|
||
|
|
url: "https://github.com/vapor/sql-kit.git",
|
||
|
|
from: "3.36.0"
|
||
|
|
),
|
||
|
|
],
|
||
|
|
targets: [
|
||
|
|
.target(
|
||
|
|
name: "Persistence",
|
||
|
|
dependencies: [
|
||
|
|
.product(
|
||
|
|
name: "HummingbirdFluent",
|
||
|
|
package: "hummingbird-fluent"
|
||
|
|
),
|
||
|
|
.product(
|
||
|
|
name: "FluentMySQLDriver",
|
||
|
|
package: "fluent-mysql-driver"
|
||
|
|
),
|
||
|
|
.product(
|
||
|
|
name: "FluentSQLiteDriver",
|
||
|
|
package: "fluent-sqlite-driver"
|
||
|
|
),
|
||
|
|
.product(
|
||
|
|
name: "SQLKit",
|
||
|
|
package: "sql-kit"
|
||
|
|
),
|
||
|
|
],
|
||
|
|
path: "Sources"
|
||
|
|
),
|
||
|
|
.testTarget(
|
||
|
|
name: "PersistenceTests",
|
||
|
|
dependencies: [
|
||
|
|
.byName(name: "Persistence")
|
||
|
|
],
|
||
|
|
path: "Tests"
|
||
|
|
),
|
||
|
|
]
|
||
|
|
)
|