2022-12-15 09:35:00 +00:00
|
|
|
// swift-tools-version: 5.7
|
2022-05-26 13:31:38 +01:00
|
|
|
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
|
|
|
|
|
|
|
import PackageDescription
|
|
|
|
|
|
|
|
let package = Package(
|
2022-12-15 09:35:00 +00:00
|
|
|
name: "Element Swift",
|
|
|
|
platforms: [
|
2024-05-15 10:37:44 +01:00
|
|
|
.macOS(.v13)
|
2022-12-15 09:35:00 +00:00
|
|
|
],
|
2022-05-26 13:31:38 +01:00
|
|
|
products: [
|
2022-12-15 09:35:00 +00:00
|
|
|
.executable(name: "tools", targets: ["Tools"])
|
2022-05-26 13:31:38 +01:00
|
|
|
],
|
|
|
|
dependencies: [
|
2024-05-17 11:30:25 +00:00
|
|
|
.package(url: "https://github.com/apple/swift-argument-parser", .upToNextMinor(from: "1.3.1")),
|
2024-05-15 10:37:44 +01:00
|
|
|
.package(url: "https://github.com/element-hq/swift-command-line-tools.git", revision: "a6ad90808f4f6cac615ab8496c6ff1bc5f9fa192"),
|
|
|
|
// .package(path: "../../../swift-command-line-tools"),
|
2024-05-20 11:22:07 +00:00
|
|
|
.package(url: "https://github.com/jpsim/Yams", .upToNextMinor(from: "5.1.2"))
|
2022-05-26 13:31:38 +01:00
|
|
|
],
|
|
|
|
targets: [
|
2022-12-15 09:35:00 +00:00
|
|
|
.executableTarget(name: "Tools",
|
|
|
|
dependencies: [
|
2023-03-23 11:26:20 +01:00
|
|
|
.product(name: "ArgumentParser", package: "swift-argument-parser"),
|
2024-05-15 10:37:44 +01:00
|
|
|
.product(name: "CommandLineTools", package: "swift-command-line-tools"),
|
2023-03-23 11:26:20 +01:00
|
|
|
.product(name: "Yams", package: "Yams")
|
2022-12-15 09:35:00 +00:00
|
|
|
],
|
|
|
|
path: "Tools/Sources")
|
2022-05-26 13:31:38 +01:00
|
|
|
]
|
|
|
|
)
|