2020-07-30 11:54:21 +02:00
|
|
|
// swift-tools-version:5.3
|
|
|
|
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
|
|
|
|
|
|
|
import PackageDescription
|
|
|
|
|
2022-06-19 05:57:10 +02:00
|
|
|
var dependencies: [Package.Dependency] = [
|
|
|
|
.package(url: "https://github.com/Ranchero-Software/RSCore.git", .upToNextMajor(from: "1.0.0")),
|
|
|
|
.package(url: "https://github.com/Ranchero-Software/RSDatabase.git", .upToNextMajor(from: "1.0.0")),
|
|
|
|
.package(url: "https://github.com/Ranchero-Software/RSParser.git", .upToNextMajor(from: "2.0.2")),
|
|
|
|
]
|
|
|
|
|
|
|
|
#if swift(>=5.6)
|
|
|
|
dependencies.append(contentsOf: [
|
|
|
|
.package(path: "../Articles"),
|
|
|
|
])
|
|
|
|
#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: "ArticlesDatabase",
|
2020-07-30 14:27:14 +02:00
|
|
|
platforms: [.macOS(SupportedPlatform.MacOSVersion.v10_15), .iOS(SupportedPlatform.IOSVersion.v13)],
|
2020-07-30 11:54:21 +02:00
|
|
|
products: [
|
|
|
|
.library(
|
|
|
|
name: "ArticlesDatabase",
|
2020-12-21 17:55:00 +01:00
|
|
|
type: .dynamic,
|
2020-07-30 11:54:21 +02:00
|
|
|
targets: ["ArticlesDatabase"]),
|
|
|
|
],
|
2022-06-19 05:57:10 +02:00
|
|
|
dependencies: dependencies,
|
2020-07-30 11:54:21 +02:00
|
|
|
targets: [
|
|
|
|
.target(
|
|
|
|
name: "ArticlesDatabase",
|
2020-07-30 14:27:14 +02:00
|
|
|
dependencies: [
|
2020-07-31 03:43:18 +02:00
|
|
|
"RSCore",
|
|
|
|
"RSDatabase",
|
|
|
|
"RSParser",
|
|
|
|
"Articles",
|
2020-07-30 14:27:14 +02:00
|
|
|
]),
|
2020-07-30 11:54:21 +02:00
|
|
|
]
|
|
|
|
)
|