diff options
author | Sebastien Blaisot <sebastien@blaisot.org> | 2016-11-23 09:20:07 +0100 |
---|---|---|
committer | Sebastien Blaisot <sebastien@blaisot.org> | 2016-11-23 09:20:07 +0100 |
commit | 9a3cf17cc30becf55df4117277af6f9ec3eced50 (patch) | |
tree | 336ed457bb56f77ff19b216cc73f29b22427ba4d /build/appveyor | |
parent | 8603f2845cc09172c701fb5fab0802e0bef84c7e (diff) |
Move appveyor build scripts to build/appveyor
Diffstat (limited to 'build/appveyor')
-rw-r--r-- | build/appveyor/build_mixxx.bat | 61 | ||||
-rw-r--r-- | build/appveyor/install_buildenv.bat | 46 |
2 files changed, 107 insertions, 0 deletions
diff --git a/build/appveyor/build_mixxx.bat b/build/appveyor/build_mixxx.bat new file mode 100644 index 0000000000..e916383c6f --- /dev/null +++ b/build/appveyor/build_mixxx.bat @@ -0,0 +1,61 @@ +@echo off + +REM set this to the folder where you build the dependencies +set WINLIB_PATH64D=C:\mixxx-buildserver\2.0-x64-debug-minimal +set WINLIB_PATH64R=C:\mixxx-buildserver\2.0-x64-release-minimal +set WINLIB_PATH32D=C:\mixxx-buildserver\2.0-x86-debug-minimal +set WINLIB_PATH32R=C:\mixxx-buildserver\2.0-x86-release-minimal + +REM XP Compatibility requires the v7.1A SDK +set MSSDK_DIR="c:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A" + +IF "%2"=="" ( +echo "Usage: build_mixxx.bat <bitwidth> <buildtype>" +echo. +echo "For example : .\build.bat x64 release" +exit /B 1 +) + +set ARCHITECTURE=%1 +set BUILD_TYPE=%2 + +if "%ARCHITECTURE%" == "x86" set res32=T +if "%ARCHITECTURE%" == "x32" set res32=T + + +if "%res32%" == "T" ( + set TARGET_MACHINE=x86 + set VCVARS_ARCH=x86 + set DISTDIR=dist32 + if "%BUILD_TYPE%" == "release" ( + set WINLIB_PATH=%WINLIB_PATH32R% + ) else ( + set WINLIB_PATH=%WINLIB_PATH32D% + ) + echo "****************************" + echo "** Building 32 bits Mixxx **" + echo "****************************" +) else ( + set TARGET_MACHINE=amd64 + set VCVARS_ARCH=x86_amd64 + set DISTDIR=dist64 + if "%BUILD_TYPE%" == "release" ( + set WINLIB_PATH=%WINLIB_PATH64R% + ) else ( + set WINLIB_PATH=%WINLIB_PATH64D% + ) + echo "****************************" + echo "** Building 64 bits Mixxx **" + echo "****************************" +) + +REM Clean up after old builds. +REM del /q /f *.exe *.msi 2>NUL +REM rmdir /s /q %DISTDIR% + +call "c:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" %VCVARS_ARCH% + +REM set multiprocessor to build faster (together with scons -j4) +set CL=/MP /FS /EHsc + +scons mixxx makerelease verbose=0 winlib=%WINLIB_PATH% qtdir=%WINLIB_PATH%\build\qt-everywhere-opensource-src-4.8.6 hss1394=1 mediafoundation=1 opus=1 localecompare=1 optimize=portable build=%BUILD_TYPE% machine=%TARGET_MACHINE% toolchain=msvs virtualize=0 test=1 qt_sqlite_plugin=0 mssdk_dir=%MSSDK_DIR% build_number_in_title_bar=0 bundle_pdbs=1 diff --git a/build/appveyor/install_buildenv.bat b/build/appveyor/install_buildenv.bat new file mode 100644 index 0000000000..e4ed2c4bf7 --- /dev/null +++ b/build/appveyor/install_buildenv.bat @@ -0,0 +1,46 @@ +REM @ECHO OFF + +SET BUILDENVBASEDIR=C:\MIXXX-BUILDSERVER + +REM Build envs to install. You can specify more than one separated by spaces (no quotes) +SET BUILDENVS=2.0-%1-%2-minimal + +REM precompiled compressed build env base URL +SET BASEURL=https://downloads.mixxx.org/builds/appveyor/environments/2.0 + +REM --------------------------- + +REM main() + +REM uncomment the following line if you want to empty cache and +REM force buildenv (and build script) download +REM RMDIR /S /Q %BUILDENVBASEDIR% + +REM Install build env base dir +IF NOT EXIST %BUILDENVBASEDIR% MKDIR %BUILDENVBASEDIR% + +REM Install build envs +FOR %%G IN (%BUILDENVS%) DO CALL :installbuildenv %%G + +REM End of main() +GOTO:EOF + +REM --------------------------- + +REM FUNCTION installbuildenv(build_env_name) +:installbuildenv +SETLOCAL +IF EXIST "%BUILDENVBASEDIR%\%1" GOTO BUILDENVEXISTS +ECHO Installing build env %1 +CD %BUILDENVBASEDIR% +echo ..Downloading %1.zip +curl -fsS -L -o %1.zip %BASEURL%/%1.zip +echo ..unzipping %1.zip +7z x %1.zip +DEL %1.zip +GOTO ENDFUNC +:BUILDENVEXISTS +ECHO "Build env %1 seems to already exist. Leaving without doing anything" +:ENDFUNC +ENDLOCAL +GOTO:EOF |