ainame / Swift-WebP

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

Support build flags used in compiling of libwebp #32

Closed ainame closed 5 years ago

ainame commented 5 years ago

In order to optimise the performance of libwebp running on specific platforms, there should be a way to pass build flags used in compiling of libwebp; e.g. WEBP_USE_SSE41

ainame commented 5 years ago

https://github.com/apple/swift-package-manager/blob/master/Documentation/PackageDescription.md

ainame commented 5 years ago

When installing this via Carthage, the built-in libwebp static-linked will be used so flags should be configured and when installing this via SPM, system-wide installed libwebp will be used so we don't have to care about it at all.

Thus, xcshceme should be fixed to close this issue.

ainame commented 5 years ago

For iOS -fembed-bitcode flag seems like important.