diff options
| author | Ruben Beltran del Rio <jj@r.bdr.sh> | 2026-06-15 14:35:36 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <jj@r.bdr.sh> | 2026-06-16 14:47:30 +0200 |
| commit | 657aa83a5ca24dc35572c040df64a0abb85e8612 (patch) | |
| tree | fe0b6fd425d8cad9dc6a28ada4ad8600e42b367e /Package.swift | |
Initial extraction from Norganize
Diffstat (limited to 'Package.swift')
| -rw-r--r-- | Package.swift | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..c9a9448 --- /dev/null +++ b/Package.swift @@ -0,0 +1,51 @@ +// swift-tools-version: 6.4 +// The swift-tools-version declares the minimum version of Swift required to build this package. + +import PackageDescription + +let package = Package( + name: "NorgUI", + defaultLocalization: "en", + platforms: [ + .iOS(.v18), + .macOS(.v15), + .visionOS(.v2), + ], + products: [ + // Products define the executables and libraries a package produces, making them visible to other packages. + .library( + name: "NorgUI", + targets: ["NorgUI"] + ), + ], + dependencies: [ + // NorgKit provides the parser and model value types. Uses a local path + // while the packages are developed side by side; switch to a tagged + // git dependency once NorgKit is published. + .package(path: "../norgkit"), + ], + targets: [ + // Targets are the basic building blocks of a package, defining a module or a test suite. + // Targets can depend on other targets in this package and products from dependencies. + .target( + name: "NorgUI", + dependencies: [ + .product(name: "NorgKit", package: "norgkit"), + ], + resources: [ + .process("Resources"), + ], + swiftSettings: [ + .enableUpcomingFeature("ApproachableConcurrency"), + ], + ), + .testTarget( + name: "NorgUITests", + dependencies: ["NorgUI"], + swiftSettings: [ + .enableUpcomingFeature("ApproachableConcurrency"), + ], + ), + ], + swiftLanguageModes: [.v6] +) |