secretive/Sources/Packages/Package.swift

91 lines
2.5 KiB
Swift
Raw Normal View History

2024-12-25 16:59:24 +00:00
// swift-tools-version:6.0
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "SecretivePackages",
platforms: [
2024-12-25 23:25:01 +00:00
.macOS(.v15)
],
products: [
.library(
name: "SecretKit",
targets: ["SecretKit"]),
.library(
name: "SecureEnclaveSecretKit",
targets: ["SecureEnclaveSecretKit"]),
.library(
name: "SmartCardSecretKit",
targets: ["SmartCardSecretKit"]),
.library(
name: "SecretAgentKit",
targets: ["SecretAgentKit"]),
.library(
name: "SecretAgentKitHeaders",
targets: ["SecretAgentKitHeaders"]),
.library(
name: "Brief",
targets: ["Brief"]),
2025-01-06 00:25:16 +00:00
.library(
name: "Backports",
targets: ["Backports"]),
],
dependencies: [
],
targets: [
.target(
2025-01-06 00:25:16 +00:00
name: "Backports",
dependencies: [],
2024-12-25 16:59:24 +00:00
swiftSettings: swiftSettings
),
2025-01-06 00:25:16 +00:00
.target(
name: "SecretKit",
dependencies: ["Backports"],
swiftSettings: swiftSettings
),
.testTarget(
name: "SecretKitTests",
2025-01-06 00:25:16 +00:00
dependencies: ["Backports", "SecretKit", "SecureEnclaveSecretKit", "SmartCardSecretKit"],
2024-12-25 16:59:24 +00:00
swiftSettings: swiftSettings
),
.target(
name: "SecureEnclaveSecretKit",
dependencies: ["SecretKit"],
2024-12-25 16:59:24 +00:00
swiftSettings: swiftSettings
),
.target(
name: "SmartCardSecretKit",
2025-01-06 00:25:16 +00:00
dependencies: ["Backports", "SecretKit"],
2024-12-25 16:59:24 +00:00
swiftSettings: swiftSettings
),
.target(
name: "SecretAgentKit",
2025-01-06 00:25:16 +00:00
dependencies: ["Backports", "SecretKit", "SecretAgentKitHeaders"],
2024-12-25 16:59:24 +00:00
swiftSettings: swiftSettings
),
.systemLibrary(
name: "SecretAgentKitHeaders"
),
.testTarget(
name: "SecretAgentKitTests",
dependencies: ["SecretAgentKit"])
,
.target(
name: "Brief",
2025-01-06 00:25:16 +00:00
dependencies: ["Backports"]
),
.testTarget(
name: "BriefTests",
dependencies: ["Brief"]
),
]
)
2024-12-25 16:59:24 +00:00
var swiftSettings: [PackageDescription.SwiftSetting] {
[
.swiftLanguageMode(.v6),
.unsafeFlags(["-warnings-as-errors"])
]
}