Skip to content

Commit cd9955c

Browse files
committed
Fix the libwebp SwiftPM include issue. Now using the same strcture to generate public header search path, which make the user easy to use like <webp/decode.h>
1 parent fb91d29 commit cd9955c

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)