aboutsummaryrefslogtreecommitdiff
path: root/project/Win32BuildSetup/BuildSetup.bat
diff options
context:
space:
mode:
authorwsoltys <wiso@no.way>2014-05-01 12:14:53 +0200
committerwsoltys <wiso@no.way>2014-05-01 12:14:53 +0200
commita302baa8202d5c0ca8f4eeb642672a25c124ab41 (patch)
tree69850c9b0ec6fa6bd7b033f1a60ff50cc2bd55d3 /project/Win32BuildSetup/BuildSetup.bat
parentcf808a68cb4309178a0df643cd028d5f73506e54 (diff)
[WIN32] fixed BuildSetup.bat after ffmpeg2 merge
Diffstat (limited to 'project/Win32BuildSetup/BuildSetup.bat')
-rw-r--r--project/Win32BuildSetup/BuildSetup.bat65
1 files changed, 35 insertions, 30 deletions
diff --git a/project/Win32BuildSetup/BuildSetup.bat b/project/Win32BuildSetup/BuildSetup.bat
index db32e4edf7..8fd4212f97 100644
--- a/project/Win32BuildSetup/BuildSetup.bat
+++ b/project/Win32BuildSetup/BuildSetup.bat
@@ -40,6 +40,7 @@ FOR %%b in (%1, %2, %3, %4, %5) DO (
SET buildconfig=Release (DirectX)
IF %target%==gl SET buildconfig=Release (OpenGL)
+set WORKSPACE=%CD%\..\..
IF %comp%==vs2010 (
REM look for MSBuild.exe in .NET Framework 4.x
@@ -105,27 +106,50 @@ IF %comp%==vs2010 (
:EXE_COMPILE
IF EXIST buildlog.html del buildlog.html /q
- IF %buildmode%==clean goto COMPILE_EXE
- IF %buildmode%==noclean goto COMPILE_NO_CLEAN_EXE
+ IF NOT %buildmode%==ask goto COMPILE_MINGW
+ IF %promptlevel%==noprompt goto COMPILE_MINGW
rem ---------------------------------------------
rem check for existing exe
rem ---------------------------------------------
+ set buildmode=clean
+
+ IF NOT EXIST %EXE% goto COMPILE_MINGW
- IF EXIST %EXE% (
- goto EXE_EXIST
- )
- goto COMPILE_EXE
-
-:EXE_EXIST
- IF %promptlevel%==noprompt goto COMPILE_EXE
ECHO ------------------------------------------------------------
ECHO Found a previous Compiled WIN32 EXE!
ECHO [1] a NEW EXE will be compiled for the BUILD_WIN32
ECHO [2] existing EXE will be updated (quick mode compile) for the BUILD_WIN32
ECHO ------------------------------------------------------------
set /P XBMC_COMPILE_ANSWER=Compile a new EXE? [1/2]:
- if /I %XBMC_COMPILE_ANSWER% EQU 1 goto COMPILE_EXE
- if /I %XBMC_COMPILE_ANSWER% EQU 2 goto COMPILE_NO_CLEAN_EXE
+ if /I %XBMC_COMPILE_ANSWER% EQU 1 set buildmode=clean
+ if /I %XBMC_COMPILE_ANSWER% EQU 2 set buildmode=noclean
+
+ goto COMPILE_MINGW
+
+
+:COMPILE_MINGW
+ ECHO Buildmode = %buildmode%
+ IF %buildmingwlibs%==true (
+ ECHO Compiling mingw libs
+ ECHO bla>noprompt
+ IF EXIST errormingw del errormingw > NUL
+ IF %buildmode%==clean (
+ ECHO bla>makeclean
+ )
+ rem only use sh to please jenkins
+ IF %useshell%==sh (
+ call ..\..\tools\buildsteps\win32\make-mingwlibs.bat sh noprompt
+ ) ELSE (
+ call ..\..\tools\buildsteps\win32\make-mingwlibs.bat noprompt
+ )
+ IF EXIST errormingw (
+ set DIETEXT="failed to build mingw libs"
+ goto DIE
+ )
+ )
+ IF %buildmode%==clean goto COMPILE_EXE
+ goto COMPILE_NO_CLEAN_EXE
+
:COMPILE_EXE
ECHO Wait while preparing the build.
@@ -163,25 +187,6 @@ IF %comp%==vs2010 (
GOTO MAKE_BUILD_EXE
:MAKE_BUILD_EXE
- IF %buildmingwlibs%==true (
- ECHO Compiling mingw libs
- ECHO bla>noprompt
- IF EXIST errormingw del errormingw > NUL
- IF %buildmode%==clean (
- ECHO bla>makeclean
- )
- rem only use sh to please jenkins
- IF %useshell%==sh (
- call buildmingwlibs.bat sh
- ) ELSE (
- call buildmingwlibs.bat
- )
- IF EXIST errormingw (
- set DIETEXT="failed to build mingw libs"
- goto DIE
- )
- )
-
ECHO Copying files...
IF EXIST BUILD_WIN32 rmdir BUILD_WIN32 /S /Q
rem Add files to exclude.txt that should not be included in the installer