-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
41 lines (37 loc) · 1.74 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
// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
var packageDependencies: [Package.Dependency] = [
.package(name: "SwiftRegularExpression", url: "https://github.com/nerzh/swift-regular-expression.git", .upToNextMajor(from: "0.2.3")),
.package(name: "swift-argument-parser", url: "https://github.com/apple/swift-argument-parser", .upToNextMinor(from: "0.4.4")),
.package(name: "FileUtils", url: "https://github.com/nerzh/SwiftFileUtils", .upToNextMinor(from: "1.3.0")),
]
#if os(Linux)
packageDependencies.append(.package(name: "TonClientSwift", url: "https://github.com/nerzh/ton-client-swift", .upToNextMajor(from: "1.1.10")))
#else
packageDependencies.append(.package(name: "TonClientSwift", path: "/Users/nerzh/mydata/swift_projects/ton-client-swift"))
#endif
let package = Package(
name: "validator-tool",
platforms: [.macOS(.v11)],
dependencies: packageDependencies,
targets: [
.target(
name: "validator-tool",
dependencies: [
.product(name: "TonClientSwift", package: "TonClientSwift"),
.product(name: "SwiftRegularExpression", package: "SwiftRegularExpression"),
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "FileUtils", package: "FileUtils"),
]
),
.testTarget(
name: "validator-toolTests",
dependencies: [
.product(name: "SwiftRegularExpression", package: "SwiftRegularExpression"),
.byName(name: "validator-tool"),
.product(name: "FileUtils", package: "FileUtils")
]
),
]
)