diff options
author | montellese <montellese@xbmc.org> | 2014-07-27 14:01:55 +0200 |
---|---|---|
committer | montellese <montellese@xbmc.org> | 2015-03-01 21:02:30 +0100 |
commit | f4d3a84797c70bc227a97ccc31c8edaf86f7cf9b (patch) | |
tree | cd2c13f32021ed48e726b30b7d162b7c875b033d | |
parent | cab87179465efa6bec5b8e6c0198ecc3cd2293a9 (diff) |
[win32] get rid of buildpvraddons.bat and update BuildSetup.bat
-rw-r--r-- | project/Win32BuildSetup/BuildSetup.bat | 14 | ||||
-rw-r--r-- | project/Win32BuildSetup/buildpvraddons.bat | 104 |
2 files changed, 0 insertions, 118 deletions
diff --git a/project/Win32BuildSetup/BuildSetup.bat b/project/Win32BuildSetup/BuildSetup.bat index 8114e64af9..0455fa83e2 100644 --- a/project/Win32BuildSetup/BuildSetup.bat +++ b/project/Win32BuildSetup/BuildSetup.bat @@ -30,7 +30,6 @@ rem CONFIG START SET buildmode=ask SET promptlevel=prompt SET buildmingwlibs=true -SET buildpvraddons=true SET buildbinaryaddons=true SET exitcode=0 SET useshell=rxvt @@ -40,7 +39,6 @@ FOR %%b in (%1, %2, %3, %4, %5) DO ( IF %%b==noclean SET buildmode=noclean IF %%b==noprompt SET promptlevel=noprompt IF %%b==nomingwlibs SET buildmingwlibs=false - IF %%b==nopvraddons SET buildpvraddons=false IF %%b==nobinaryaddons SET buildbinaryaddons=false IF %%b==sh SET useshell=sh ) @@ -215,18 +213,6 @@ set WORKSPACE=%CD%\..\.. xcopy ..\..\sounds BUILD_WIN32\application\sounds /E /Q /I /Y /EXCLUDE:exclude.txt > NUL SET build_path=%CD% - IF %buildpvraddons%==true ( - ECHO ------------------------------------------------------------ - ECHO Building pvr addons... - call buildpvraddons.bat - IF %errorlevel%==1 ( - set DIETEXT="failed to build pvr addons" - goto DIE - ) - - IF EXIST error.log del error.log > NUL - ) - IF %buildbinaryaddons%==true ( ECHO ------------------------------------------------------------ ECHO Building addons... diff --git a/project/Win32BuildSetup/buildpvraddons.bat b/project/Win32BuildSetup/buildpvraddons.bat deleted file mode 100644 index 8fdc4e4db4..0000000000 --- a/project/Win32BuildSetup/buildpvraddons.bat +++ /dev/null @@ -1,104 +0,0 @@ -@ECHO OFF - -REM Batch file to download and build pvr-addons and place them in application's add-ons folder - -SET CUR_DIR=%CD% -SET EXITCODE=0 - -SET DEPS_DIR=..\BuildDependencies -SET TMP_DIR=%DEPS_DIR%\tmp - -SET LIBNAME=xbmc-pvr-addons -SET VERSION=2fb0fc22668b1efdec05e66161d6c419844ee9cd -SET SOURCE=%LIBNAME% -SET GIT_URL=git://github.com/opdenkamp/%LIBNAME%.git -SET SOURCE_DIR=%TMP_DIR%\%SOURCE% -SET BUILT_ADDONS_DIR=%SOURCE_DIR%\addons - -REM check if MSBuild.exe is used because it requires different command line switches -IF "%msbuildemitsolution%" == "1" ( - set OPTS_EXE=%SOURCE_DIR%\project\VS2010Express\xbmc-pvr-addons.sln /t:Build /p:Configuration="Release" /property:VCTargetsPath="%MSBUILDROOT%Microsoft.Cpp\v4.0\V120\\" /m -) ELSE ( - set OPTS_EXE=%SOURCE_DIR%\project\VS2010Express\xbmc-pvr-addons.sln /build Release -) - -REM Try wrapped msysgit - must be in the path -SET GITEXE=git.cmd -CALL %GITEXE% --help > NUL 2>&1 -IF errorlevel 1 GOTO nowrapmsysgit -GOTO work - -:nowrapmsysgit - -REM Fallback on regular msysgit - must be in the path -SET GITEXE=git.exe -%GITEXE% --help > NUL -IF errorlevel 9009 IF NOT errorlevel 9010 GOTO nomsysgit -GOTO work - -:nomsysgit - -REM Fallback on tgit.exe of TortoiseGit if available -SET GITEXE=tgit.exe -%GITEXE% --version > NUL 2>&1 -IF errorlevel 9009 IF NOT errorlevel 9010 GOTO error -GOTO work - - -:work -IF NOT EXIST "%TMP_DIR%" MD "%TMP_DIR%" - -REM clone the git repository into SOURCE_DIR -CALL %GITEXE% clone %GIT_URL% "%SOURCE_DIR%" > NUL 2>&1 -CD "%SOURCE_DIR%" -REM get the proper revision -CALL %GITEXE% checkout %VERSION% > NUL 2>&1 - -:build -REM run DownloadBuildDeps.bat of pvr-addons -CD "project\BuildDependencies" -CALL DownloadBuildDeps.bat > NUL 2>&1 -CD "%CUR_DIR%" - -REM build xbmc-pvr-addons.sln -ECHO Building PVR addons -"%MSBUILDROOT%12.0\bin\MSBuild.exe" %OPTS_EXE% - -IF %errorlevel%==1 ( - goto fail -) - -REM copy the built pvr addons into ADDONS_DIR -CD "%BUILT_ADDONS_DIR%" -SET ADDONS_DIR=..\..\..\..\Win32BuildSetup\BUILD_WIN32\addons\ - -REM exclude some files -ECHO addon.xml.in > exclude.txt -ECHO _win32.exp >> exclude.txt -ECHO _win32.lib >> exclude.txt -ECHO _win32.pdb >> exclude.txt -FOR /D %%A IN ("pvr.*") DO ( - IF EXIST "%%A\addon" ( - ECHO Installing %%A - XCOPY "%%A\addon\*" "%ADDONS_DIR%\%%A" /E /Q /I /Y /EXCLUDE:exclude.txt > NUL - ) -) -DEL exclude.txt > NUL -CD "%CUR_DIR%" - -REM cleanup temporary directories -RMDIR "%TMP_DIR%" /S /Q > NUL - -GOTO done - -:error -ECHO No git command available. Unable to fetch and build pvr-addons. -SET EXITCODE=1 - -:fail -ECHO Failed to build one or more pvr addons -SET EXITCODE=1 - -:done -SET GITEXE= -EXIT /B %EXITCODE% |