Lvv.me | 2745563 | 2021-11-14 17:29:33 +0800 | [diff] [blame] | 1 | // swift-tools-version:5.0 |
| 2 | // The swift-tools-version declares the minimum version of Swift required to build this package. |
| 3 | |
| 4 | import PackageDescription |
| 5 | |
| 6 | let package = Package( |
| 7 | name: "zstd", |
| 8 | platforms: [ |
| 9 | .macOS(.v10_10), .iOS(.v9), .tvOS(.v9) |
| 10 | ], |
| 11 | products: [ |
| 12 | // Products define the executables and libraries a package produces, and make them visible to other packages. |
| 13 | .library( |
Lvv.me | 81b9620 | 2021-11-15 13:23:50 +0800 | [diff] [blame] | 14 | name: "libzstd", |
| 15 | targets: [ "libzstd" ]) |
Lvv.me | 2745563 | 2021-11-14 17:29:33 +0800 | [diff] [blame] | 16 | ], |
| 17 | dependencies: [ |
| 18 | // Dependencies declare other packages that this package depends on. |
| 19 | // .package(url: /* package url */, from: "1.0.0"), |
| 20 | ], |
| 21 | targets: [ |
| 22 | // Targets are the basic building blocks of a package. A target can define a module or a test suite. |
| 23 | // Targets can depend on other targets in this package, and on products in packages this package depends on. |
| 24 | .target( |
Lvv.me | 81b9620 | 2021-11-15 13:23:50 +0800 | [diff] [blame] | 25 | name: "libzstd", |
Lvv.me | 2745563 | 2021-11-14 17:29:33 +0800 | [diff] [blame] | 26 | path: "lib", |
| 27 | sources: [ "common", "compress", "decompress", "dictBuilder" ], |
Lvv.me | 81b9620 | 2021-11-15 13:23:50 +0800 | [diff] [blame] | 28 | publicHeadersPath: "modulemap", |
Lvv.me | 2745563 | 2021-11-14 17:29:33 +0800 | [diff] [blame] | 29 | cSettings: [ |
| 30 | .headerSearchPath(".") |
| 31 | ]) |
| 32 | ], |
| 33 | swiftLanguageVersions: [.v5], |
| 34 | cLanguageStandard: .gnu11, |
| 35 | cxxLanguageStandard: .gnucxx14 |
| 36 | ) |