localized/Package.swift
david-swift 97d086a7bb
All checks were successful
Deploy Docs / publish (push) Successful in 18s
SwiftLint / SwiftLint (push) Successful in 6s
Migrate to the Aparoksha Gitea instance
2024-10-07 14:58:15 +02:00

68 lines
1.5 KiB
Swift

// swift-tools-version: 6.0
//
// Package.swift
// Localized
//
// Created by david-swift on 27.02.24.
//
import CompilerPluginSupport
import PackageDescription
/// The Localized package.
let package = Package(
name: "Localized",
platforms: [.macOS(.v13)],
products: [
.library(
name: "Localized",
targets: ["Localized"]
),
.plugin(
name: "GenerateLocalized",
targets: ["GenerateLocalized"]
)
],
dependencies: [
.package(url: "https://github.com/jpsim/Yams", from: "5.0.6")
],
targets: [
.target(
name: "GenerationLibrary",
dependencies: [
.product(name: "Yams", package: "Yams")
]
),
.executableTarget(
name: "Generation",
dependencies: [
"GenerationLibrary"
]
),
.plugin(
name: "GenerateLocalized",
capability: .buildTool(),
dependencies: [
"Generation"
]
),
.target(
name: "Localized"
),
.executableTarget(
name: "PluginTests",
dependencies: [
"Localized"
],
path: "Tests/PluginTests",
resources: [
.process("Localized.yml")
],
plugins: [
"GenerateLocalized"
]
)
],
swiftLanguageModes: [.v5]
)