Skip to content

Commit 413f221

Browse files
authored
Merge pull request #4 from SDWebImage/fix_swiftpm
Fix the libwebp SwiftPM include issue. Now using the same strcture to enerate public header search path, which make the user easy to use like `<webp/decode.h>`
2 parents fb91d29 + cd9955c commit 413f221

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Package.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ let package = Package(
2121
.target(
2222
name: "libwebp",
2323
dependencies: [],
24-
path: "libwebp/src",
25-
publicHeadersPath: "webp",
26-
cSettings: [.headerSearchPath("../")])
24+
path: "libwebp",
25+
sources: ["src"],
26+
publicHeadersPath: "src",
27+
cSettings: [.headerSearchPath(".")])
2728
]
2829
)

0 commit comments

Comments
 (0)