Skip to content

Commit

Permalink
fix warnings in Package.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
tayloraswift committed Jan 20, 2022
1 parent 9cccfd8 commit 24866cf
Showing 1 changed file with 122 additions and 14 deletions.
136 changes: 122 additions & 14 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,130 @@ let package = Package(
],
targets:
[
.target(name: "PNG", dependencies: [], path: "sources/png"),
.target(name: "PNG", dependencies: [], path: "sources/png"),

.target(name: "PNGUnitTests", dependencies: ["PNG"], path: "tests/unit"),
.target(name: "PNGIntegrationTests", dependencies: ["PNG"], path: "tests/integration"),
.target(name: "PNGCompressionTests", dependencies: ["PNG"], path: "tests/compression"),
.target(name: "PNGCompressionBenchmarks", dependencies: ["PNG"], path: "benchmarks/compression/swift"),
.target(name: "PNGDecompressionBenchmarks", dependencies: ["PNG"], path: "benchmarks/decompression/swift"),
.executableTarget(name: "PNGUnitTests", dependencies: ["PNG"], path: "tests/unit"),
.executableTarget(name: "PNGIntegrationTests", dependencies: ["PNG"], path: "tests/integration",
exclude:
[
"PngSuite.LICENSE",
"PngSuite.README",
"in/",
"out/",
"rgba/",
]),
.executableTarget(name: "PNGCompressionTests", dependencies: ["PNG"], path: "tests/compression",
exclude:
[
"baseline/",
"out/",
]),
.executableTarget(name: "PNGCompressionBenchmarks", dependencies: ["PNG"], path: "benchmarks/compression/swift"),
.executableTarget(name: "PNGDecompressionBenchmarks", dependencies: ["PNG"], path: "benchmarks/decompression/swift"),

.target(name: "PNGDecodeBasic", dependencies: ["PNG"], path: "examples/decode-basic"),
.target(name: "PNGEncodeBasic", dependencies: ["PNG"], path: "examples/encode-basic"),
.target(name: "PNGIndexing", dependencies: ["PNG"], path: "examples/indexing"),
.target(name: "PNGiPhoneOptimized", dependencies: ["PNG"], path: "examples/iphone-optimized"),
.target(name: "PNGMetadata", dependencies: ["PNG"], path: "examples/metadata"),
.target(name: "PNGInMemory", dependencies: ["PNG"], path: "examples/in-memory"),
.target(name: "PNGDecodeOnline", dependencies: ["PNG"], path: "examples/decode-online"),
.target(name: "PNGCustomColor", dependencies: ["PNG"], path: "examples/custom-color"),
.executableTarget(name: "PNGDecodeBasic", dependencies: ["PNG"], path: "examples/decode-basic",
exclude:
[
"example.png.rgba",
"example.png.v.png",
"example.png.rgba.png",
"example.png",
"example.png.v",
"example.png.va.png",
"example.png.va",
]),
.executableTarget(name: "PNGEncodeBasic", dependencies: ["PNG"], path: "examples/encode-basic",
exclude:
[
"[email protected]",
"[email protected]",
"example-color-v.png",
"[email protected]",
"example-color-rgb.png",
"example-luminance-rgb.png",
"example.rgba",
"[email protected]",
"example-luminance-v.png",
]),
.executableTarget(name: "PNGIndexing", dependencies: ["PNG"], path: "examples/indexing",
exclude:
[
"example.png",
"example-indexed.png",
"gradient-visualization.png",
]),
.executableTarget(name: "PNGiPhoneOptimized", dependencies: ["PNG"], path: "examples/iphone-optimized",
exclude:
[
"example-bgr8.png",
"example-rgb8.png",
"example.png",
]),
.executableTarget(name: "PNGMetadata", dependencies: ["PNG"], path: "examples/metadata",
exclude:
[
"example-newtime.png",
"example.png",
]),
.executableTarget(name: "PNGInMemory", dependencies: ["PNG"], path: "examples/in-memory",
exclude:
[
"example.png.rgba.png",
"example.png.png",
"example.png.rgba",
"example.png",
]),
.executableTarget(name: "PNGDecodeOnline", dependencies: ["PNG"], path: "examples/decode-online",
exclude:
[
"example-progressive-9.png",
"example-8.png",
"example-progressive-6.png",
"example-progressive-11.png",
"example-progressive.png",
"example-progressive-0.png",
"example-progressive-overdrawn-5.png",
"example-progressive-3.png",
"example-progressive-2.png",
"example-progressive-10.png",
"example-6.png",
"example-5.png",
"example-1.png",
"example-10.png",
"example-progressive-overdrawn-2.png",
"example-progressive-overdrawn-4.png",
"example-progressive-8.png",
"example-progressive-1.png",
"example-progressive-overdrawn-10.png",
"example-progressive-7.png",
"example-0.png",
"example-progressive-overdrawn-0.png",
"example-7.png",
"example-4.png",
"example-progressive-overdrawn-3.png",
"example-progressive-overdrawn-9.png",
"example-9.png",
"example-progressive-5.png",
"example-progressive-overdrawn-11.png",
"example-progressive-4.png",
"example-3.png",
"example-progressive-overdrawn-8.png",
"example.png",
"example-2.png",
"example-progressive-overdrawn-1.png",
"example-progressive-overdrawn-6.png",
"example-progressive-overdrawn-7.png",

]),
.executableTarget(name: "PNGCustomColor", dependencies: ["PNG"], path: "examples/custom-color",
exclude:
[
"example.png",
"example-hue.png",
"example.png.png",
"example-value.png",
"example-saturation.png",
]),
],
swiftLanguageVersions: [.v5]
)

0 comments on commit 24866cf

Please sign in to comment.