forked from SwiftWebUI/SwiftWebUI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
46 lines (38 loc) · 1.29 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
42
43
44
45
46
// swift-tools-version:5.1
import PackageDescription
#if canImport(Combine)
let extraPackages : [ PackageDescription.Package.Dependency ] = []
let extraDependencies : [ Target.Dependency ] = []
#else
let extraPackages : [ PackageDescription.Package.Dependency ] = [
.package(url: "https://github.com/broadwaylamb/OpenCombine.git",
from: "0.5.0")
]
let extraDependencies : [ Target.Dependency ] = [ "OpenCombine" ]
#endif
let package = Package(
name: "SwiftWebUI",
platforms: [
.macOS(.v10_15), .iOS(.v13)
],
products: [
.library (name: "SwiftWebUI", targets: [ "SwiftWebUI" ]),
.executable(name: "HolyCow", targets: [ "HolyCow" ])
],
dependencies: [
.package(url: "https://github.com/apple/swift-nio.git",
from: "2.17.0"),
.package(url: "https://github.com/SwiftWebResources/SemanticUI-Swift.git",
from: "2.3.4"),
.package(url: "https://github.com/wickwirew/Runtime.git",
from: "2.1.1")
] + extraPackages,
targets: [
.target(name: "SwiftWebUI",
dependencies: [
"NIO", "NIOHTTP1", "NIOConcurrencyHelpers",
"Runtime", "SemanticUI"
] + extraDependencies),
.target(name: "HolyCow", dependencies: [ "SwiftWebUI" ])
]
)