2024-03-11 00:39:38 +01:00
|
|
|
// swift-tools-version: 5.10
|
2020-07-30 11:54:21 +02:00
|
|
|
import PackageDescription
|
|
|
|
|
2022-06-19 05:57:10 +02:00
|
|
|
var dependencies: [Package.Dependency] = [
|
|
|
|
]
|
|
|
|
|
|
|
|
#if swift(>=5.6)
|
|
|
|
dependencies.append(contentsOf: [
|
2024-03-11 00:39:38 +01:00
|
|
|
.package(path: "../Articles"),
|
|
|
|
.package(path: "../Database"),
|
2024-03-11 02:17:04 +01:00
|
|
|
.package(path: "../FMDB"),
|
2022-06-19 05:57:10 +02:00
|
|
|
])
|
|
|
|
#else
|
|
|
|
dependencies.append(contentsOf: [
|
|
|
|
.package(url: "../Articles", .upToNextMajor(from: "1.0.0")),
|
|
|
|
])
|
|
|
|
#endif
|
|
|
|
|
2020-07-30 11:54:21 +02:00
|
|
|
let package = Package(
|
|
|
|
name: "SyncDatabase",
|
2024-03-11 00:39:38 +01:00
|
|
|
platforms: [.macOS(.v14), .iOS(.v17)],
|
2020-07-30 11:54:21 +02:00
|
|
|
products: [
|
|
|
|
.library(
|
|
|
|
name: "SyncDatabase",
|
2024-03-11 02:17:04 +01:00
|
|
|
type: .dynamic,
|
2020-07-30 11:54:21 +02:00
|
|
|
targets: ["SyncDatabase"]),
|
|
|
|
],
|
2024-02-28 07:32:55 +01:00
|
|
|
dependencies: dependencies,
|
|
|
|
targets: [
|
|
|
|
.target(
|
|
|
|
name: "SyncDatabase",
|
|
|
|
dependencies: [
|
2024-03-11 00:39:38 +01:00
|
|
|
"Database",
|
2020-07-31 03:43:18 +02:00
|
|
|
"Articles",
|
2024-03-11 02:17:04 +01:00
|
|
|
"FMDB"
|
2024-03-11 00:39:38 +01:00
|
|
|
],
|
|
|
|
swiftSettings: [
|
|
|
|
.enableExperimentalFeature("StrictConcurrency")
|
|
|
|
]
|
2024-02-28 07:32:55 +01:00
|
|
|
)
|
|
|
|
]
|
2020-07-30 11:54:21 +02:00
|
|
|
)
|