Cross platform swift package for the zlib library.
dependencies: [
.package(url: "https://github.com/the-swift-collective/zlib.git", from: "1.3.1"),
]
// swift-tools-version: 5.8
import PackageDescription
let package = Package(
name: "MyPackage",
products: [
.library(
name: "MyLibrary",
targets: ["MyLibrary"]
),
],
dependencies: [
.package(url: "https://github.com/the-swift-collective/zlib.git", from: "1.3.1")
],
targets: [
.target(
name: "MyLibrary",
dependencies: [
/* add the zlib product as a library dependency. */
.product(name: "ZLib", package: "zlib"),
]
),
]
)