@@ -15,8 +15,6 @@ if /i "%1"=="/?" goto help
15
15
set config = Release
16
16
set target = Build
17
17
set target_arch = x86
18
- set debug_arg =
19
- set snapshot_arg =
20
18
set noprojgen =
21
19
set nobuild =
22
20
set nosign =
@@ -28,15 +26,14 @@ set licensertf=
28
26
set jslint =
29
27
set buildnodeweak =
30
28
set noetw =
31
- set noetw_arg =
32
29
set noetw_msi_arg =
33
30
set noperfctr =
34
- set noperfctr_arg =
35
31
set noperfctr_msi_arg =
36
32
set i18n_arg =
37
33
set download_arg =
38
34
set release_urls_arg =
39
35
set build_release =
36
+ set configure_flags =
40
37
41
38
:next-arg
42
39
if " %1 " == " " goto args-done
@@ -62,7 +59,6 @@ if /i "%1"=="test-internet" set test_args=%test_args% internet&goto arg-ok
62
59
if /i " %1 " == " test-pummel" set test_args = %test_args% pummel& goto arg-ok
63
60
if /i " %1 " == " test-all" set test_args = %test_args% sequential parallel message gc internet pummel& set buildnodeweak=1& set jslint=1& goto arg-ok
64
61
if /i " %1 " == " jslint" set jslint = 1& goto arg-ok
65
- @ rem Include small-icu support with MSI installer
66
62
if /i " %1 " == " msi" set msi = 1& set licensertf=1& set download_arg=" --download=all" & set i18n_arg=small-icu& goto arg-ok
67
63
if /i " %1 " == " build-release" set build_release = 1& goto arg-ok
68
64
if /i " %1 " == " upload" set upload = 1& goto arg-ok
@@ -89,15 +85,18 @@ if defined build_release (
89
85
set i18n_arg = small-icu
90
86
)
91
87
92
- if " %config% " == " Debug" set debug_arg = --debug
93
- if defined nosnapshot set snapshot_arg = --without-snapshot
94
- if defined noetw set noetw_arg = --without-etw& set noetw_msi_arg = /p:NoETW=1
95
- if defined noperfctr set noperfctr_arg = --without-perfctr& set noperfctr_msi_arg = /p:NoPerfCtr=1
96
- if defined RELEASE_URLBASE set release_urlbase_arg = --release-urlbase=%RELEASE_URLBASE%
88
+ if " %config% " == " Debug" set configure_flags = %configure_flags% --debug
89
+ if defined nosnapshot set configure_flags = %configure_flags% --without-snapshot
90
+ if defined noetw set configure_flags = %configure_flags% --without-etw& set noetw_msi_arg = /p:NoETW=1
91
+ if defined noperfctr set configure_flags = %configure_flags% --without-perfctr& set noperfctr_msi_arg = /p:NoPerfCtr=1
92
+ if defined release_urlbase set release_urlbase_arg = --release-urlbase=%release_urlbase%
93
+ if defined download_arg set configure_flags = %configure_flags% %download_arg%
97
94
98
- if " %i18n_arg% " == " full-icu" set i18n_arg = --with-intl=full-icu
99
- if " %i18n_arg% " == " small-icu" set i18n_arg = --with-intl=small-icu
100
- if " %i18n_arg% " == " intl-none" set i18n_arg = --with-intl=none
95
+ if " %i18n_arg% " == " full-icu" set configure_flags = %configure_flags% --with-intl=full-icu
96
+ if " %i18n_arg% " == " small-icu" set configure_flags = %configure_flags% --with-intl=small-icu
97
+ if " %i18n_arg% " == " intl-none" set configure_flags = %configure_flags% --with-intl=none
98
+
99
+ if defined config_flags set configure_flags = %configure_flags% %config_flags%
101
100
102
101
if not exist " %~dp0 deps\icu" goto no-depsicu
103
102
if " %target% " == " Clean" echo deleting %~dp0 deps\icu
@@ -168,7 +167,8 @@ goto run
168
167
if defined noprojgen goto msbuild
169
168
170
169
@ rem Generate the VS project.
171
- python configure %download_arg% %i18n_arg% %debug_arg% %snapshot_arg% %noetw_arg% %noperfctr_arg% --dest-cpu=%target_arch% --tag=%TAG%
170
+ echo configure %configure_flags% --dest-cpu=%target_arch% --tag=%TAG%
171
+ python configure %configure_flags% --dest-cpu=%target_arch% --tag=%TAG%
172
172
if errorlevel 1 goto create-msvs-files-failed
173
173
if not exist node.sln goto create-msvs-files-failed
174
174
echo Project files generated.
0 commit comments