| 1 | // swift-tools-version: 5.9 |
| 2 | import PackageDescription |
| 3 | |
| 4 | let package = Package( |
| 5 | name: "RastrilloNative", |
| 6 | defaultLocalization: "en", |
| 7 | platforms: [.iOS(.v17), .macOS(.v14)], |
| 8 | products: [.library(name: "RastrilloNative", targets: ["RastrilloNative"]), |
| 9 | .library(name: "RastrilloApple", targets: ["RastrilloApple"]), |
| 10 | .library(name: "RastrilloMacUpdates", targets: ["RastrilloMacUpdates"]), |
| 11 | .library(name: "RastrilloTestSupport", targets: ["RastrilloTestSupport"])], |
| 12 | dependencies: [.package(url: "https://github.com/sparkle-project/Sparkle", exact: "2.9.6")], |
| 13 | targets: [ |
| 14 | .target(name: "RastrilloNative"), |
| 15 | .target(name: "RastrilloApple", dependencies: ["RastrilloNative"], resources: [.process("Resources")]), |
| 16 | .target(name: "RastrilloTestSupport", dependencies: ["RastrilloApple", "RastrilloNative"]), |
| 17 | .target(name: "RastrilloMacUpdates", dependencies: [.product(name: "Sparkle", package: "Sparkle", condition: .when(platforms: [.macOS]))], resources: [.process("Resources")]), |
| 18 | .testTarget(name: "RastrilloMacUpdatesTests", dependencies: ["RastrilloMacUpdates"]), |
| 19 | .testTarget(name: "RastrilloAppleTests", dependencies: ["RastrilloApple", "RastrilloNative", "RastrilloTestSupport"]), |
| 20 | .testTarget(name: "RastrilloNativeTests", dependencies: ["RastrilloNative", "RastrilloTestSupport"]), |
| 21 | .testTarget(name: "RastrilloTestSupportTests", dependencies: ["RastrilloTestSupport", "RastrilloApple"]), |
| 22 | ] |
| 23 | ) |
| 24 | |