|
1 | | -// swift-tools-version:4.0 |
| 1 | +// swift-tools-version:5.2 |
2 | 2 | import PackageDescription |
3 | 3 |
|
4 | 4 | let package = Package( |
5 | 5 | name: "FootballGatherServer", |
6 | | - products: [ |
7 | | - .library(name: "FootballGatherServer", targets: ["App"]), |
| 6 | + platforms: [ |
| 7 | + .macOS(.v10_15) |
8 | 8 | ], |
9 | 9 | dependencies: [ |
10 | | - // 💧 A server-side Swift web framework. |
11 | | - .package(url: "https://github.com/vapor/vapor.git", from: "3.3.0"), |
12 | | - |
13 | | - // 🔵 Swift ORM (queries, models, relations, etc) built on SQLite 3. |
14 | | - .package(url: "https://github.com/vapor/fluent-sqlite.git", from: "3.0.0"), |
15 | | - .package(url: "https://github.com/vapor/auth.git", from: "2.0.0") |
| 10 | + .package(url: "https://github.com/vapor/vapor.git", from: "4.0.0"), |
| 11 | + .package(url: "https://github.com/vapor/fluent.git", from: "4.0.0"), |
| 12 | + .package(url: "https://github.com/vapor/fluent-sqlite-driver.git", from: "4.0.0-beta") |
16 | 13 | ], |
17 | 14 | targets: [ |
18 | | - .target(name: "App", dependencies: ["FluentSQLite", "Vapor", "Authentication"]), |
19 | | - .target(name: "Run", dependencies: ["App"]), |
20 | | - .testTarget(name: "AppTests", dependencies: ["App"]) |
| 15 | + .target( |
| 16 | + name: "App", |
| 17 | + dependencies: [ |
| 18 | + .product(name: "Vapor", package: "vapor"), |
| 19 | + .product(name: "Fluent", package: "fluent"), |
| 20 | + .product(name: "FluentSQLiteDriver", package: "fluent-sqlite-driver") |
| 21 | + ], |
| 22 | + swiftSettings: [ |
| 23 | + // Enable better optimizations when building in Release configuration. Despite the use of |
| 24 | + // the `.unsafeFlags` construct required by SwiftPM, this flag is recommended for Release |
| 25 | + // builds. See <https://github.com/swift-server/guides#building-for-production> for details. |
| 26 | + .unsafeFlags(["-cross-module-optimization"], .when(configuration: .release)) |
| 27 | + ] |
| 28 | + ), |
| 29 | + .target(name: "Run", dependencies: [.target(name: "App")]) |
21 | 30 | ] |
22 | 31 | ) |
23 | | - |
|
0 commit comments