Skip to content

Commit

Permalink
Simplified and fixed the Package.swift file
Browse files Browse the repository at this point in the history
  • Loading branch information
mpretty-cyro committed Jun 27, 2024
1 parent 3e727c5 commit 8f5202c
Showing 1 changed file with 9 additions and 36 deletions.
45 changes: 9 additions & 36 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,53 +5,26 @@ let package = Package(
name: "YYImage",
defaultLocalization: "en",
platforms: [
.iOS(.v11)
.iOS(.v12)
],
products: [
.library(
name: "YYImage",
targets: ["YYImageCore", "YYImageWebP", "YYImageLibwebp"]
)
targets: ["YYImage"]
),
],
dependencies: [
.package(url: "https://github.com/SDWebImage/libwebp-Xcode", from: "1.3.2")
],
targets: [
.target(
name: "YYImageCore",
path: "YYImage",
publicHeadersPath: ".",
sources: ["*.h", "*.m"],
cSettings: [
.headerSearchPath("$(SRCROOT)/libwebp/src")
name: "YYImage",
dependencies: [
.product(name: "libwebp", package: "libwebp-Xcode")
],
linkerSettings: [
.linkedLibrary("z"),
.linkedFramework("UIKit"),
.linkedFramework("CoreFoundation"),
.linkedFramework("QuartzCore"),
.linkedFramework("AssetsLibrary"),
.linkedFramework("ImageIO"),
.linkedFramework("Accelerate"),
.linkedFramework("CoreServices/CoreServices")
]
),
.target(
name: "YYImageWebP",
dependencies: ["YYImageCore"],
path: "Vendor",
publicHeadersPath: ".",
sources: ["WebP.framework"]
),
.target(
name: "YYImageLibwebp",
dependencies: ["YYImageCore", "libwebp"],
path: "libwebp",
publicHeadersPath: ".",
sources: ["src/*.h", "src/*.c"],
cSettings: [
.headerSearchPath("$(SRCROOT)/libwebp/src")
]
path: ".",
sources: ["YYImage"],
publicHeadersPath: "YYImage"
)
]
)

0 comments on commit 8f5202c

Please sign in to comment.