A wrapper for libwebp + Xcode project. Support Carthage && CocoaPods && SwiftPM.
Go to file
DreamPiggy 413f22124f
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>`
2019-12-27 16:42:27 +08:00
Xcode Bumped version to 1.1.0-rc2 2019-12-27 11:34:55 +08:00
libwebp@d7844e9762 Update to v1.1.0-rc2 2019-12-27 11:31:40 +08:00
libwebp.xcodeproj Update to v1.0.2 2019-05-15 14:38:26 +08:00
libwebpExample Added Xcode project that builds libwebp as a framework for all 4 platforms + small macos command line example 2018-08-28 15:44:11 +03:00
.gitignore Support Swift Package Manager 2019-10-06 12:37:37 +08:00
.gitmodules Added libwebp dependency 2018-08-28 14:24:53 +03:00
.travis.yml Fix the Travic-CI script because of rubygem version bump, update the readme 2019-12-27 12:14:32 +08:00
Package.swift 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>` 2019-12-27 16:14:21 +08:00
README.md Fix the Travic-CI script because of rubygem version bump, update the readme 2019-12-27 12:14:32 +08:00
libwebp.podspec Bumped version to 1.1.0-rc2 2019-12-27 11:34:55 +08:00

README.md

libwebp + Xcode

A wrapper for libwebp + Xcode project. This enables Carthage support This also contains the Swift Package Manager support

CI Status Carthage compatible SwiftPM compatible

Requirements

  • iOS 8
  • macOS 10.6
  • tvOS 9.0
  • watchOS 2.0

Installation

CocoaPods

libwebp is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'libwebp'

Carthage

libwebp is (via this repo) available through Carthage.

github "SDWebImage/libwebp-Xcode"

SwiftPM

Libwebp is available through Swift Package Manager.

let package = Package(
    dependencies: [
        .package(url: "https://github.com/SDWebImage/libwebp-Xcode", from: "1.1.0")
    ],
    // ...
)

Usage

Use libwebp as you would normally, this is just a repo that adds an Xcode proj.

For Swift Package Manager user, use the modular import instead of C headers.

  • Objective-C
@import libwebp;
  • Swift
import libwebp

License

libwebp is available under the BSD-3 license. See the LICENSE file for more info.