aboutsummaryrefslogtreecommitdiff
path: root/tools/buildsteps/win32
diff options
context:
space:
mode:
authorWiSo <wiso@xbmc.org>2013-03-31 18:44:34 +0200
committerWiSo <wiso@xbmc.org>2013-03-31 18:45:14 +0200
commitc1e93e2c6c6c6af3514d301f6c88adaf617c6b48 (patch)
treef06cf431b10f4cef5ad802f773ba1d07fef7ac11 /tools/buildsteps/win32
parentcd34494b6e77a7a5bcb26925053e6a837d4d0548 (diff)
[WIN32] added download-depends.bat and download-msys.bat to the jenkins build scripts.
Diffstat (limited to 'tools/buildsteps/win32')
-rw-r--r--tools/buildsteps/win32/download-depends.bat39
-rw-r--r--tools/buildsteps/win32/download-msys.bat72
2 files changed, 111 insertions, 0 deletions
diff --git a/tools/buildsteps/win32/download-depends.bat b/tools/buildsteps/win32/download-depends.bat
new file mode 100644
index 0000000000..c56b39a2d0
--- /dev/null
+++ b/tools/buildsteps/win32/download-depends.bat
@@ -0,0 +1,39 @@
+@ECHO OFF
+
+SETLOCAL
+
+SET CUR_PATH=%WORKSPACE%\project\BuildDependencies
+SET TMP_PATH=%WORKSPACE%\project\BuildDependencies\scripts\tmp
+
+cd %CUR_PATH%
+
+rem can't run rmdir and md back to back. access denied error otherwise.
+IF EXIST lib rmdir lib /S /Q
+IF EXIST include rmdir include /S /Q
+IF EXIST %TMP_PATH% rmdir %TMP_PATH% /S /Q
+
+IF $%1$ == $$ (
+ SET DL_PATH="%CD%\downloads"
+) ELSE (
+ SET DL_PATH="%1"
+)
+
+SET WGET=%CUR_PATH%\bin\wget
+SET ZIP=%CUR_PATH%\..\Win32BuildSetup\tools\7z\7za
+
+IF NOT EXIST %DL_PATH% md %DL_PATH%
+
+md lib
+md include
+md %TMP_PATH%
+
+cd scripts
+
+FOR /F "tokens=*" %%S IN ('dir /B "*_d.bat"') DO (
+ echo running %%S ...
+ CALL %%S
+)
+
+cd %CUR_PATH%
+
+rmdir %TMP_PATH% /S /Q \ No newline at end of file
diff --git a/tools/buildsteps/win32/download-msys.bat b/tools/buildsteps/win32/download-msys.bat
new file mode 100644
index 0000000000..a1e72e778b
--- /dev/null
+++ b/tools/buildsteps/win32/download-msys.bat
@@ -0,0 +1,72 @@
+@ECHO OFF
+
+SETLOCAL
+
+SET CUR_PATH=%WORKSPACE%\project\BuildDependencies
+SET XBMC_PATH=%WORKSPACE%
+SET TMP_PATH=%CUR_PATH%\scripts\tmp
+
+SET MSYS_INSTALL_PATH="%CUR_PATH%\msys"
+SET MINGW_INSTALL_PATH="%CUR_PATH%\msys\mingw"
+
+cd %CUR_PATH%
+
+rem can't run rmdir and md back to back. access denied error otherwise.
+IF EXIST %MSYS_INSTALL_PATH% rmdir %MSYS_INSTALL_PATH% /S /Q
+IF EXIST %TMP_PATH% rmdir %TMP_PATH% /S /Q
+
+IF $%1$ == $$ (
+ SET DL_PATH="%CD%\downloads2"
+) ELSE (
+ SET DL_PATH="%1"
+)
+
+SET WGET=%CUR_PATH%\bin\wget
+SET ZIP=%CUR_PATH%\..\Win32BuildSetup\tools\7z\7za
+
+IF NOT EXIST %DL_PATH% md %DL_PATH%
+
+IF NOT EXIST %MSYS_INSTALL_PATH% md %MSYS_INSTALL_PATH%
+IF NOT EXIST %MINGW_INSTALL_PATH% md %MINGW_INSTALL_PATH%
+IF NOT EXIST %TMP_PATH% md %TMP_PATH%
+
+cd scripts
+
+CALL get_msys_env.bat
+IF EXIST %TMP_PATH% rmdir %TMP_PATH% /S /Q
+CALL get_mingw_env.bat
+
+cd %CUR_PATH%
+
+rem update fstab to install path
+SET FSTAB=%MINGW_INSTALL_PATH%
+SET FSTAB=%FSTAB:\=/%
+SET FSTAB=%FSTAB:"=%
+ECHO %FSTAB% /mingw>>"%MSYS_INSTALL_PATH%\etc\fstab"
+SET FSTAB=%XBMC_PATH%
+SET FSTAB=%FSTAB:\=/%
+SET FSTAB=%FSTAB:"=%
+ECHO %FSTAB% /xbmc>>"%MSYS_INSTALL_PATH%\etc\fstab"
+
+rem patch mingw headers to compile ffmpeg
+xcopy mingw_support\postinstall\* "%MSYS_INSTALL_PATH%\postinstall\" /E /Q /I /Y
+cd "%MSYS_INSTALL_PATH%\postinstall"
+CALL pi_patches.bat
+
+cd %CUR_PATH%
+
+rem insert call to vcvars32.bat in msys.bat
+SET NET90VARS="%VS90COMNTOOLS%..\..\VC\bin\vcvars32.bat"
+SET NET100VARS="%VS100COMNTOOLS%..\..\VC\bin\vcvars32.bat"
+cd %MSYS_INSTALL_PATH%
+Move msys.bat msys.bat_dist
+IF EXIST %NET100VARS% (
+ ECHO CALL %NET100VARS%>>msys.bat
+) ELSE IF EXIST %NET90VARS% (
+ ECHO CALL %NET90VARS%>>msys.bat
+)
+TYPE msys.bat_dist>>msys.bat
+
+cd %CUR_PATH%
+
+IF EXIST %TMP_PATH% rmdir %TMP_PATH% /S /Q