-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
76 lines (63 loc) · 3.23 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
// swift-tools-version: 5.9
//
//===----------------------------------------------------------------------===//
//
// Copyright (c) 2023 Svyatoslav Popov ([email protected]).
//
// This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
// License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any
// later version.
//
// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// See the GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License along with this program.
// If not, see <https://www.gnu.org/licenses/>.
//
// SPDX-License-Identifier: GPL-3.0-or-later
//
//===----------------------------------------------------------------------===//
import PackageDescription
let swiftSettings: [SwiftSetting]? = nil
let package = Package(
name: "kvSwiftWebUI",
defaultLocalization: "en",
platforms: [ .macOS(.v13) ],
products: [ .library(name: "kvSwiftWebUI", targets: [ "kvSwiftWebUI" ]),
.library(name: "kvCssKit", targets: [ "kvCssKit" ]),
// A library with auxiliary extensions integrating kvSwiftWebUI with kvServerKit.
.library(name: "kvSwiftWebUI_kvServerKit", targets: [ "kvSwiftWebUI_kvServerKit" ])
],
dependencies: [ .package(url: "https://github.com/apple/swift-crypto.git", from: "3.0.0"),
.package(url: "https://github.com/apple/swift-markdown.git", from: "0.3.0"),
.package(url: "https://github.com/keyvariable/kvKit.swift.git", from: "4.8.0"),
.package(url: "https://github.com/keyvariable/kvServerKit.swift.git", from: "0.13.0"),
.package(url: "https://github.com/keyvariable/kvSIMD.swift.git", from: "1.0.2"),
],
targets: [
.target(name: "kvCssKit",
swiftSettings: swiftSettings),
.target(name: "kvSwiftWebUI",
dependencies: [ "kvCssKit",
.product(name: "Crypto", package: "swift-crypto"),
.product(name: "kvHttpKit", package: "kvServerKit.swift"),
.product(name: "kvKit", package: "kvKit.swift"),
.product(name: "kvSIMD", package: "kvSIMD.swift"),
.product(name: "Markdown", package: "swift-markdown"),
],
resources: [ .copy("Resources/HTML"),
.copy("Resources/Scripts"),
.process("Resources/Localized"),
],
swiftSettings: swiftSettings),
.testTarget(name: "kvSwiftWebUITests",
dependencies: [ "kvSwiftWebUI" ],
swiftSettings: swiftSettings),
.target(name: "kvSwiftWebUI_kvServerKit",
dependencies: [ "kvSwiftWebUI",
.product(name: "kvServerKit", package: "kvServerKit.swift"),
],
swiftSettings: swiftSettings),
]
)