Package.swift 1.2 KB

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