-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbinding.gyp
166 lines (166 loc) · 5.11 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
{
"targets": [
{
"target_name": "obscure-crypto",
"defines": [
"NDEBUG"
],
"include_dirs": [
"include",
"<!(node -e \"require('nan')\")"
],
"sources": [
"src/aesb.c",
"src/blake256.c",
"src/chacha8.c",
"src/crypto.cpp",
"src/crypto-ops.c",
"src/crypto-ops-data.c",
"src/groestl.c",
"src/hash.c",
"src/hash-extra-blake.c",
"src/hash-extra-groestl.c",
"src/hash-extra-jh.c",
"src/hash-extra-skein.c",
"src/jh.c",
"src/keccak.c",
"src/oaes_lib.c",
"src/random.cpp",
"src/skein.c",
"src/slow-hash.c",
"src/StringTools.cpp",
"src/tree-hash.c",
"src/turtlecoin-crypto.cpp"
],
"cflags!": [
"-std=c11",
"-Wall",
"-Wextra",
"-Wpointer-arith",
"-Wvla",
"-Wwrite-strings",
"-Wno-error=extra",
"-Wno-error=unused-function",
"-Wno-error=sign-compare",
"-Wno-error=strict-aliasing",
"-Wno-error=type-limits",
"-Wno-error=unused-parameter",
"-Wno-error=unused-variable",
"-Wno-error=undef",
"-Wno-error=uninitialized",
"-Wno-error=unused-result",
"-Wlogical-op",
"-Wno-error=maybe-uninitialized",
"-Wno-error=clobbered",
"-Wno-error=unused-but-set-variable",
"-Waggregate-return",
"-Wnested-externs",
"-Wold-style-definition",
"-Wstrict-prototypes"
],
"cflags_cc": [
"-std=c++11",
"-Wall",
"-Wextra",
"-Wpointer-arith",
"-Wvla",
"-Wwrite-strings",
"-Wno-error=extra",
"-Wno-error=unused-function",
"-Wno-error=sign-compare",
"-Wno-error=strict-aliasing",
"-Wno-error=type-limits",
"-Wno-unused-parameter",
"-Wno-error=unused-variable",
"-Wno-error=undef",
"-Wno-error=uninitialized",
"-Wno-error=unused-result",
"-Wlogical-op",
"-Wno-error=maybe-uninitialized",
"-Wno-error=clobbered",
"-Wno-error=unused-but-set-variable",
"-Wno-reorder",
"-Wno-missing-field-initializers",
"-fexceptions"
],
"conditions": [
[
"OS=='win'",
{
"include_dirs": [
"src/platform/msc"
],
"configurations": {
"Release": {
"msvs_settings": {
"VCCLCompilerTool": {
"RuntimeLibrary": 0,
"Optimization": 3,
"FavorSizeOrSpeed": 1,
"InlineFunctionExpansion": 2,
"WholeProgramOptimization": "true",
"OmitFramePointers": "true",
"EnableFunctionLevelLinking": "true",
"EnableIntrinsicFunctions": "true",
"RuntimeTypeInfo": "false",
"ExceptionHandling": "0",
"AdditionalOptions": [
"/EHsc -D_WIN32_WINNT=0x0501 /bigobj /MP /W3 /D_CRT_SECURE_NO_WARNINGS /wd4996 /wd4345 /D_WIN32_WINNT=0x0600 /DWIN32_LEAN_AND_MEAN /DGTEST_HAS_TR1_TUPLE=0 /D_VARIADIC_MAX=8 /D__SSE4_1__"
]
},
"VCLibrarianTool": {
"AdditionalOptions": [
"/LTCG"
]
},
"VCLinkerTool": {
"LinkTimeCodeGeneration": 1,
"OptimizeReferences": 2,
"EnableCOMDATFolding": 2,
"LinkIncremental": 1,
"AdditionalLibraryDirectories": []
}
}
}
}
},
{
"defines": [
"NO_AES"
]
}],
['OS=="mac"',
{
'xcode_settings': {
'ALWAYS_SEARCH_USER_PATHS': 'NO',
'GCC_CW_ASM_SYNTAX': 'NO', # No -fasm-blocks
'GCC_DYNAMIC_NO_PIC': 'NO', # No -mdynamic-no-pic
# (Equivalent to -fPIC)
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES', # -fno-exceptions
'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti
'GCC_ENABLE_PASCAL_STRINGS': 'NO', # No -mpascal-strings
'GCC_THREADSAFE_STATICS': 'NO', # -fno-threadsafe-statics
'GCC_VERSION': '4.2',
'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', # -Wnewline-eof
'PREBINDING': 'NO', # No -Wl,-prebind
'USE_HEADERMAP': 'NO',
'OTHER_CFLAGS': [
'-fno-strict-aliasing',
],
'WARNING_CFLAGS': [
'-Wall',
'-Wendif-labels',
'-W',
'-Wno-unused-parameter',
],
},
'target_conditions': [
['_type!="static_library"', {
'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']},
}],
],
}]
],
}
]
}