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