|
| 1 | +// swift-tools-version:5.0 |
| 2 | +// The swift-tools-version declares the minimum version of Swift required to build this package. |
| 3 | + |
| 4 | +import PackageDescription |
| 5 | + |
| 6 | +let package = Package( |
| 7 | + name: "SDWebImageWebPCoder", |
| 8 | + platforms: [ |
| 9 | + .macOS(.v10_10), .iOS(.v8), .tvOS(.v9), .watchOS(.v2) |
| 10 | + ], |
| 11 | + products: [ |
| 12 | + // Products define the executables and libraries produced by a package, and make them visible to other packages. |
| 13 | + .library( |
| 14 | + name: "SDWebImageWebPCoder", |
| 15 | + targets: ["SDWebImageWebPCoder"]), |
| 16 | + ], |
| 17 | + dependencies: [ |
| 18 | + // Dependencies declare other packages that this package depends on. |
| 19 | + // .package(url: /* package url */, from: "1.0.0"), |
| 20 | + .package(url: "https://github.com/SDWebImage/SDWebImage.git", from: "5.1.0"), |
| 21 | + .package(url: "https://github.com/SDWebImage/libwebp-Xcode.git", from: Version(1, 1, 0, prereleaseIdentifiers: ["-rc.2"])) |
| 22 | + ], |
| 23 | + targets: [ |
| 24 | + // Targets are the basic building blocks of a package. A target can define a module or a test suite. |
| 25 | + // Targets can depend on other targets in this package, and on products in packages which this package depends on. |
| 26 | + .target( |
| 27 | + name: "SDWebImageWebPCoder", |
| 28 | + dependencies: ["SDWebImage", "libwebp"], |
| 29 | + path: ".", |
| 30 | + sources: ["SDWebImageWebPCoder/Classes"], |
| 31 | + publicHeadersPath: "SDWebImageWebPCoder/Classes" |
| 32 | + ) |
| 33 | + ] |
| 34 | +) |
0 commit comments