ainame / Swift-WebP

A thin libwebp wrapper in Swift that provides both encode/decode APIs
MIT License
163 stars 39 forks source link

Update project structure to support proper SPM build #21

Closed ainame closed 5 years ago

ainame commented 5 years ago

Closes #20

Prior to this PR, Package.swift for CWebP used swift-tools-version:4.2 but it doesn't play well with the root Package.swift in swift-tools-version:5.0. This PR resolved that situation.

This PR obsoleted old fashion Modules directory for CWebP and instead, I'm going to move CWebP directory to under Sources as same as the main target. Also CWebP is now accommodated in the root Package.swift thanks to the latest API to put pkgConfig settings in .systemLibrary.