SPB Git

Repository Public

Package.swift 1.2 KB 28 lines swift

1// swift-tools-version: 6.02import PackageDescription34let package = Package(5    name: "FeatureAudit",6    defaultLocalization: "en",7    platforms: [.macOS(.v14)],8    products: [9        .library(name: "FeatureAudit", targets: ["FeatureAudit"]),10        .executable(name: "audit-preview", targets: ["audit-preview"]),11    ],12    dependencies: [13        .package(path: "../SheetCore"),14        .package(path: "../SheetUI"),15        .package(path: "../SheetAnalytics"),16        // Only the preview and the tests register the numeric library (SUBTOTAL, MOD, COUNTIF…);17        // the feature itself looks functions up in the registry and degrades when they are missing.18        .package(path: "../FunctionsNumeric"),19    ],20    targets: [21        .target(name: "FeatureAudit",22                dependencies: ["SheetCore", "SheetUI", .product(name: "Audit", package: "SheetAnalytics")],23                resources: [.process("Resources")]),24        .executableTarget(name: "audit-preview", dependencies: ["FeatureAudit", "SheetUI", "SheetCore", "FunctionsNumeric"]),25        .testTarget(name: "FeatureAuditTests", dependencies: ["FeatureAudit", "SheetUI", "SheetCore", "FunctionsNumeric", .product(name: "Audit", package: "SheetAnalytics")]),26    ]27)28
Files main
Menu

Theme