forked from Apodini/ApodiniTypeInformation
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
58 lines (53 loc) · 1.61 KB
/
Copy pathPackage.swift
File metadata and controls
58 lines (53 loc) · 1.61 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// swift-tools-version:5.4
//
// This source file is part of the Apodini open source project
//
// SPDX-FileCopyrightText: 2021 Paul Schmiedmayer and the project authors (see CONTRIBUTORS.md) <paul.schmiedmayer@tum.de>
//
// SPDX-License-Identifier: MIT
//
import PackageDescription
enum RuntimeDependency {
/// contains experimental enum support
case enumSupport
/// Fork which contains several fixes for the linux platform
case fork
/// The regular upstream package
case standard
var dependency: Package.Dependency {
switch self {
case .enumSupport:
return .package(url: "https://github.com/PSchmiedmayer/Runtime.git", .revision("b810847a466ecd1cf65e7f39e6e715734fdc672c"))
case .fork:
return .package(url: "https://github.com/Supereg/Runtime.git", from: "2.2.3")
case .standard:
return .package(url: "https://github.com/wickwirew/Runtime.git", from: "2.2.2")
}
}
}
let package = Package(
name: "ApodiniTypeInformation",
platforms: [
.macOS(.v10_15)
],
products: [
.library(name: "ApodiniTypeInformation", targets: ["ApodiniTypeInformation"])
],
dependencies: [
RuntimeDependency.fork.dependency
],
targets: [
.target(
name: "ApodiniTypeInformation",
dependencies: [
.product(name: "Runtime", package: "Runtime")
]
),
.testTarget(
name: "ApodiniTypeInformationTests",
dependencies: [
.target(name: "ApodiniTypeInformation")
]
)
]
)