Bump actions/upload-artifacts version
[libtommath.git] / Package.swift
blob54a195b75af41ac56d555e6aae57ffec49523357
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
6 let package = Package(
7     name: "tommath",
8     platforms: [
9         .macOS(.v10_10), .iOS(.v9), .tvOS(.v9)
10     ],
11     products: [
12         // Products define the executables and libraries a package produces, and make them visible to other packages.
13         .library(
14             name: "libtommath",
15             targets: ["libtommath"])
16     ],
17     dependencies: [
18         // Dependencies declare other packages that this package depends on.
19         // .package(url: /* package url */, from: "1.0.0"),
20     ],
21     targets: [
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.
24         .target(
25             name: "libtommath",
26             path: ".",
27             exclude: ["demo", "doc", "etc", "logs", "mtest"],
28             sources: ["."],
29             publicHeadersPath: "modulemap",
30             cSettings: [
31                 .unsafeFlags(["-flto=thin"])  // for Dead Code Elimination
32             ]),
33         .testTarget(name: "TommathTests",
34                     dependencies: ["libtommath"],
35                     path: "demo",
36                     sources: ["tommath_tests.swift"])
37     ],
38     cLanguageStandard: .gnu11,
39     cxxLanguageStandard: .gnucxx14