forked from tignear/node-openjtalk-binding
-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.gypi
35 lines (34 loc) · 1.14 KB
/
common.gypi
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
{
'target_defaults': {
'msbuild_settings': {
'ClCompile': {
'AdditionalOptions': ['/std:c++17', "/utf-8", "/Ob3", "/Zc:__cplusplus", "/DNDEBUG"],
'PreprocessorDefinitions': ["NOMINMAX"],
'ExceptionHandling': "Sync",
'Optimization': "MaxSpeed",
'IntrinsicFunctions': 'true',
'FavorSizeOrSpeed': 'Speed',
'OmitFramePointers': 'true',
'EnableFiberSafeOptimizations': 'true',
'WholeProgramOptimization': 'true'
},
'Link': {
'LinkTimeCodeGeneration': 'UseLinkTimeCodeGeneration', # /LTCG
},
'Lib': {
'LinkTimeCodeGeneration': 'true', # /LTCG
}
},
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'OTHER_CPLUSPLUSFLAGS': ['-std=c++17', '-stdlib=libc++', "-O3"],
'MACOSX_DEPLOYMENT_TARGET': '10.14',
},
"cflags_cc": [
"-std=c++17",
"-fPIC",
"-O3",
"-fexceptions",
],
},
}