38 lines
932 B
Swift
38 lines
932 B
Swift
// swift-tools-version: 6.3
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "Localization",
|
|
defaultLocalization: "en",
|
|
platforms: [
|
|
.macOS(.v15),
|
|
],
|
|
products: [
|
|
.library(
|
|
name: "Localization",
|
|
targets: [
|
|
"Localization"
|
|
]
|
|
)
|
|
],
|
|
targets: [
|
|
.target(
|
|
name: "Localization",
|
|
path: "Sources",
|
|
),
|
|
.testTarget(
|
|
name: "LocalizationTests",
|
|
dependencies: [
|
|
.byName(name: "Localization")
|
|
],
|
|
path: "Tests",
|
|
resources: [
|
|
// 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")
|
|
]
|
|
),
|
|
]
|
|
)
|