@@ -105,7 +105,7 @@ if /i "%1"=="upload" set upload=1&goto arg-ok
105
105
if /i " %1 " == " small-icu" set i18n_arg = %1 & goto arg-ok
106
106
if /i " %1 " == " full-icu" set i18n_arg = %1 & goto arg-ok
107
107
if /i " %1 " == " intl-none" set i18n_arg = %1 & goto arg-ok
108
- if /i " %1 " == " without-intl" set i18n_arg = %1 & goto arg-ok
108
+ if /i " %1 " == " without-intl" set i18n_arg = intl-none & goto arg-ok
109
109
if /i " %1 " == " download-all" set download_arg = " --download=all" & goto arg-ok
110
110
if /i " %1 " == " ignore-flaky" set test_args = %test_args% --flaky-tests=dontcare& goto arg-ok
111
111
if /i " %1 " == " enable-vtune" set enable_vtune_arg = 1& goto arg-ok
@@ -146,26 +146,21 @@ set "node_gyp_exe="%node_exe%" deps\npm\node_modules\node-gyp\bin\node-gyp"
146
146
if " %target_env% " == " vs2015" set " node_gyp_exe = %node_gyp_exe% --msvs_version=2015"
147
147
if " %target_env% " == " vs2017" set " node_gyp_exe = %node_gyp_exe% --msvs_version=2017"
148
148
149
- if " %config% " == " Debug" set configure_flags = %configure_flags% --debug
150
- if defined nosnapshot set configure_flags = %configure_flags% --without-snapshot
151
- if defined noetw set configure_flags = %configure_flags% --without-etw& set noetw_msi_arg = /p:NoETW=1
152
- if defined noperfctr set configure_flags = %configure_flags% --without-perfctr& set noperfctr_msi_arg = /p:NoPerfCtr=1
153
- if defined release_urlbase set configure_flags = %configure_flags% --release-urlbase=%release_urlbase%
154
- if defined download_arg set configure_flags = %configure_flags% %download_arg%
149
+ if " %config% " == " Debug" set configure_flags = %configure_flags% --debug
150
+ if defined nosnapshot set configure_flags = %configure_flags% --without-snapshot
151
+ if defined noetw set configure_flags = %configure_flags% --without-etw& set noetw_msi_arg = /p:NoETW=1
152
+ if defined noperfctr set configure_flags = %configure_flags% --without-perfctr& set noperfctr_msi_arg = /p:NoPerfCtr=1
153
+ if defined release_urlbase set configure_flags = %configure_flags% --release-urlbase=%release_urlbase%
154
+ if defined download_arg set configure_flags = %configure_flags% %download_arg%
155
155
if defined enable_vtune_arg set configure_flags = %configure_flags% --enable-vtune-profiling
156
- if defined dll set configure_flags = %configure_flags% --shared
157
- if defined enable_static set configure_flags = %configure_flags% --enable-static
158
- if defined no_NODE_OPTIONS set configure_flags = %configure_flags% --without-node-options
159
-
160
- REM if defined debug_http2 set configure_flags=%configure_flags% --debug-http2
161
- REM if defined debug_nghttp2 set configure_flags=%configure_flags% --debug-nghttp2
162
-
163
- if " %i18n_arg% " == " full-icu" set configure_flags = %configure_flags% --with-intl=full-icu
164
- if " %i18n_arg% " == " small-icu" set configure_flags = %configure_flags% --with-intl=small-icu
165
- if " %i18n_arg% " == " intl-none" set configure_flags = %configure_flags% --with-intl=none
166
- if " %i18n_arg% " == " without-intl" set configure_flags = %configure_flags% --without-intl
167
-
168
- if defined config_flags set configure_flags = %configure_flags% %config_flags%
156
+ if defined dll set configure_flags = %configure_flags% --shared
157
+ if defined enable_static set configure_flags = %configure_flags% --enable-static
158
+ if defined no_NODE_OPTIONS set configure_flags = %configure_flags% --without-node-options
159
+ if defined link_module set configure_flags = %configure_flags% %link_module%
160
+ if defined i18n_arg set configure_flags = %configure_flags% --with-intl=%i18n_arg%
161
+ if defined config_flags set configure_flags = %configure_flags% %config_flags%
162
+ if defined target_arch set configure_flags = %configure_flags% --dest-cpu=%target_arch%
163
+ if defined TAG set configure_flags = %configure_flags% --tag=%TAG%
169
164
170
165
if not exist " %~dp0 deps\icu" goto no-depsicu
171
166
if " %target% " == " Clean" echo deleting %~dp0 deps\icu
@@ -266,7 +261,7 @@ goto run
266
261
if defined noprojgen goto msbuild
267
262
268
263
@ rem Generate the VS project.
269
- call :run-python configure %configure_flags% --dest-cpu= %target_arch% --tag= %TAG% %link_module%
264
+ call :run-python configure %configure_flags%
270
265
if errorlevel 1 goto create-msvs-files-failed
271
266
if not exist node.sln goto create-msvs-files-failed
272
267
echo Project files generated.
@@ -295,7 +290,7 @@ if errorlevel 1 echo Failed to sign exe&goto exit
295
290
@ rem Skip license.rtf generation if not requested.
296
291
if not defined licensertf goto package
297
292
298
- %config% \node tools\license2rtf.js < LICENSE > %config% \license.rtf
293
+ %config% \node.exe tools\license2rtf.js < LICENSE > %config% \license.rtf
299
294
if errorlevel 1 echo Failed to generate license.rtf& goto exit
300
295
301
296
:package
0 commit comments