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>`
This commit is contained in:
DreamPiggy 2019-12-27 16:42:27 +08:00 committed by GitHub
commit 413f22124f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -21,8 +21,9 @@ let package = Package(
.target(
name: "libwebp",
dependencies: [],
path: "libwebp/src",
publicHeadersPath: "webp",
cSettings: [.headerSearchPath("../")])
path: "libwebp",
sources: ["src"],
publicHeadersPath: "src",
cSettings: [.headerSearchPath(".")])
]
)