forked from mmomtchev/node-gdal-async
-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.gypi
118 lines (118 loc) · 2.94 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
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
{
"variables": {
"runtime%": "node",
"deps_dir": "./deps"
},
"target_defaults": {
"default_configuration": "Release",
"cflags_cc!": ["-fno-rtti", "-fno-exceptions"],
"cflags!": ["-fno-rtti", "-fno-exceptions"],
"variables": {
"debug_extra_ccflags_cc%": [],
"debug_extra_ldflags%" : [],
"debug_extra_VCCLCompilerTool%": [],
"debug_extra_VCLinkerTool%": []
},
"defines": [
"NOGDI=1",
"HAVE_LIBZ=1"
],
"xcode_settings": {
"GCC_ENABLE_CPP_RTTI": "YES",
"GCC_ENABLE_CPP_EXCEPTIONS": "YES",
"CLANG_CXX_LIBRARY": "libc++",
"MACOSX_DEPLOYMENT_TARGET": "10.7",
"OTHER_CFLAGS": [
"-Wno-deprecated-register",
"-Wno-unused-const-variable"
],
"OTHER_CPLUSPLUSFLAGS": [
"-Wno-deprecated-register",
"-Wno-unused-const-variable",
"-frtti",
"-fexceptions"
]
},
"msvs_settings": {
"VCCLCompilerTool": {
#"Optimization": 0, # 0:/Od disable, 1:/O1 min size, 2:/O2 max speed, 3:/Ox full optimization
#"InlineFunctionExpansion": 0, #0:/Ob0: disable, 1:/Ob1 inline only marked funtions, 2:/Ob2 inline anything eligible
"AdditionalOptions": [
"/MP", # compile across multiple CPUs
"/GR", # force RTTI on (see https://github.com/nodejs/node-gyp/issues/2412)
"/EHsc" # same for ExceptionHandling
],
"ExceptionHandling": 1,
"RuntimeTypeInfo": "true"
}
},
"conditions": [
["runtime == 'node'", {
"defines": [
]
}],
["OS == 'win'", {
"defines": [
"NOMINMAX",
"WIN32",
"CURL_STATICLIB",
"PROJ_DLL=",
"OPJ_EXPORTS"
],
"libraries": [
"secur32.lib",
"odbccp32.lib",
"odbc32.lib",
"crypt32.lib",
"ws2_32.lib",
"advapi32.lib",
"wbemuuid.lib",
"Shlwapi.lib"
],
}],
["OS == 'mac'", {
"libraries": [ "-framework Security" ],
"defines": [ "DARWIN" ]
}],
["OS == 'linux'", {
"defines": [ "LINUX" ]
}]
],
"configurations": {
"Debug": {
"cflags_cc!": [ "-O3", "-Os" ],
"cflags_cc": [ "<@(debug_extra_ccflags_cc)" ],
"ldflags": [ "<@(debug_extra_ldflags)" ],
"defines": [ "DEBUG" ],
"defines!": [ "NDEBUG" ],
"xcode_settings": {
"GCC_OPTIMIZATION_LEVEL": "0",
"GCC_GENERATE_DEBUGGING_SYMBOLS": "YES",
"OTHER_CPLUSPLUSFLAGS": [ "<@(debug_extra_ccflags_cc)" ],
"OTHER_LDFLAGS": [ "<@(debug_extra_ldflags)" ]
}
},
"Release": {
"defines": [ "NDEBUG" ],
"defines!": [ "DEBUG" ],
"xcode_settings": {
"GCC_OPTIMIZATION_LEVEL": "s",
"GCC_GENERATE_DEBUGGING_SYMBOLS": "NO",
"DEAD_CODE_STRIPPING": "YES",
"GCC_INLINES_ARE_PRIVATE_EXTERN": "YES"
},
"ldflags": [
"-Wl,-s"
],
"msvs_settings": {
"VCCLCompilerTool": {
"DebugInformationFormat": "0",
},
"VCLinkerTool": {
"GenerateDebugInformation": "false",
}
}
}
}
}
}