Skip to content

Commit aae84ba

Browse files
committed
Support Swift Package Manager
1 parent c7e156d commit aae84ba

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,8 @@ fastlane/test_output
6363
# After new code Injection tools there's a generated folder /iOSInjectionProject
6464
# https://github.com/johnno1962/injectionforxcode
6565

66-
iOSInjectionProject/
66+
iOSInjectionProject/
67+
68+
# SwiftPM
69+
.build
70+
.swiftpm

Package.swift

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// swift-tools-version:5.0
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
4+
import PackageDescription
5+
6+
let package = Package(
7+
name: "libwebp",
8+
products: [
9+
// Products define the executables and libraries produced by a package, and make them visible to other packages.
10+
.library(
11+
name: "libwebp",
12+
targets: ["libwebp"]),
13+
],
14+
dependencies: [
15+
// Dependencies declare other packages that this package depends on.
16+
// .package(url: /* package url */, from: "1.0.0"),
17+
],
18+
targets: [
19+
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
20+
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
21+
.target(
22+
name: "libwebp",
23+
dependencies: [],
24+
path: "libwebp/src",
25+
publicHeadersPath: "webp",
26+
cSettings: [.headerSearchPath("../")])
27+
]
28+
)

0 commit comments

Comments
 (0)