1 // swift-tools-version:5.0
2 // The swift-tools-version declares the minimum version of Swift required to build this package.
4 import PackageDescription
9 .macOS(.v10_10), .iOS(.v9), .tvOS(.v9)
12 // Products define the executables and libraries a package produces, and make them visible to other packages.
15 targets: ["libtommath"])
18 // Dependencies declare other packages that this package depends on.
19 // .package(url: /* package url */, from: "1.0.0"),
22 // Targets are the basic building blocks of a package. A target can define a module or a test suite.
23 // Targets can depend on other targets in this package, and on products in packages this package depends on.
27 exclude: ["demo", "doc", "etc", "logs", "mtest"],
29 publicHeadersPath: "modulemap",
31 .unsafeFlags(["-flto=thin"]) // for Dead Code Elimination
33 .testTarget(name: "TommathTests",
34 dependencies: ["libtommath"],
36 sources: ["tommath_tests.swift"])
38 cLanguageStandard: .gnu11,
39 cxxLanguageStandard: .gnucxx14