-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinding.gyp
67 lines (67 loc) · 2.29 KB
/
binding.gyp
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
"targets": [
{
"target_name": "fcapi",
"sources": [
"src/fc-api.cpp",
],
"include_dirs":[
"<!(node -e \"require('nan')\")",
"lib/secp256k1-zkp/include/",
"/usr/local/include"
],
"link_settings":{
"libraries": [
],
"ldflags":[
]
},
"conditions":[
[
"OS=='mac'", {
"cflags!": ["-fno-exceptions"],
"cflags_cc!": [
"-O2",
"-std=gnu++14",
"-fno-exceptions",
"-Wall"
],
"libraries":[
"-L<!(pwd)/lib/secp256k1-zkp/.libs "
"-L/usr/local/lib ",
"-lsecp256k1-zkp ",
"-lgmp "
],
"xcode_settings":{
"GCC_ENABLE_CPP_EXCEPTIONS": "YES",
"GCC_ENABLE_CPP_RTTI": "YES",
"MACOSX_DEPLOYMENT_TARGET": '10.14',
"OTHER_CFLAGS": [
"-std=gnu++14",
"-stdlib=libc++"
]
}
},
"OS=='linux'", {
"include_dirs": [
"/usr/include/arm-linux-gnueabihf"
],
"cflags!": ["-fno-exceptions "],
"cflags_cc!": [
"-O2 ",
"-std=gnu++14 ",
"-fno-exceptions ",
"-Wall "
],
"libraries":[
"-L<!(pwd)/lib/secp256k1-zkp/.libs "
"-L/usr/lib/arm-linux-gnueabihf ",
"-lsecp256k1-zkp ",
"-lgmp "
]
}
]
]
}
]
}