blob: 75a5a0b3323eb9d4d84e6931ac564818b8104a64 [file] [log] [blame]
Lvv.me27455632021-11-14 17:29:33 +08001// swift-tools-version:5.0
2// The swift-tools-version declares the minimum version of Swift required to build this package.
3
4import PackageDescription
5
6let 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.me81b96202021-11-15 13:23:50 +080014 name: "libzstd",
15 targets: [ "libzstd" ])
Lvv.me27455632021-11-14 17:29:33 +080016 ],
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.me81b96202021-11-15 13:23:50 +080025 name: "libzstd",
Lvv.me27455632021-11-14 17:29:33 +080026 path: "lib",
27 sources: [ "common", "compress", "decompress", "dictBuilder" ],
Lvv.me81b96202021-11-15 13:23:50 +080028 publicHeadersPath: "modulemap",
Lvv.me27455632021-11-14 17:29:33 +080029 cSettings: [
30 .headerSearchPath(".")
31 ])
32 ],
33 swiftLanguageVersions: [.v5],
34 cLanguageStandard: .gnu11,
35 cxxLanguageStandard: .gnucxx14
36)