X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=Tools%2Fbin%2Fbuild.bat;h=778004abc9efcdfa36bb29aacceecc691cb90c89;hp=ac9759625d42aeb9de3ef23d7243b444c117c936;hb=01bf334d2c017095a1776c2c42fe5dd0337cff0a;hpb=7a6de051139499edd80ddccafcfcba4f34515d35 diff --git a/Tools/bin/build.bat b/Tools/bin/build.bat index ac9759625d..778004abc9 100644 --- a/Tools/bin/build.bat +++ b/Tools/bin/build.bat @@ -8,5 +8,32 @@ @REM THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, @REM WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. @REM +@echo off + +set _ARGS= +:check_arg +if ""%1""=="""" goto arg_end +if ""%1""==""-q"" goto ant_arg +if ""%1""==""-v"" goto ant_arg +if ""%1""==""-d"" goto ant_arg +if ""%1""==""-e"" goto ant_arg +if ""%1""==""-emacs"" goto ant_arg + +goto ant_target + +:ant_arg + set _ARGS=%_ARGS% %1 + shift + goto check_arg + +:ant_target + set _ARGS=%_ARGS% -DBUILD_TARGET=%1 + shift + goto check_arg + +:arg_end +ant -logger org.tianocore.build.global.GenBuildLogger -f %WORKSPACE%/build.xml %_ARGS% + +set _ARGS= +@echo on -ant -f %WORKSPACE%/build.xml %*