|
1 | | -// swift-tools-version:4.0 |
| 1 | +// swift-tools-version:5.0 |
2 | 2 | import PackageDescription |
3 | 3 |
|
4 | 4 | let package = Package( |
5 | 5 | name: "CwlPreconditionTesting", |
6 | 6 | products: [ |
7 | | - .library(name: "CwlPreconditionTesting", targets: ["CwlPreconditionTesting", "CwlMachBadInstructionHandler"]) |
| 7 | + .library(name: "CwlPreconditionTesting", targets: ["CwlPreconditionTesting", "CwlMachBadInstructionHandler"]), |
| 8 | + .library(name: "CwlPosixPreconditionTesting", targets: ["CwlPosixPreconditionTesting"]) |
8 | 9 | ], |
9 | 10 | dependencies: [ |
10 | | - .package(url: "https://github.com/mattgallagher/CwlCatchException.git", from: "1.2.0") |
| 11 | + .package(url: "https://github.com/mattgallagher/CwlCatchException.git", from: Version(2, 0, 0, prereleaseIdentifiers: ["-beta.1"])) |
11 | 12 | ], |
12 | 13 | targets: [ |
13 | 14 | .target( |
14 | 15 | name: "CwlPreconditionTesting", |
15 | 16 | dependencies: [ |
16 | 17 | .target(name: "CwlMachBadInstructionHandler"), |
17 | 18 | .product(name: "CwlCatchException") |
18 | | - ], |
19 | | - exclude: [ |
20 | | - "./Mach/CwlPreconditionTesting.h", |
21 | | - "./Posix/CwlPreconditionTesting.h", |
22 | | - "./CwlCatchBadInstructionPosix.swift" |
23 | 19 | ] |
24 | 20 | ), |
| 21 | + .target( |
| 22 | + name: "CwlPosixPreconditionTesting" |
| 23 | + ), |
25 | 24 | .target(name: "CwlMachBadInstructionHandler"), |
26 | | - .testTarget(name: "CwlPreconditionTestingTests", dependencies: ["CwlPreconditionTesting"]) |
| 25 | + .testTarget(name: "CwlPreconditionTestingTests", dependencies: ["CwlPreconditionTesting", "CwlPosixPreconditionTesting"]) |
27 | 26 | ] |
28 | 27 | ) |
0 commit comments