Lines Matching refs:set

3 :: Other scripts rely on the environment variables set in this script, so we

18 set JS_SUITES=default
19 set NATIVE_SUITES=addons js-native-api node-api
21 set "CI_NATIVE_SUITES=%NATIVE_SUITES% benchmark"
22 set "CI_JS_SUITES=%JS_SUITES% pummel"
23 set CI_DOC=doctool
25 set "common_test_suites=%JS_SUITES% %NATIVE_SUITES%&set build_addons=1&set build_js_native_api_tests=1&set build_node_api_tests=1"
28 set config=Release
29 set target=Build
30 set target_arch=x64
31 set ltcg=
32 set target_env=
33 set noprojgen=
34 set projgen=
35 set nobuild=
36 set sign=
37 set nosnapshot=
38 set nonpm=
39 set nocorepack=
40 set cctest_args=
41 set test_args=
42 set stage_package=
43 set package=
44 set msi=
45 set upload=
46 set licensertf=
47 set lint_js=
48 set lint_cpp=
49 set lint_md=
50 set lint_md_build=
51 set noetw=
52 set noetw_msi_arg=
53 set i18n_arg=
54 set download_arg=
55 set build_release=
56 set configure_flags=
57 set enable_vtune_arg=
58 set build_addons=
59 set dll=
60 set enable_static=
61 set build_js_native_api_tests=
62 set build_node_api_tests=
63 set test_node_inspect=
64 set test_check_deopts=
65 set v8_test_options=
66 set v8_build_options=
67 set http2_debug=
68 set nghttp2_debug=
69 set link_module=
70 set no_cctest=
71 set cctest=
72 set openssl_no_asm=
73 set no_shared_roheap=
74 set doc=
75 set extra_msbuild_args=
76 set exit_code=0
80 if /i "%1"=="debug" set config=Debug&goto arg-ok
81 if /i "%1"=="release" set config=Release&set ltcg=1&set cctest=1&goto arg-ok
82 if /i "%1"=="clean" set target=Clean&goto arg-ok
83 if /i "%1"=="testclean" set target=TestClean&goto arg-ok
84 if /i "%1"=="ia32" set target_arch=x86&goto arg-ok
85 if /i "%1"=="x86" set target_arch=x86&goto arg-ok
86 if /i "%1"=="x64" set target_arch=x64&goto arg-ok
87 if /i "%1"=="arm64" set target_arch=arm64&goto arg-ok
88 if /i "%1"=="vs2019" set target_env=vs2019&goto arg-ok
89 if /i "%1"=="vs2022" set target_env=vs2022&goto arg-ok
90 if /i "%1"=="noprojgen" set noprojgen=1&goto arg-ok
91 if /i "%1"=="projgen" set projgen=1&goto arg-ok
92 if /i "%1"=="nobuild" set nobuild=1&goto arg-ok
93 if /i "%1"=="nosign" set "sign="&echo Note: vcbuild no longer signs by default. "nosign" is redundant.&goto arg-ok
94 if /i "%1"=="sign" set sign=1&goto arg-ok
95 if /i "%1"=="nosnapshot" set nosnapshot=1&goto arg-ok
96 if /i "%1"=="nonpm" set nonpm=1&goto arg-ok
97 if /i "%1"=="nocorepack" set nocorepack=1&goto arg-ok
98 if /i "%1"=="noetw" set noetw=1&goto arg-ok
99 if /i "%1"=="ltcg" set ltcg=1&goto arg-ok
100 if /i "%1"=="licensertf" set licensertf=1&goto arg-ok
101 if /i "%1"=="test" set test_args=%test_args% %common_test_suites%&set lint_cpp=1&set lint_js=1&set lint_md=1&goto arg-ok
102 if /i "%1"=="test-ci-native" set test_args=%test_args% %test_ci_args% -p tap --logfile test.tap %CI_NATIVE_SUITES% %CI_DOC%&set build_addons=1&set build_js_native_api_tests=1&set build_node_api_tests=1&set cctest_args=%cctest_args% --gtest_output=xml:cctest.junit.xml&goto arg-ok
103 if /i "%1"=="test-ci-js" set test_args=%test_args% %test_ci_args% -p tap --logfile test.tap %CI_JS_SUITES%&set no_cctest=1&goto arg-ok
104 if /i "%1"=="build-addons" set build_addons=1&goto arg-ok
105 if /i "%1"=="build-js-native-api-tests" set build_js_native_api_tests=1&goto arg-ok
106 if /i "%1"=="build-node-api-tests" set build_node_api_tests=1&goto arg-ok
107 if /i "%1"=="test-addons" set test_args=%test_args% addons&set build_addons=1&goto arg-ok
108 if /i "%1"=="test-doc" set test_args=%test_args% %CI_DOC%&set doc=1&&set lint_js=1&set lint_md=1&goto arg-ok
109 if /i "%1"=="test-js-native-api" set test_args=%test_args% js-native-api&set build_js_native_api_tests=1&goto arg-ok
110 if /i "%1"=="test-node-api" set test_args=%test_args% node-api&set build_node_api_tests=1&goto arg-ok
111 if /i "%1"=="test-benchmark" set test_args=%test_args% benchmark&goto arg-ok
112 if /i "%1"=="test-simple" set test_args=%test_args% sequential parallel&goto arg-ok
113 if /i "%1"=="test-message" set test_args=%test_args% message&goto arg-ok
114 if /i "%1"=="test-tick-processor" set test_args=%test_args% tick-processor&goto arg-ok
115 if /i "%1"=="test-internet" set test_args=%test_args% internet&goto arg-ok
116 if /i "%1"=="test-pummel" set test_args=%test_args% pummel&goto arg-ok
117 if /i "%1"=="test-known-issues" set test_args=%test_args% known_issues&goto arg-ok
118 if /i "%1"=="test-async-hooks" set test_args=%test_args% async-hooks&goto arg-ok
119 if /i "%1"=="test-all" set test_args=%test_args% gc internet pummel %common_test_suites%&set lint_cpp=1&set lint_js=1&goto arg-ok
120 if /i "%1"=="test-node-inspect" set test_node_inspect=1&goto arg-ok
121 if /i "%1"=="test-check-deopts" set test_check_deopts=1&goto arg-ok
122 if /i "%1"=="test-npm" set test_npm=1&goto arg-ok
123 if /i "%1"=="test-v8" set test_v8=1&set custom_v8_test=1&goto arg-ok
124 if /i "%1"=="test-v8-intl" set test_v8_intl=1&set custom_v8_test=1&goto arg-ok
125 if /i "%1"=="test-v8-benchmarks" set test_v8_benchmarks=1&set custom_v8_test=1&goto arg-ok
126 if /i "%1"=="test-v8-all" set test_v8=1&set test_v8_intl=1&set test_v8_benchmarks=1&set custom_v8_test=1&goto arg-ok
127 if /i "%1"=="lint-cpp" set lint_cpp=1&goto arg-ok
128 if /i "%1"=="lint-js" set lint_js=1&goto arg-ok
129 if /i "%1"=="jslint" set lint_js=1&echo Please use lint-js instead of jslint&goto arg-ok
130 if /i "%1"=="lint-md" set lint_md=1&goto arg-ok
131 if /i "%1"=="lint-md-build" set lint_md_build=1&goto arg-ok
132 if /i "%1"=="lint" set lint_cpp=1&set lint_js=1&set lint_md=1&goto arg-ok
133 if /i "%1"=="lint-ci" set lint_cpp=1&set lint_js_ci=1&goto arg-ok
134 if /i "%1"=="package" set package=1&goto arg-ok
135 if /i "%1"=="msi" set msi=1&set licensertf=1&set download_arg="--download=all"&set i18n_arg=full-icu&goto arg-ok
136 if /i "%1"=="build-release" set build_release=1&set sign=1&goto arg-ok
137 if /i "%1"=="upload" set upload=1&goto arg-ok
138 if /i "%1"=="small-icu" set i18n_arg=%1&goto arg-ok
139 if /i "%1"=="full-icu" set i18n_arg=%1&goto arg-ok
140 if /i "%1"=="intl-none" set i18n_arg=none&goto arg-ok
141 if /i "%1"=="without-intl" set i18n_arg=none&goto arg-ok
142 if /i "%1"=="download-all" set download_arg="--download=all"&goto arg-ok
143 if /i "%1"=="ignore-flaky" set test_args=%test_args% --flaky-tests=dontcare&goto arg-ok
144 if /i "%1"=="dll" set dll=1&goto arg-ok
145 if /i "%1"=="enable-vtune" set enable_vtune_arg=1&goto arg-ok
146 if /i "%1"=="static" set enable_static=1&goto arg-ok
147 if /i "%1"=="no-NODE-OPTIONS" set no_NODE_OPTIONS=1&goto arg-ok
148 if /i "%1"=="debug-nghttp2" set debug_nghttp2=1&goto arg-ok
149 if /i "%1"=="link-module" set "link_module= --link-module=%2%link_module%"&goto arg-ok-2
150 if /i "%1"=="no-cctest" set no_cctest=1&goto arg-ok
151 if /i "%1"=="cctest" set cctest=1&goto arg-ok
152 if /i "%1"=="openssl-no-asm" set openssl_no_asm=1&goto arg-ok
153 if /i "%1"=="no-shared-roheap" set no_shared_roheap=1&goto arg-ok
154 if /i "%1"=="doc" set doc=1&goto arg-ok
155 if /i "%1"=="binlog" set extra_msbuild_args=/binaryLogger:%config%\node.binlog&goto arg-ok
169 set config=Release
170 set package=1
171 set msi=1
172 set licensertf=1
173 set download_arg="--download=all"
174 set i18n_arg=full-icu
175 set projgen=1
176 set cctest=1
177 set ltcg=1
180 if defined msi set stage_package=1
181 if defined package set stage_package=1
184 set "node_exe=%config%\node.exe"
185 set "node_gyp_exe="%node_exe%" deps\npm\node_modules\node-gyp\bin\node-gyp"
186 set "npm_exe="%~dp0%node_exe%" %~dp0deps\npm\bin\npm-cli.js"
187 if "%target_env%"=="vs2019" set "node_gyp_exe=%node_gyp_exe% --msvs_version=2019"
188 if "%target_env%"=="vs2022" set "node_gyp_exe=%node_gyp_exe% --msvs_version=2022"
193 if "%config%"=="Debug" set configure_flags=%configure_flags% --debug
194 if defined nosnapshot set configure_flags=%configure_flags% --without-snapshot
195 if defined nonpm set configure_flags=%configure_flags% --without-npm
196 if defined nocorepack set configure_flags=%configure_flags% --without-corepack
197 if defined noetw set configure_flags=%configure_flags% --without-etw& set noetw_msi_arg=/p:NoETW=1
198 if defined ltcg set configure_flags=%configure_flags% --with-ltcg
199 if defined release_urlbase set configure_flags=%configure_flags% --release-urlbase=%release_urlbase%
200 if defined download_arg set configure_flags=%configure_flags% %download_arg%
201 if defined enable_vtune_arg set configure_flags=%configure_flags% --enable-vtune-profiling
202 if defined dll set configure_flags=%configure_flags% --shared
203 if defined enable_static set configure_flags=%configure_flags% --enable-static
204 if defined no_NODE_OPTIONS set configure_flags=%configure_flags% --without-node-options
205 if defined link_module set configure_flags=%configure_flags% %link_module%
206 if defined i18n_arg set configure_flags=%configure_flags% --with-intl=%i18n_arg%
207 if defined config_flags set configure_flags=%configure_flags% %config_flags%
208 if defined target_arch set configure_flags=%configure_flags% --dest-cpu=%target_arch%
209 if defined debug_nghttp2 set configure_flags=%configure_flags% --debug-nghttp2
210 if defined openssl_no_asm set configure_flags=%configure_flags% --openssl-no-asm
211 if defined no_shared_roheap set configure_flags=%configure_flags% --disable-shared-readonly-heap
212 if defined DEBUG_HELPER set configure_flags=%configure_flags% --verbose
213 if "%target_arch%"=="x86" if "%PROCESSOR_ARCHITECTURE%"=="AMD64" set configure_flags=%configure_flags% --no-cross-compiling
236 if defined TAG set configure_flags=%configure_flags% --tag=%TAG%
246 set msvs_host_arch=x86
247 if _%PROCESSOR_ARCHITECTURE%_==_AMD64_ set msvs_host_arch=amd64
248 if _%PROCESSOR_ARCHITEW6432%_==_AMD64_ set msvs_host_arch=amd64
249 if _%PROCESSOR_ARCHITECTURE%_==_ARM64_ set msvs_host_arch=arm64
251 set vcvarsall_arg=%msvs_host_arch%_%target_arch%
253 if %target_arch%==x64 if %msvs_host_arch%==amd64 set vcvarsall_arg=amd64
254 if %target_arch%==%msvs_host_arch% set vcvarsall_arg=%target_arch%
257 :vs-set-2022
258 if defined target_env if "%target_env%" NEQ "vs2022" goto vs-set-2019
260 @rem VCINSTALLDIR may be set if run from a VS Command Prompt and needs to be
263 if not defined target_env set "VCINSTALLDIR="
265 if "_%VCINSTALLDIR%_" == "__" goto vs-set-2019
266 set "WIXSDKDIR=%WIX%\SDK\VS2017"
272 goto vs-set-2019
276 goto vs-set-2019
282 set "VSINSTALLDIR="
284 set "VSCMD_START_DIR=%CD%"
285 set vcvars_call="%VCINSTALLDIR%\Auxiliary\Build\vcvarsall.bat" %vcvarsall_arg%
288 if errorlevel 1 goto vs-set-2019
292 set GYP_MSVS_VERSION=2022
293 set PLATFORM_TOOLSET=v143
297 :vs-set-2019
300 @rem VCINSTALLDIR may be set if run from a VS Command Prompt and needs to be
303 if not defined target_env set "VCINSTALLDIR="
306 set "WIXSDKDIR=%WIX%\SDK\VS2017"
322 set "VSINSTALLDIR="
324 set "VSCMD_START_DIR=%CD%"
325 set vcvars_call="%VCINSTALLDIR%\Auxiliary\Build\vcvarsall.bat" %vcvarsall_arg%
332 set GYP_MSVS_VERSION=2019
333 set PLATFORM_TOOLSET=v142
344 set project_generated=
370 set project_generated=1
380 set "msbcpu=/m:2"
381 if "%NUMBER_OF_PROCESSORS%"=="1" set "msbcpu=/m:1"
382 set "msbplatform=Win32"
383 if "%target_arch%"=="x64" set "msbplatform=x64"
384 if "%target_arch%"=="arm64" set "msbplatform=ARM64"
386 if defined no_cctest set target=node
387 if "%test_args%"=="" set target=node
388 if defined cctest set target="Build"
391 if defined msbuild_args set "extra_msbuild_args=%extra_msbuild_args% %msbuild_args%"
393 set UseMultiToolTask=True
394 set EnforceProcessCountAcrossBuilds=True
395 set MultiProcMaxCount=%NUMBER_OF_PROCESSORS%
421 set "use_x64_node_exe=false"
422 if "%target_arch%"=="arm64" if "%PROCESSOR_ARCHITECTURE%"=="AMD64" set "use_x64_node_exe=true"
423 set "x64_node_exe=temp-vcbuild\node-x64-cross-compiling.exe"
433 set exit_code=1
499 set HEADERS_ONLY=1
502 set HEADERS_ONLY=
541 set "msbsdk="
542 if defined WindowsSDKVersion set "msbsdk=/p:WindowsTargetPlatformVersion=%WindowsSDKVersion:~0,-1%"
555 echo SSHCONFIG is not set for upload
559 if not defined STAGINGSERVER set STAGINGSERVER=node-www
630 set npm_config_nodedir=%~dp0
648 set npm_config_nodedir=%~dp0
667 set npm_config_nodedir=%~dp0
684 set USE_EMBEDDED_NODE_INSPECT=1
690 set npm_test_cmd="%node_exe%" tools\test-npm-package.js --install --logfile=test-npm.tap deps\npm test-node
697 if "%config%"=="Debug" set test_args=--mode=debug %test_args%
698 if "%config%"=="Release" set test_args=--mode=release %test_args%
703 if %errorlevel% neq 0 set exit_code=%errorlevel%
707 if %errorlevel% neq 0 set exit_code=%errorlevel%
720 if "%ERRORLEVEL%"=="0" set "NODEJS_MAKE=make PYTHON=python" & goto run-make-lint
722 if "%ERRORLEVEL%"=="0" set "NODEJS_MAKE=wsl make" & goto run-make-lint
751 set lint_md_files=
754 set "lint_md_files="%%F" !lint_md_files!"
765 set lint_md_files=
768 set "lint_md_files="%%F" !lint_md_files!"
778 set exit_code=1
805 set NODE_VERSION=
806 set TAG=
807 set FULLVERSION=
809 for /F "usebackq tokens=*" %%i in (`python "%~dp0tools\getnodeversion.py"`) do set NODE_VERSION=%%i
815 if not defined DISTTYPE set DISTTYPE=release
817 set FULLVERSION=%NODE_VERSION%
822 echo "CUSTOMTAG is not set for DISTTYPE=custom"
825 set TAG=%CUSTOMTAG%
829 echo "DATESTRING is not set for nightly"
833 echo "COMMIT is not set for nightly"
842 set TAG=%DISTTYPE%%DATESTRING%%COMMIT%
844 set FULLVERSION=%NODE_VERSION%-%TAG%
847 if not defined DISTTYPEDIR set DISTTYPEDIR=%DISTTYPE%
848 set TARGET_NAME=node-v%FULLVERSION%-win-%target_arch%