|
2 | 2 | import PackageDescription
|
3 | 3 |
|
4 | 4 | let package = Package(
|
5 |
| - name: "swiftregex", |
6 |
| - platforms: [ |
7 |
| - .macOS(.v12) |
8 |
| - ], |
9 |
| - dependencies: [ |
10 |
| - .package(url: "https://github.com/apple/swift-experimental-string-processing.git", branch: "main"), |
11 |
| - .package(url: "https://github.com/vapor/vapor.git", from: "4.114.0"), |
12 |
| - .package(url: "https://github.com/vapor/leaf.git", from: "4.4.1"), |
13 |
| - ], |
14 |
| - targets: [ |
15 |
| - .executableTarget( |
16 |
| - name: "DSLConverter", |
17 |
| - dependencies: [ |
18 |
| - .product(name: "_StringProcessing", package: "swift-experimental-string-processing"), |
19 |
| - .product(name: "_RegexParser", package: "swift-experimental-string-processing"), |
20 |
| - ], |
21 |
| - swiftSettings: [ |
22 |
| - .unsafeFlags(["-Xfrontend", "-disable-availability-checking"]), |
23 |
| - .unsafeFlags(["-cross-module-optimization"], .when(configuration: .release)) |
24 |
| - ] |
25 |
| - ), |
26 |
| - .executableTarget( |
27 |
| - name: "DSLParser", |
28 |
| - dependencies: [ |
29 |
| - .product(name: "_StringProcessing", package: "swift-experimental-string-processing"), |
30 |
| - .product(name: "_RegexParser", package: "swift-experimental-string-processing"), |
31 |
| - ], |
32 |
| - swiftSettings: [ |
33 |
| - .unsafeFlags(["-Xfrontend", "-disable-availability-checking"]), |
34 |
| - .unsafeFlags(["-cross-module-optimization"], .when(configuration: .release)) |
35 |
| - ] |
36 |
| - ), |
37 |
| - .executableTarget( |
38 |
| - name: "ExpressionParser", |
39 |
| - dependencies: [ |
40 |
| - .product(name: "_StringProcessing", package: "swift-experimental-string-processing"), |
41 |
| - .product(name: "_RegexParser", package: "swift-experimental-string-processing"), |
42 |
| - ], |
43 |
| - swiftSettings: [ |
44 |
| - .unsafeFlags(["-Xfrontend", "-disable-availability-checking"]), |
45 |
| - .unsafeFlags(["-cross-module-optimization"], .when(configuration: .release)) |
46 |
| - ] |
47 |
| - ), |
48 |
| - .executableTarget( |
49 |
| - name: "Matcher", |
50 |
| - dependencies: [ |
51 |
| - .product(name: "_StringProcessing", package: "swift-experimental-string-processing"), |
52 |
| - .product(name: "_RegexParser", package: "swift-experimental-string-processing"), |
53 |
| - ], |
54 |
| - swiftSettings: [ |
55 |
| - .unsafeFlags(["-Xfrontend", "-disable-availability-checking"]), |
56 |
| - .unsafeFlags(["-cross-module-optimization"], .when(configuration: .release)) |
57 |
| - ] |
58 |
| - ), |
59 |
| - .executableTarget( |
60 |
| - name: "App", |
61 |
| - dependencies: [ |
62 |
| - .product(name: "Vapor", package: "vapor"), |
63 |
| - .product(name: "Leaf", package: "leaf"), |
64 |
| - ], |
65 |
| - swiftSettings: [ |
66 |
| - .unsafeFlags(["-cross-module-optimization"], .when(configuration: .release)) |
67 |
| - ] |
68 |
| - ), |
69 |
| - .testTarget( |
70 |
| - name: "RegexTests", dependencies: [ |
71 |
| - .target(name: "DSLConverter"), |
72 |
| - .target(name: "DSLParser"), |
73 |
| - .target(name: "ExpressionParser"), |
74 |
| - .target(name: "Matcher"), |
75 |
| - .target(name: "App"), |
76 |
| - .product(name: "XCTVapor", package: "vapor"), |
77 |
| - ] |
78 |
| - ) |
79 |
| - ] |
| 5 | + name: "swiftregex", |
| 6 | + platforms: [ |
| 7 | + .macOS(.v12) |
| 8 | + ], |
| 9 | + dependencies: [ |
| 10 | + .package(url: "https://github.com/apple/swift-experimental-string-processing.git", branch: "main"), |
| 11 | + .package(url: "https://github.com/vapor/vapor.git", from: "4.114.0"), |
| 12 | + .package(url: "https://github.com/vapor/leaf.git", from: "4.4.1"), |
| 13 | + ], |
| 14 | + targets: [ |
| 15 | + .executableTarget( |
| 16 | + name: "DSLConverter", |
| 17 | + dependencies: [ |
| 18 | + .product(name: "_StringProcessing", package: "swift-experimental-string-processing"), |
| 19 | + .product(name: "_RegexParser", package: "swift-experimental-string-processing"), |
| 20 | + ], |
| 21 | + swiftSettings: [ |
| 22 | + .unsafeFlags(["-Xfrontend", "-disable-availability-checking"]), |
| 23 | + .unsafeFlags(["-cross-module-optimization"], .when(configuration: .release)), |
| 24 | + ] |
| 25 | + ), |
| 26 | + .executableTarget( |
| 27 | + name: "DSLParser", |
| 28 | + dependencies: [ |
| 29 | + .product(name: "_StringProcessing", package: "swift-experimental-string-processing"), |
| 30 | + .product(name: "_RegexParser", package: "swift-experimental-string-processing"), |
| 31 | + ], |
| 32 | + swiftSettings: [ |
| 33 | + .unsafeFlags(["-Xfrontend", "-disable-availability-checking"]), |
| 34 | + .unsafeFlags(["-cross-module-optimization"], .when(configuration: .release)), |
| 35 | + ] |
| 36 | + ), |
| 37 | + .executableTarget( |
| 38 | + name: "ExpressionParser", |
| 39 | + dependencies: [ |
| 40 | + .product(name: "_StringProcessing", package: "swift-experimental-string-processing"), |
| 41 | + .product(name: "_RegexParser", package: "swift-experimental-string-processing"), |
| 42 | + ], |
| 43 | + swiftSettings: [ |
| 44 | + .unsafeFlags(["-Xfrontend", "-disable-availability-checking"]), |
| 45 | + .unsafeFlags(["-cross-module-optimization"], .when(configuration: .release)), |
| 46 | + ] |
| 47 | + ), |
| 48 | + .executableTarget( |
| 49 | + name: "Matcher", |
| 50 | + dependencies: [ |
| 51 | + .product(name: "_StringProcessing", package: "swift-experimental-string-processing"), |
| 52 | + .product(name: "_RegexParser", package: "swift-experimental-string-processing"), |
| 53 | + ], |
| 54 | + swiftSettings: [ |
| 55 | + .unsafeFlags(["-Xfrontend", "-disable-availability-checking"]), |
| 56 | + .unsafeFlags(["-cross-module-optimization"], .when(configuration: .release)), |
| 57 | + ] |
| 58 | + ), |
| 59 | + .executableTarget( |
| 60 | + name: "App", |
| 61 | + dependencies: [ |
| 62 | + .product(name: "Vapor", package: "vapor"), |
| 63 | + .product(name: "Leaf", package: "leaf"), |
| 64 | + ], |
| 65 | + swiftSettings: [ |
| 66 | + .unsafeFlags(["-cross-module-optimization"], .when(configuration: .release)) |
| 67 | + ] |
| 68 | + ), |
| 69 | + .testTarget( |
| 70 | + name: "RegexTests", dependencies: [ |
| 71 | + .target(name: "DSLConverter"), |
| 72 | + .target(name: "DSLParser"), |
| 73 | + .target(name: "ExpressionParser"), |
| 74 | + .target(name: "Matcher"), |
| 75 | + .target(name: "App"), |
| 76 | + .product(name: "XCTVapor", package: "vapor"), |
| 77 | + ] |
| 78 | + ) |
| 79 | + ] |
80 | 80 | )
|
0 commit comments