-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinding.gyp
56 lines (47 loc) · 1.4 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
{
"targets": [{
"target_name": "SimdBlockFilter",
"sources": [
"addon.cpp",
"SimdBlockFilter.h",
"SimdBlockWrap.cpp",
"SimdBlockWrap.h",
"hashutil.cc",
"hashutil.h",
"farmhash-master/src/farmhash.h",
"farmhash-master/src/farmhash.cc"
],
'cflags': ['-fexceptions'],
'cflags_cc': ['-fexceptions'],
"include_dirs": [
".",
],
'conditions': [
[ 'OS=="mac"', {
'xcode_settings': {
'OTHER_CPLUSPLUSFLAGS' : ['-std=c++11','-stdlib=libc++','-mavx2'],
'OTHER_LDFLAGS': ['-stdlib=libc++','-mavx2'],
},
}],
[ 'OS=="linux"', {
'target_defaults': {
'cflags': ['-fexceptions'],
'cflags_cc': ['-fexceptions','-mavx2','-mavx'],
}
}],
],
"xcode_settings": {
"OTHER_CFLAGS": ["-mavx2"],
"OTHER_CPLUSPLUSFLAGS" : ["-std=c++11","-stdlib=libc++", "-v"],
"MACOSX_DEPLOYMENT_TARGET": "10.9",
"GCC_ENABLE_CPP_EXCEPTIONS": "YES",
"cflags": ["-mavx2"],
"ldflags": ["-mavx2"],
},
"msvs_settings": {
"VCCLCompilerTool": {
"AdditionalOptions": ["/arch:AVX2"]
}
}
}]
}