oficina / calendar Public

Clone
git clone https://amadan.net/oficina/calendar

Plain git — no account needed to clone.

Download

Download this file

1// swift-tools-version: 5.9
2import PackageDescription
3import Foundation
4
5let sharedNative: Package.Dependency = ProcessInfo.processInfo.environment["OFICINA_NATIVE_PACKAGE_PATH"].map { .package(name: "native", path: $0) }
6 ?? .package(url: "https://amadan.net/rastrillo/native", revision: "2a5d07b2c8d3dfb3fd8526dc7e1c802f97865c67")
7
8let package = Package(name: "CalendarNative", platforms: [.macOS(.v14), .iOS(.v17)],
9 products: [.library(name: "CalendarKit", targets: ["CalendarKit"]), .executable(name: "CalendarMac", targets: ["CalendarMac"])],
10 dependencies: [sharedNative],
11 targets: [
12 .testTarget(name: "CalendarKitTests", dependencies: ["CalendarKit"]),
13 .executableTarget(name: "CalendarReview", dependencies: ["CalendarKit", .product(name: "RastrilloApple", package: "native")]),
14 .target(name: "CalendarKit", dependencies: [.product(name: "RastrilloApple", package: "native")]),
15 .executableTarget(name: "CalendarMac", dependencies: [.product(name: "RastrilloMacUpdates", package: "native", condition: .when(platforms: [.macOS])), "CalendarKit", .product(name: "RastrilloApple", package: "native")], path: "Sources/CalendarApp")])
16