forked from osmcode/node-osmium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.gypi
38 lines (38 loc) · 1.23 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
36
37
38
{
'target_defaults': {
'default_configuration': 'Release',
'msbuild_toolset':'v140',
'configurations': {
'Debug': {
'cflags_cc!': ['-O3', '-Os', '-DNDEBUG'],
'xcode_settings': {
'OTHER_CPLUSPLUSFLAGS!':['-O3', '-Os', '-DNDEBUG'],
'GCC_OPTIMIZATION_LEVEL': '0',
'GCC_GENERATE_DEBUGGING_SYMBOLS': 'YES'
}
},
'Release': {
'ldflags': [
'-Wl,-s'
],
'xcode_settings': {
'GCC_OPTIMIZATION_LEVEL': '3',
'GCC_GENERATE_DEBUGGING_SYMBOLS': 'NO',
'DEAD_CODE_STRIPPING': 'YES',
'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES'
},
'msvs_settings': {
'VCCLCompilerTool': {
'ExceptionHandling': 1, # /EHsc
'RuntimeTypeInfo': 'true', # /GR
'RuntimeLibrary': '2', # /MD
"AdditionalOptions": [
"/MP", # compile across multiple CPUs
"/wd4068", # suppress unrecognized pragma warnings
],
}
}
}
}
}
}