-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
43 lines (39 loc) · 1.71 KB
/
Copy pathPackage.swift
File metadata and controls
43 lines (39 loc) · 1.71 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
// swift-tools-version:6.0
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
var packageDependencies: [Package.Dependency] = [
.package(url: "https://github.com/nerzh/swift-regular-expression.git", .upToNextMajor(from: "0.2.4")),
.package(url: "https://github.com/apple/swift-argument-parser", .upToNextMinor(from: "0.4.4")),
.package(url: "https://github.com/nerzh/SwiftFileUtils", .upToNextMinor(from: "1.3.0")),
]
//#if os(Linux)
packageDependencies.append(.package(url: "https://github.com/nerzh/everscale-client-swift", .upToNextMajor(from: "1.16.0")))
//#else
// packageDependencies.append(.package(name: "EverscaleClientSwift", path: "/Users/nerzh/mydata/swift_projects/everscale-client-swift"))
//#endif
let package = Package(
name: "validator-tool",
platforms: [
.macOS(.v12)
],
dependencies: packageDependencies,
targets: [
.executableTarget(
name: "validator-tool",
dependencies: [
.product(name: "EverscaleClientSwift", package: "everscale-client-swift"),
.product(name: "SwiftRegularExpression", package: "swift-regular-expression"),
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "FileUtils", package: "SwiftFileUtils"),
]
),
.testTarget(
name: "validator-toolTests",
dependencies: [
.byName(name: "validator-tool"),
.product(name: "SwiftRegularExpression", package: "swift-regular-expression"),
.product(name: "FileUtils", package: "SwiftFileUtils")
]
),
]
)