xtool.git
Publicgit clone https://git.maproj.org/xtool.gitxtool.git / Examples / DemoResources / Package.swift
Package.swift31 lines · 613 BRaw
| 1 | // swift-tools-version: 6.0 |
| 2 | |
| 3 | import PackageDescription |
| 4 | |
| 5 | let package = Package( |
| 6 | name: "DemoResources", |
| 7 | platforms: [ |
| 8 | .iOS(.v17), |
| 9 | .macOS(.v14), |
| 10 | ], |
| 11 | products: [ |
| 12 | .library( |
| 13 | name: "DemoResources", |
| 14 | targets: ["DemoResources"] |
| 15 | ), |
| 16 | ], |
| 17 | dependencies: [ |
| 18 | .package(path: "../ExampleSupport"), |
| 19 | ], |
| 20 | targets: [ |
| 21 | .target( |
| 22 | name: "DemoResources", |
| 23 | dependencies: [ |
| 24 | "ExampleSupport", |
| 25 | ], |
| 26 | resources: [ |
| 27 | .process("bundled.txt"), |
| 28 | ] |
| 29 | ), |
| 30 | ] |
| 31 | ) |