From 24866cfcb5ad87cb409fc4bc41df4ca0dfbfb4f2 Mon Sep 17 00:00:00 2001 From: kelvin13 Date: Thu, 20 Jan 2022 14:14:45 -0600 Subject: [PATCH] fix warnings in Package.swift --- Package.swift | 136 ++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 122 insertions(+), 14 deletions(-) diff --git a/Package.swift b/Package.swift index a6b449f7..1a27dcc3 100644 --- a/Package.swift +++ b/Package.swift @@ -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: + [ + "example-color-rgb@0.png", + "example-color-rgb@4.png", + "example-color-v.png", + "example-color-rgb@8.png", + "example-color-rgb.png", + "example-luminance-rgb.png", + "example.rgba", + "example-color-rgb@13.png", + "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] )