File tree 3 files changed +32
-2
lines changed 3 files changed +32
-2
lines changed Original file line number Diff line number Diff line change 79
79
['OS == "android"' , {
80
80
'cflags' : [ '-fPIE' ],
81
81
'ldflags' : [ '-fPIE' , '-pie' ]
82
+ }],
83
+ ['node_shared=="true"' , {
84
+ 'msvs_settings' : {
85
+ 'VCCLCompilerTool' : {
86
+ 'RuntimeLibrary' : 3 # MultiThreadedDebugDLL (/MDd)
87
+ }
88
+ }
89
+ }],
90
+ ['node_shared=="false"' , {
91
+ 'msvs_settings' : {
92
+ 'VCCLCompilerTool' : {
93
+ 'RuntimeLibrary' : 1 # MultiThreadedDebug (/MTd)
94
+ }
95
+ }
82
96
}]
83
97
],
84
98
'msvs_settings' : {
116
130
['OS == "android"' , {
117
131
'cflags' : [ '-fPIE' ],
118
132
'ldflags' : [ '-fPIE' , '-pie' ]
133
+ }],
134
+ ['node_shared=="true"' , {
135
+ 'msvs_settings' : {
136
+ 'VCCLCompilerTool' : {
137
+ 'RuntimeLibrary' : 2 # MultiThreadedDLL (/MD)
138
+ }
139
+ }
140
+ }],
141
+ ['node_shared=="false"' , {
142
+ 'msvs_settings' : {
143
+ 'VCCLCompilerTool' : {
144
+ 'RuntimeLibrary' : 0 # MultiThreaded (/MT)
145
+ }
146
+ }
119
147
}]
120
148
],
121
149
'msvs_settings' : {
122
150
'VCCLCompilerTool' : {
123
- 'RuntimeLibrary' : 0 , # static release
124
151
'Optimization' : 3 , # /Ox, full optimization
125
152
'FavorSizeOrSpeed' : 1 , # /Ot, favour speed over size
126
153
'InlineFunctionExpansion' : 2 , # /Ob2, inline anything eligible
Original file line number Diff line number Diff line change 235
235
'NODE_SHARED_MODE' ,
236
236
],
237
237
'conditions' : [
238
- [ 'node_module_version!=""' , {
238
+ [ 'node_module_version!="" and OS!="win" ' , {
239
239
'product_extension' : 'so.<(node_module_version)' ,
240
240
}]
241
241
],
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ set build_release=
37
37
set configure_flags =
38
38
set build_addons =
39
39
set enable_vtune_profiling =
40
+ set dll =
40
41
41
42
:next-arg
42
43
if " %1 " == " " goto args-done
@@ -76,6 +77,7 @@ if /i "%1"=="intl-none" set i18n_arg=%1&goto arg-ok
76
77
if /i " %1 " == " download-all" set download_arg = " --download=all" & goto arg-ok
77
78
if /i " %1 " == " ignore-flaky" set test_args = %test_args% --flaky-tests=dontcare& goto arg-ok
78
79
if /i " %1 " == " enable-vtune" set enable_vtune_profiling = " --enable-vtune-profiling" & goto arg-ok
80
+ if /i " %1 " == " dll" set dll = 1& goto arg-ok
79
81
80
82
echo Error: invalid command line option `%1 `.
81
83
exit /b 1
@@ -105,6 +107,7 @@ if defined noetw set configure_flags=%configure_flags% --without-etw& set noetw_
105
107
if defined noperfctr set configure_flags = %configure_flags% --without-perfctr& set noperfctr_msi_arg = /p:NoPerfCtr=1
106
108
if defined release_urlbase set configure_flags = %configure_flags% --release-urlbase=%release_urlbase%
107
109
if defined download_arg set configure_flags = %configure_flags% %download_arg%
110
+ if defined dll set configure_flags = %configure_flags% --shared
108
111
109
112
if " %i18n_arg% " == " full-icu" set configure_flags = %configure_flags% --with-intl=full-icu
110
113
if " %i18n_arg% " == " small-icu" set configure_flags = %configure_flags% --with-intl=small-icu
You can’t perform that action at this time.
0 commit comments