From cd9955c5b6cf176c13b3bf66f96387cedaec2006 Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Fri, 27 Dec 2019 16:14:21 +0800 Subject: [PATCH] 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 `` --- Package.swift | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Package.swift b/Package.swift index 649bb0a..e85ed1d 100644 --- a/Package.swift +++ b/Package.swift @@ -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(".")]) ] )