-
Notifications
You must be signed in to change notification settings - Fork 5
/
Package.swift
51 lines (50 loc) · 1.6 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
// swift-tools-version:5.4
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "Sr25519",
platforms: [.macOS(.v10_13), .iOS(.v11), .tvOS(.v11), .watchOS(.v6)],
products: [
.library(
name: "Sr25519",
targets: ["Sr25519"]),
.library(
name: "Ed25519",
targets: ["Ed25519"])
],
dependencies: [
.package(url: "https://github.com/tesseract-one/UncommonCrypto.swift.git",
.upToNextMinor(from: "0.2.1"))
],
targets: [
.target(
name: "Sr25519",
dependencies: ["CSr25519", "Sr25519Helpers"]),
.target(
name: "Ed25519",
dependencies: ["CSr25519", "Sr25519Helpers"]),
.target(
name: "CSr25519",
dependencies: [
.product(name: "CUncommonCrypto", package: "UncommonCrypto.swift")
],
cSettings: [
.define("ED25519_CUSTOMRANDOM"),
.define("ED25519_CUSTOMHASH"),
.define("ED25519_NO_INLINE_ASM"),
.define("SR25519_CUSTOMHASH"),
.headerSearchPath("src"),
.headerSearchPath("src/ed25519-donna")
]
),
.target(
name: "Sr25519Helpers",
dependencies: ["CSr25519"]),
.testTarget(
name: "Sr25519Tests",
dependencies: ["Sr25519"]),
.testTarget(
name: "Ed25519Tests",
dependencies: ["Ed25519"])
]
)