Debian Codegraph @

env/cmd/vars.bat

raw
1 ::------------------------------------------------------------------------------
2 :: Copyright (C) Intel Corporation
3 ::
4 :: SPDX-License-Identifier: MIT
5 ::------------------------------------------------------------------------------
6 :: Configure environment variables
7 @echo off
8 setlocal
9 set VPL_TARGET_ARCH=intel64
10 for %%Q in ("%~dp0\.") DO set "script_dir=%%~fQ"
11
12 :ParseArgs
13 if /i "%1"=="" goto EndParseArgs
14 if /i "%1"=="ia32" (set VPL_TARGET_ARCH=ia32) & shift & goto ParseArgs
15 if /i "%1"=="intel64" (set VPL_TARGET_ARCH=intel64) & shift & goto ParseArgs
16 shift & goto ParseArgs
17 :EndParseArgs
18
19 IF "%VPL_TARGET_ARCH%"=="ia32" (
20 endlocal
21 call "%script_dir%\vars32.bat" %*
22 setlocal
23 set vpl_vars_errorlevel=%errorlevel%
24 ) ELSE (
25 endlocal
26 call "%script_dir%\vars64.bat" %*
27 setlocal
28 set vpl_vars_errorlevel=%errorlevel%
29 )
30 exit /B %vpl_vars_errorlevel%