forked from jocosocial/swiftarr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
41 lines (40 loc) · 1.63 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// swift-tools-version:5.6
import PackageDescription
let package = Package(
name: "swiftarr",
platforms: [
.macOS(.v12),
],
products: [
.library(name: "swiftarr", targets: ["App"]),
],
dependencies: [
.package(url: "https://github.com/vapor/vapor.git", from: "4.0.0"),
.package(url: "https://github.com/vapor/fluent.git", from: "4.0.0"),
.package(url: "https://github.com/vapor/fluent-postgres-driver.git", from: "2.0.0"),
.package(url: "https://github.com/vapor/redis.git", from: "4.0.0"),
.package(url: "https://github.com/vapor/leaf.git", from: "4.0.0"),
.package(url: "https://github.com/MrLotU/SwiftPrometheus.git", from: "1.0.0-alpha")
],
targets: [
.systemLibrary(name: "gd", pkgConfig: "gdlib", providers: [.apt(["libgd-dev"]), .brew(["gd"])]),
.systemLibrary(name: "jpeg", pkgConfig: "libjpeg", providers: [.apt(["libjpeg-dev"]), .brew(["jpeg"])]),
.target(name: "gdOverrides", dependencies: ["gd", "jpeg"], publicHeadersPath: "."),
.target(name: "App", dependencies: ["gd",
"jpeg",
"gdOverrides",
.product(name: "Fluent", package: "fluent"),
.product(name: "FluentPostgresDriver", package: "fluent-postgres-driver"),
.product(name: "Vapor", package: "vapor"),
.product(name: "Redis", package: "redis"),
.product(name: "Leaf", package: "leaf"),
.product(name: "SwiftPrometheus", package: "SwiftPrometheus"),
],
resources: [.copy("Resources"),
.copy("seeds")
]),
.executableTarget(name: "Run", dependencies: ["App"]),
.testTarget(name: "AppTests", dependencies: ["App"])
],
cLanguageStandard: .c11
)