2018-01-26 03:10:10 +03:00
|
|
|
@echo off
|
|
|
|
set var=%1
|
2018-03-20 02:07:36 +03:00
|
|
|
set val=%2
|
2018-01-26 03:10:10 +03:00
|
|
|
echo var = %var%
|
2018-03-20 02:07:36 +03:00
|
|
|
echo val = %val%
|
2018-04-03 20:12:08 +03:00
|
|
|
IF /I "%val%" == "VALIDATE" (
|
2018-03-20 02:07:36 +03:00
|
|
|
set val="-DUSE_VALIDATION_PARSER=on"
|
2018-04-03 20:12:08 +03:00
|
|
|
) ELSE (
|
|
|
|
set val="-DUSE_VALIDATION_PARSER=off"
|
2018-03-20 02:07:36 +03:00
|
|
|
)
|
|
|
|
|
2018-01-26 03:10:10 +03:00
|
|
|
IF /I "%var%" == "WIN32" (
|
2018-03-20 02:07:36 +03:00
|
|
|
echo calling makewin32.cmd %val%
|
|
|
|
call makewin32.cmd %val%
|
2018-01-26 03:10:10 +03:00
|
|
|
) ELSE (
|
|
|
|
IF /I "%var%" == "WIN32-x64" (
|
2018-03-20 02:07:36 +03:00
|
|
|
echo calling makewin32x64.cmd %val%
|
|
|
|
call makewin32x64.cmd %val%
|
2018-01-26 03:10:10 +03:00
|
|
|
) ELSE (
|
|
|
|
IF /I "%var%" == "WIN32chk" (
|
2018-03-20 02:07:36 +03:00
|
|
|
echo calling makewin32chk.cmd %val%
|
|
|
|
call makewin32chk.cmd %val%
|
2018-01-26 03:10:10 +03:00
|
|
|
) ELSE (
|
|
|
|
IF /I "%var%" == "WIN32-x64chk" (
|
2018-03-20 02:07:36 +03:00
|
|
|
echo calling makewin32x64chk.cmd %val%
|
|
|
|
call makewin32x64chk.cmd %val%
|
2018-01-26 03:10:10 +03:00
|
|
|
) ELSE (
|
|
|
|
goto FAIL
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
goto EXIT
|
|
|
|
:FAIL
|
2018-03-20 02:07:36 +03:00
|
|
|
echo specify one of [WIN32, WIN32-x64, WIN32chk, WIN32-x64chk] for 1st option
|
2018-04-03 20:12:08 +03:00
|
|
|
echo specify VALIDATE for 2nd option to disable XML schema validation.
|
2018-01-26 03:10:10 +03:00
|
|
|
EXIT /B 0
|
|
|
|
:Exit
|
|
|
|
echo done.
|