-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
47 lines (45 loc) · 1.3 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
// swift-tools-version: 5.7
import PackageDescription
let package = Package(
name: "swift-bip158",
products: [
.library(
name: "BIP158",
targets: ["BIP158"]),
],
targets: [
.target(
name: "chiabip158",
dependencies: [],
path: "Sources/chiabip158",
sources: [
"src/blockfilter.cpp",
"src/crypto/sha256.cpp",
"src/crypto/siphash.cpp",
"src/primitives/block.cpp",
"src/primitives/transaction.cpp",
"src/script/script.cpp",
"src/util/strencodings.cpp",
"src/util/bytevectorhash.cpp",
"src/uint256.cpp"
],
publicHeadersPath: "./",
cxxSettings: [
.headerSearchPath("src")
]),
.target(
name: "ObjCBIP158",
dependencies: ["chiabip158"],
path: "Sources/ObjCBIP158",
cxxSettings: [
.headerSearchPath("../chiabip158/src")
]),
.target(
name: "BIP158",
dependencies: ["ObjCBIP158"]),
.testTarget(
name: "BIP158Tests",
dependencies: ["BIP158"]),
],
cxxLanguageStandard: .cxx17
)