forked from FernetMenta/xbmc
-
Notifications
You must be signed in to change notification settings - Fork 6
/
make-mingwlibs.bat
50 lines (43 loc) · 1.31 KB
/
make-mingwlibs.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
50
@ECHO OFF
rem batch file to compile mingw libs via BuildSetup
rem set M$ env
call "%VS100COMNTOOLS%..\..\VC\bin\vcvars32.bat"
SET PROMPTLEVEL=prompt
SET BUILDMODE=clean
SET opt=rxvt
FOR %%b in (%1, %2, %3) DO (
IF %%b==noprompt SET PROMPTLEVEL=noprompt
IF %%b==clean SET BUILDMODE=clean
IF %%b==noclean SET BUILDMODE=noclean
IF %%b==sh SET opt=sh
)
SET BS_DIR=%WORKSPACE%\project\Win32BuildSetup
cd %BS_DIR%
IF EXIST errormingw del errormingw > NUL
rem compiles a bunch of mingw libs and not more
IF %opt%==sh (
IF EXIST %WORKSPACE%\project\BuildDependencies\msys\bin\sh.exe (
ECHO starting sh shell
%WORKSPACE%\project\BuildDependencies\msys\bin\sh --login /xbmc/tools/buildsteps/win32/make-mingwlibs.sh
GOTO END
) ELSE (
GOTO ENDWITHERROR
)
)
IF EXIST %WORKSPACE%\project\BuildDependencies\msys\bin\rxvt.exe (
ECHO starting rxvt shell
%WORKSPACE%\project\BuildDependencies\msys\bin\rxvt -backspacekey -sl 2500 -sr -fn Courier-12 -tn msys -geometry 120x25 -title "building mingw dlls" -e /bin/sh --login /xbmc//xbmc/tools/buildsteps/win32/make-mingwlibs.sh
GOTO END
)
GOTO ENDWITHERROR
:ENDWITHERROR
ECHO msys environment not found
EXIT /B 1
:END
ECHO exiting msys environment
IF EXIST errormingw (
ECHO failed to build mingw libs
del errormingw > NUL
EXIT /B 1
)
EXIT /B 0