778004abc9efcdfa36bb29aacceecc691cb90c89
[mirror_edk2.git] / Tools / bin / build.bat
1 @REM
2 @REM Copyright (c) 2006, Intel Corporation
3 @REM All rights reserved. This program and the accompanying materials
4 @REM are licensed and made available under the terms and conditions of the BSD License
5 @REM which accompanies this distribution. The full text of the license may be found at
6 @REM http://opensource.org/licenses/bsd-license.php
7 @REM
8 @REM THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
9 @REM WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
10 @REM
11 @echo off
12
13 set _ARGS=
14 :check_arg
15 if ""%1""=="""" goto arg_end
16 if ""%1""==""-q"" goto ant_arg
17 if ""%1""==""-v"" goto ant_arg
18 if ""%1""==""-d"" goto ant_arg
19 if ""%1""==""-e"" goto ant_arg
20 if ""%1""==""-emacs"" goto ant_arg
21
22 goto ant_target
23
24 :ant_arg
25 set _ARGS=%_ARGS% %1
26 shift
27 goto check_arg
28
29 :ant_target
30 set _ARGS=%_ARGS% -DBUILD_TARGET=%1
31 shift
32 goto check_arg
33
34 :arg_end
35 ant -logger org.tianocore.build.global.GenBuildLogger -f %WORKSPACE%/build.xml %_ARGS%
36
37 set _ARGS=
38 @echo on
39