| // swift-tools-version: 5.9 | |
| import PackageDescription | |
| let package = Package( | |
| name: "WtpsplitKit", | |
| platforms: [ | |
| .iOS(.v16), | |
| .macOS(.v13), | |
| ], | |
| products: [ | |
| .library(name: "WtpsplitKit", targets: ["WtpsplitKit"]), | |
| .executable(name: "wtpseg", targets: ["wtpseg"]), | |
| ], | |
| targets: [ | |
| .target( | |
| name: "WtpsplitKit", | |
| resources: [ | |
| .copy("Resources/xlmr_unigram.bin"), | |
| .copy("Resources/en_zh_remap.bin"), | |
| ] | |
| ), | |
| .executableTarget( | |
| name: "wtpseg", | |
| dependencies: ["WtpsplitKit"] | |
| ), | |
| .testTarget( | |
| name: "WtpsplitKitTests", | |
| dependencies: ["WtpsplitKit"] | |
| ), | |
| ] | |
| ) | |