-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathPackage.swift
116 lines (114 loc) · 4.71 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
// swift-tools-version:5.7
//
// Package.swift
// LispKit
//
// Build targets by calling the Swift Package Manager in the following way for debug purposes:
// swift build -Xswiftc "-D" -Xswiftc "SPM"
//
// Run REPL:
// swift run -Xswiftc "-D" -Xswiftc "SPM"
//
// A release can be built with these options:
// swift build -c release -Xswiftc "-D" -Xswiftc "SPM"
//
// This creates a release binary in .build/release/ which can be invoked like this:
// .build/release/LispKitRepl -r Sources/LispKit/Resources
//
// This is how to run the tests:
// swift test -Xswiftc "-D" -Xswiftc "SPM"
//
//
// Created by Matthias Zenger on 16/10/2017.
// Copyright © 2017-2023 ObjectHub. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you
// may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
import PackageDescription
let package = Package(
name: "LispKit",
platforms: [
.macOS("13.4"),
.iOS(.v16)
],
products: [
.library(name: "LispKit", targets: ["LispKit"]),
.library(name: "LispKitTools", targets: ["LispKitTools"]),
.executable(name: "LispKitRepl", targets: ["LispKitRepl"])
],
dependencies: [
.package(url: "https://github.com/objecthub/swift-numberkit.git", branch: "2.5.1"),
.package(url: "https://github.com/objecthub/swift-markdownkit.git", from: "1.1.9"),
.package(url: "https://github.com/objecthub/swift-commandlinekit.git", from: "0.3.5"),
.package(url: "https://github.com/objecthub/swift-sqliteexpress.git", from: "1.0.3"),
.package(url: "https://github.com/objecthub/swift-clformat.git", from: "1.1.0"),
.package(url: "https://github.com/objecthub/swift-dynamicjson.git", branch: "main"),
.package(url: "https://github.com/objecthub/swift-nanohttp.git", from: "1.0.1"),
.package(url: "https://github.com/weichsel/ZIPFoundation.git", from: "0.9.19"),
.package(url: "https://github.com/tsolomko/SWCompression.git", from: "4.8.6"),
.package(url: "https://github.com/p2/OAuth2.git", from: "5.3.5"),
.package(url: "https://github.com/SomeRandomiOSDev/CBORCoding.git", from: "1.4.0"),
.package(url: "https://github.com/kishikawakatsumi/KeychainAccess.git", branch: "master"),
.package(url: "https://github.com/apple/swift-atomics.git", from: "1.2.0")
],
targets: [
.target(name: "LispKit",
dependencies: [
.product(name: "NumberKit", package: "swift-numberkit"),
.product(name: "MarkdownKit", package: "swift-markdownkit"),
.product(name: "SQLiteExpress", package: "swift-sqliteexpress"),
.product(name: "CLFormat", package: "swift-clformat"),
.product(name: "DynamicJSON", package: "swift-dynamicjson"),
.product(name: "NanoHTTP", package: "swift-nanohttp"),
.product(name: "ZIPFoundation", package: "ZIPFoundation"),
.product(name: "SWCompression", package: "SWCompression"),
.product(name: "OAuth2", package: "OAuth2"),
.product(name: "CBORCoding", package: "CBORCoding"),
.product(name: "KeychainAccess", package: "KeychainAccess"),
.product(name: "Atomics", package: "swift-atomics")
],
exclude: [
"Info.plist",
"Resources",
"Graphics/Drawing_iOS.swift",
"Graphics/Transformation_iOS.swift",
"Primitives/DrawingLibrary_iOS.swift",
"Primitives/PasteboardLibrary_iOS.swift"
]),
.target(name: "LispKitTools",
dependencies: [
.target(name: "LispKit"),
.product(name: "CommandLineKit", package: "swift-commandlinekit")
],
exclude: [
"Info.plist"
]),
.executableTarget(name: "LispKitRepl",
dependencies: [
.target(name: "LispKit"),
.target(name: "LispKitTools")
],
exclude: [
"AppInfo.tmpl"
]),
.testTarget(name: "LispKitTests",
dependencies: [
.target(name: "LispKit")
],
exclude: [
"Info.plist",
"Code"
])
],
swiftLanguageVersions: [.v5]
)