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