secretive/Sources/Packages/Package.swift

79 lines
2.2 KiB
Swift
Raw Normal View History

2024-08-15 23:50:03 +00:00
// swift-tools-version: 6.0
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
2024-08-15 23:50:03 +00:00
let secretiveDefaults: [PackageDescription.SwiftSetting]? = [.swiftLanguageMode(.v6), .unsafeFlags(["-warnings-as-errors"])]
let package = Package(
name: "SecretivePackages",
platforms: [
2024-08-15 23:50:03 +00:00
.macOS(.v13)
],
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"]),
],
dependencies: [
],
targets: [
.target(
name: "SecretKit",
dependencies: [],
2024-08-15 23:50:03 +00:00
swiftSettings: secretiveDefaults
),
.testTarget(
name: "SecretKitTests",
dependencies: ["SecretKit", "SecureEnclaveSecretKit", "SmartCardSecretKit"],
2024-08-15 23:50:03 +00:00
swiftSettings: secretiveDefaults
),
.target(
name: "SecureEnclaveSecretKit",
dependencies: ["SecretKit"],
2024-08-15 23:50:03 +00:00
swiftSettings: secretiveDefaults
),
.target(
name: "SmartCardSecretKit",
dependencies: ["SecretKit"],
2024-08-15 23:50:03 +00:00
swiftSettings: secretiveDefaults
),
.target(
name: "SecretAgentKit",
dependencies: ["SecretKit", "SecretAgentKitHeaders"],
2024-08-15 23:50:03 +00:00
swiftSettings: secretiveDefaults
),
.systemLibrary(
name: "SecretAgentKitHeaders"
),
.testTarget(
name: "SecretAgentKitTests",
dependencies: ["SecretAgentKit"])
,
.target(
name: "Brief",
dependencies: []
),
.testTarget(
name: "BriefTests",
dependencies: ["Brief"]
),
]
)
2024-08-15 23:50:03 +00:00