-
Notifications
You must be signed in to change notification settings - Fork 137
/
_build.bat
49 lines (40 loc) · 1.36 KB
/
_build.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
@echo off
rem TAP-Windows -- A kernel driver to provide virtual tap
rem device functionality on Windows.
rem
rem Copyright (C) 2012 Alon Bar-Lev <alon.barlev@gmail.com>
rem
rem This program is free software; you can redistribute it and/or modify
rem it under the terms of the GNU General Public License as published by
rem the Free Software Foundation; either version 2 of the License, or
rem (at your option) any later version.
rem
rem This program is distributed in the hope that it will be useful,
rem but WITHOUT ANY WARRANTY; without even the implied warranty of
rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
rem GNU General Public License for more details.
rem
rem You should have received a copy of the GNU General Public License
rem along with this program (see the file COPYING included with this
rem distribution); if not, write to the Free Software Foundation, Inc.,
rem 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
setlocal enableextensions enabledelayedexpansion
set root=%cd%
set myos=%1
set myprofile=%2
set mymode=fre
echo Building %myos%-%myprofile%-%mymode%
call "%DDK%\bin\setenv" %DDK% %mymode% %myprofile% %myos% no_oacr
if errorlevel 1 goto error
cd /d %root%
cd src
nmake
if errorlevel 1 goto error
set rc=0
goto end
:error
echo FAIL %myos%-%myprofile%-%mymode%
set rc=1
goto end
:end
endlocal