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{
"targets": [
{
"target_name": "irf",
"sources": [
"irf/node.cpp",
"irf/randomForest.h",
"irf/randomForest.cpp",
"irf/MurmurHash3.h",
"irf/MurmurHash3.cpp"
],
"include_dirs" : [
"<!(node -e \"require('nan')\")"
],
'conditions': [
[ 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
'cflags_cc!': ['-fno-rtti', '-fno-exceptions'],
'cflags_cc+': ['-frtti', '-fexceptions'],
}],
['OS=="mac"', {
'xcode_settings': {
"OTHER_CPLUSPLUSFLAGS" : ["-std=c++11","-mmacosx-version-min=10.5"],
"OTHER_LDFLAGS": ["-std=c++11"],
'GCC_ENABLE_CPP_RTTI': 'YES',
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'
}
}]
]
}
]
}