diff --git a/Package.swift b/Package.swift index 279f319766..873158d453 100644 --- a/Package.swift +++ b/Package.swift @@ -3,6 +3,39 @@ import PackageDescription let package = Package( name: "Lottie", - platforms: [.iOS("11.0"), .macOS("10.10"), .tvOS("11.0")], - products: [.library(name: "Lottie", targets: ["Lottie"])], - targets: [.target(name: "Lottie", path: "Sources")]) \ No newline at end of file + platforms: [ + .iOS("11.0"), + .macOS("10.10"), + .tvOS("11.0") + ], + products: [ + .library( + name: "Lottie", + targets: ["Lottie"] + ) + ], + targets: [ + .target( + name: "Lottie", + path: "Sources", + cSettings: [ + .define( + "SWIFT_OPTIMIZATION_LEVEL", + to: "-O" + ), + .define( + "SWIFT_COMPILATION_MODE", + to: "wholemodule" + ) + ] + ) + ] +) + +//:configuration = Debug +//:completeSettings = none + + +//:configuration = Debug +//SWIFT_OPTIMIZATION_LEVEL = -O +//SWIFT_COMPILATION_MODE = wholemodule