2026-07-03 03:48:25 +00:00
|
|
|
// swift-tools-version: 6.3
|
2026-06-27 02:26:33 +00:00
|
|
|
|
|
|
|
|
import PackageDescription
|
|
|
|
|
|
|
|
|
|
let package = Package(
|
|
|
|
|
name: "Website",
|
2026-06-29 23:08:36 +00:00
|
|
|
defaultLocalization: "en",
|
2026-06-27 02:26:33 +00:00
|
|
|
platforms: [
|
|
|
|
|
.macOS(.v15),
|
|
|
|
|
.iOS(.v18),
|
|
|
|
|
.tvOS(.v18),
|
|
|
|
|
],
|
|
|
|
|
products: [
|
|
|
|
|
.executable(
|
|
|
|
|
name: "Website",
|
|
|
|
|
targets: [
|
|
|
|
|
"Website",
|
|
|
|
|
"WebsiteCore",
|
|
|
|
|
]
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
dependencies: [
|
2026-06-29 23:08:36 +00:00
|
|
|
.package(
|
2026-07-03 03:48:25 +00:00
|
|
|
path: "../../Packages/Localization"
|
2026-06-29 23:08:36 +00:00
|
|
|
),
|
2026-06-28 05:07:19 +00:00
|
|
|
.package(
|
|
|
|
|
url: "https://github.com/elementary-swift/elementary.git",
|
|
|
|
|
from: "0.6.0"
|
|
|
|
|
),
|
|
|
|
|
.package(
|
|
|
|
|
url: "https://github.com/hummingbird-community/hummingbird-elementary.git",
|
|
|
|
|
from: "0.3.0"
|
|
|
|
|
),
|
2026-06-27 02:26:33 +00:00
|
|
|
.package(
|
|
|
|
|
url: "https://github.com/hummingbird-project/hummingbird.git",
|
|
|
|
|
from: "2.25.0"
|
|
|
|
|
),
|
2026-06-28 06:15:05 +00:00
|
|
|
.package(
|
|
|
|
|
url: "https://github.com/hummingbird-project/hummingbird-compression.git",
|
|
|
|
|
from: "2.0.0"
|
|
|
|
|
),
|
2026-06-27 02:26:33 +00:00
|
|
|
.package(
|
|
|
|
|
url: "https://github.com/apple/swift-configuration.git",
|
|
|
|
|
from: "1.0.0",
|
|
|
|
|
traits: [
|
|
|
|
|
.defaults,
|
|
|
|
|
"CommandLineArguments",
|
|
|
|
|
]
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
targets: [
|
|
|
|
|
.executableTarget(
|
|
|
|
|
name: "Website",
|
|
|
|
|
dependencies: [
|
2026-06-27 10:59:32 +00:00
|
|
|
.byName(name: "WebsiteCore"),
|
2026-06-27 02:26:33 +00:00
|
|
|
.product(
|
|
|
|
|
name: "Configuration",
|
|
|
|
|
package: "swift-configuration"
|
|
|
|
|
),
|
|
|
|
|
.product(
|
|
|
|
|
name: "Hummingbird",
|
|
|
|
|
package: "hummingbird"
|
|
|
|
|
),
|
2026-06-28 06:15:05 +00:00
|
|
|
.product(
|
|
|
|
|
name: "HummingbirdCompression",
|
|
|
|
|
package: "hummingbird-compression"
|
|
|
|
|
),
|
2026-06-27 02:26:33 +00:00
|
|
|
],
|
|
|
|
|
path: "Sources/App"
|
|
|
|
|
),
|
|
|
|
|
.target(
|
|
|
|
|
name: "WebsiteCore",
|
2026-06-27 10:59:32 +00:00
|
|
|
dependencies: [
|
2026-06-29 23:08:36 +00:00
|
|
|
.byName(name: "Localization"),
|
2026-06-27 10:59:32 +00:00
|
|
|
.product(
|
|
|
|
|
name: "Configuration",
|
|
|
|
|
package: "swift-configuration"
|
|
|
|
|
),
|
2026-06-28 05:07:19 +00:00
|
|
|
.product(
|
|
|
|
|
name: "Elementary",
|
|
|
|
|
package: "elementary"
|
|
|
|
|
),
|
2026-06-27 12:16:50 +00:00
|
|
|
.product(
|
|
|
|
|
name: "Hummingbird",
|
|
|
|
|
package: "hummingbird"
|
|
|
|
|
),
|
2026-06-28 05:07:19 +00:00
|
|
|
.product(
|
|
|
|
|
name: "HummingbirdElementary",
|
|
|
|
|
package: "hummingbird-elementary"
|
|
|
|
|
),
|
2026-06-27 10:59:32 +00:00
|
|
|
],
|
2026-06-29 23:08:36 +00:00
|
|
|
path: "Sources/Library",
|
|
|
|
|
resources: [
|
2026-07-09 23:00:55 +00:00
|
|
|
// Copied verbatim rather than processed: the String Catalog is read as raw JSON at
|
|
|
|
|
// runtime so it resolves identically on Darwin and Linux (which cannot compile it).
|
|
|
|
|
.copy("Catalogs/Localizable.xcstrings")
|
2026-06-29 23:08:36 +00:00
|
|
|
]
|
2026-06-27 02:26:33 +00:00
|
|
|
),
|
|
|
|
|
.testTarget(
|
|
|
|
|
name: "WebsiteTests",
|
|
|
|
|
dependencies: [
|
2026-06-27 10:59:32 +00:00
|
|
|
.byName(name: "Website"),
|
2026-06-27 02:26:33 +00:00
|
|
|
.product(
|
|
|
|
|
name: "HummingbirdTesting",
|
|
|
|
|
package: "hummingbird"
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
path: "Tests/App"
|
|
|
|
|
),
|
|
|
|
|
.testTarget(
|
|
|
|
|
name: "WebsiteCoreTests",
|
|
|
|
|
dependencies: [
|
|
|
|
|
.byName(name: "WebsiteCore"),
|
2026-06-28 05:07:19 +00:00
|
|
|
.product(
|
|
|
|
|
name: "Elementary",
|
|
|
|
|
package: "elementary"
|
|
|
|
|
),
|
|
|
|
|
.product(
|
|
|
|
|
name: "Hummingbird",
|
|
|
|
|
package: "hummingbird"
|
|
|
|
|
),
|
|
|
|
|
.product(
|
|
|
|
|
name: "HummingbirdTesting",
|
|
|
|
|
package: "hummingbird"
|
|
|
|
|
),
|
2026-06-27 02:26:33 +00:00
|
|
|
],
|
|
|
|
|
path: "Tests/Library"
|
|
|
|
|
),
|
|
|
|
|
]
|
|
|
|
|
)
|