Cross platform swift package for the libpng library.
dependencies: [
.package(url: "https://github.com/the-swift-collective/libpng.git", from: "1.6.45"),
]
// 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/libpng.git", from: "1.6.45")
],
targets: [
.target(
name: "MyLibrary",
dependencies: [
/* add the libpng product as a library dependency. */
.product(name: "LibPNG", package: "libpng"),
]
),
]
)