-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.rs
29 lines (27 loc) · 893 Bytes
/
build.rs
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
extern crate cc;
use cc::Build;
fn main() {
Build::new()
.include("src/vendor/crypto")
.include("src/vendor/common")
.file("src/vendor/aesb.c")
.file("src/vendor/blake256.c")
.file("src/vendor/chacha.c")
.file("src/vendor/crypto-ops-data.c")
.file("src/vendor/crypto-ops.c")
.file("src/vendor/groestl.c")
.file("src/vendor/hash-extra-blake.c")
.file("src/vendor/hash-extra-groestl.c")
.file("src/vendor/hash-extra-jh.c")
.file("src/vendor/hash-extra-skein.c")
.file("src/vendor/hash.c")
.file("src/vendor/jh.c")
.file("src/vendor/keccak.c")
.file("src/vendor/oaes_lib.c")
.file("src/vendor/skein.c")
.file("src/vendor/slow-hash.c")
.flag("-maes")
.flag("-Ofast")
.flag("-fexceptions")
.compile("cryptonight")
}