diff options
author | Martijn Kaijser <martijn@xbmc.org> | 2016-04-02 16:33:03 +0200 |
---|---|---|
committer | Martijn Kaijser <martijn@xbmc.org> | 2016-04-02 16:33:03 +0200 |
commit | 66bf179e916f699f975526eb556d401bd47cc6d5 (patch) | |
tree | caddb51062c317d2e44ebbe15f13a4ba785558ba /tools | |
parent | d2d3fc791e6281360ebc5dd08f6385fa0ec3b38d (diff) | |
parent | cf5c402ee5777b5385d28ee7503e106e59289796 (diff) |
Merge pull request #8992 from Paxxi/vs2015
[win32][xbmc] Upgrade to VS2015
Diffstat (limited to 'tools')
-rw-r--r-- | tools/buildsteps/win32/make-addons.bat | 2 | ||||
-rw-r--r-- | tools/buildsteps/win32/make-xbmc.bat | 176 |
2 files changed, 1 insertions, 177 deletions
diff --git a/tools/buildsteps/win32/make-addons.bat b/tools/buildsteps/win32/make-addons.bat index 6373ea4b74..9fa18984d1 100644 --- a/tools/buildsteps/win32/make-addons.bat +++ b/tools/buildsteps/win32/make-addons.bat @@ -24,7 +24,7 @@ FOR %%b IN (%*) DO ( SETLOCAL DisableDelayedExpansion rem set Visual C++ build environment -call "%VS120COMNTOOLS%..\..\VC\bin\vcvars32.bat" +call "%VS140COMNTOOLS%..\..\VC\bin\vcvars32.bat" SET WORKDIR=%WORKSPACE% diff --git a/tools/buildsteps/win32/make-xbmc.bat b/tools/buildsteps/win32/make-xbmc.bat deleted file mode 100644 index 1be66c020b..0000000000 --- a/tools/buildsteps/win32/make-xbmc.bat +++ /dev/null @@ -1,176 +0,0 @@ -@ECHO OFF -rem ----Usage---- -rem BuildSetup [clean|noclean] -rem clean to force a full rebuild -rem noclean to force a build without clean -rem noprompt to avoid all prompts -CLS -COLOR 1B -TITLE XBMC for Windows Build Script -rem ----PURPOSE---- -rem - Create a working XBMC build with a single click -rem ------------------------------------------------------------- -rem Config -rem If you get an error that Visual studio was not found, SET your path for VSNET main executable. -rem ------------------------------------------------------------- -rem CONFIG START -SET comp=vs2010 -SET buildconfig=Release (DirectX) -SET buildmode=ask -SET promptlevel=prompt -SET buildmingwlibs=true -SET exitcode=0 -FOR %%b in (%1, %2, %3, %4, %5) DO ( - IF %%b==clean SET buildmode=clean - IF %%b==noclean SET buildmode=noclean - IF %%b==noprompt SET promptlevel=noprompt - IF %%b==nomingwlibs SET buildmingwlibs=false -) - -IF $%Configuration%$ == $$ ( - IF %Configuration%==Release SET buildconfig=Release (DirectX) - IF %Configuration%==Debug SET buildconfig=Debug (DirectX) -) - -SET BS_DIR=%WORKSPACE%\project\Win32BuildSetup -cd %BS_DIR% - -IF %comp%==vs2010 ( - IF "%VS100COMNTOOLS%"=="" ( - set NET="%ProgramFiles%\Microsoft Visual Studio 10.0\Common7\IDE\VCExpress.exe" - ) ELSE IF EXIST "%VS100COMNTOOLS%\..\IDE\VCExpress.exe" ( - set NET="%VS100COMNTOOLS%\..\IDE\VCExpress.exe" - ) ELSE IF EXIST "%VS100COMNTOOLS%\..\IDE\devenv.exe" ( - set NET="%VS100COMNTOOLS%\..\IDE\devenv.exe" - ) -) - -IF NOT EXIST %NET% ( - set DIETEXT=Visual Studio .NET 2010 Express was not found. - goto DIE -) - -set OPTS_EXE="..\VS2010Express\XBMC for Windows.sln" /build "%buildconfig%" -set CLEAN_EXE="..\VS2010Express\XBMC for Windows.sln" /clean "%buildconfig%" -set EXE= "..\VS2010Express\XBMC\%buildconfig%\XBMC.exe" -set PDB= "..\VS2010Express\XBMC\%buildconfig%\XBMC.pdb" - -rem CONFIG END -rem ------------------------------------------------------------- - -echo : -echo ::: -echo :::: -echo :::: -echo ::::::: ::::::::::::::::: :::::: :::::: ::::::: -echo ::::::::: :::::::::::::::::::: :::::::::: :::::::::: ::::::::: -echo ::::::::: :::::::::::::::::::::: :::::::::::::::::::::::: ::::::::: -echo ::::::::: ::: ::::: ::::: :::::::: :::: ::::: -echo :::::: :::: :::: :::: ::::: ::::::: -echo ::::: :::: ::::::: ::::: :::::: -echo ::::: ::: :::::: ::: :::::: -echo :::: ::: :::::: :::: :::::: -echo :::: ::: ::::::: :::: :::::: -echo ::::: :::: ::::::: :::: :::::: -echo ::::::: :::: :::::::: ::: ::::::: -echo ::::::::::::::: ::::: ::::: ::: ::: ::::::::: -echo ::::::::: ::::::::: ::::::::::: ::: ::: ::: ::::::::: -echo :::::::: ::::::::: ::::::::: ::: ::: ::: :::::::: -echo :::::: ::::::: ::::: : :: :: :::::: -echo Building %buildconfig% -goto EXE_COMPILE - -:EXE_COMPILE - IF EXIST buildlog.html del buildlog.html /q - IF %buildmode%==clean goto COMPILE_EXE - IF %buildmode%==noclean goto COMPILE_NO_CLEAN_EXE - rem --------------------------------------------- - rem check for existing exe - rem --------------------------------------------- - - 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 APP_COMPILE_ANSWER=Compile a new EXE? [1/2]: - if /I %APP_COMPILE_ANSWER% EQU 1 goto COMPILE_EXE - if /I %APP_COMPILE_ANSWER% EQU 2 goto COMPILE_NO_CLEAN_EXE - -:COMPILE_EXE - ECHO Wait while preparing the build. - ECHO ------------------------------------------------------------ - ECHO Cleaning Solution... - %NET% %CLEAN_EXE% - ECHO Compiling XBMC... - %NET% %OPTS_EXE% - IF NOT EXIST %EXE% ( - set DIETEXT="XBMC.EXE failed to build! See %WORKSPACE%\project\vs2010express\XBMC\%buildconfig%\objs\XBMC.log" - IF %promptlevel%==noprompt ( - type "%WORKSPACE%\project\vs2010express\XBMC\%buildconfig%\objs\XBMC.log" - ) - goto DIE - ) - ECHO Done! - ECHO ------------------------------------------------------------ - set buildmode=clean - GOTO END - -:COMPILE_NO_CLEAN_EXE - ECHO Wait while preparing the build. - ECHO ------------------------------------------------------------ - ECHO Compiling Solution... - %NET% %OPTS_EXE% - IF NOT EXIST %EXE% ( - set DIETEXT="XBMC.EXE failed to build! See %WORKSPACE%\project\vs2010express\XBMC\%buildconfig%\objs\XBMC.log" - IF %promptlevel%==noprompt ( - type "%WORKSPACE%\project\vs2010express\XBMC\%buildconfig%\objs\XBMC.log" - ) - goto DIE - ) - ECHO Done! - ECHO ------------------------------------------------------------ - GOTO END - - -:DIE - ECHO ------------------------------------------------------------ - ECHO !-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!- - ECHO ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR - ECHO !-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!- - set DIETEXT=ERROR: %DIETEXT% - echo %DIETEXT% - SET exitcode=1 - ECHO ------------------------------------------------------------ - -:VIEWLOG_EXE - SET log="%WORKSPACE%\project\vs2010express\XBMC\%buildconfig%\objs\XBMC.log" - IF NOT EXIST %log% goto END - - copy %log% ./buildlog.html > NUL - - IF %promptlevel%==noprompt ( - goto END - ) - - set /P APP_BUILD_ANSWER=View the build log in your HTML browser? [y/n] - if /I %APP_BUILD_ANSWER% NEQ y goto END - - SET log="%WORKSPACE%\project\vs2010express\XBMC\%buildconfig%\objs\" XBMC.log - - start /D%log% - goto END - -:END - IF %promptlevel% NEQ noprompt ( - ECHO Press any key to exit... - pause > NUL - ) - EXIT /B %exitcode%
\ No newline at end of file |