NetNewsWire/Core/Package.swift

40 lines
1.1 KiB
Swift

// swift-tools-version: 5.10
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "Core",
platforms: [.macOS(.v14), .iOS(.v17)],
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(name: "Core", targets: ["Core"]),
.library(name: "CoreResources", type: .static, targets: ["CoreResources"])
],
dependencies: [
.package(path: "../AppKitExtras")
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies.
.target(
name: "Core",
dependencies: [
"AppKitExtras",
],
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency")
]
),
.target(
name: "CoreResources",
resources: [
.process("Resources/WebViewWindow.xib"),
.process("Resources/IndeterminateProgressWindow.xib")
]),
.testTarget(
name: "CoreTests",
dependencies: ["Core"]),
]
)