Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavide Beatrici <git@davidebeatrici.dev>2020-07-30 21:06:19 +0300
committerDavide Beatrici <git@davidebeatrici.dev>2020-08-02 21:01:57 +0300
commitc64e748e6fa52da37d876012a4405a6328f0c6b4 (patch)
tree2e89b5841137c27b9a6c952dbef41a46283fd055 /.ci/azure-pipelines/build_windows.bat
parentb46b46323e947e2e9fffe5f632565d54742ef502 (diff)
CI(azure-pipelines): add 32 bit Windows build
As with the 64 bit build, it uses a build environment we provide on our website.
Diffstat (limited to '.ci/azure-pipelines/build_windows.bat')
-rw-r--r--.ci/azure-pipelines/build_windows.bat9
1 files changed, 5 insertions, 4 deletions
diff --git a/.ci/azure-pipelines/build_windows.bat b/.ci/azure-pipelines/build_windows.bat
index d9e2eb03a..08af1e0f8 100644
--- a/.ci/azure-pipelines/build_windows.bat
+++ b/.ci/azure-pipelines/build_windows.bat
@@ -25,11 +25,12 @@
:: Defined in .azure-pipelines.yml:
::
:: MUMBLE_ENVIRONMENT_STORE - Path to the folder the build environment is stored in.
-:: MUMBLE_ENVIRONMENT_SOURCE - Build environment web source folder URL
+:: MUMBLE_ENVIRONMENT_SOURCE - Build environment web source folder URL.
+:: MUMBLE_ENVIRONMENT_TRIPLET - vcpkg triplet.
:: MUMBLE_ENVIRONMENT_VERSION - Full build environment version
:: Must match archive and extracted folder name.
:: MUMBLE_ENVIRONMENT_TOOLCHAIN - Path to the vcpkg CMake toolchain, used for CMake.
-::
+:: VCVARS_PATH - Path to the Visual Studio environment initialization script.
@echo on
@@ -37,7 +38,7 @@ for /f "tokens=* USEBACKQ" %%g in (`python "scripts/mumble-version.py"`) do (SET
cd /d %BUILD_BINARIESDIRECTORY%
-call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
+call "%VCVARS_PATH%"
:: Delete MinGW, otherwise CMake picks it over MSVC.
:: We don't delete the (Chocolatey) packages because it takes ~10 minutes...
@@ -48,7 +49,7 @@ del C:\Strawberry\c\bin\gcc.exe
del C:\Strawberry\c\bin\g++.exe
del C:\Strawberry\c\bin\c++.exe
-cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE="%MUMBLE_ENVIRONMENT_TOOLCHAIN%" -DVCPKG_TARGET_TRIPLET=x64-windows-static-md -DIce_HOME="%MUMBLE_ENVIRONMENT_PATH%\installed\x64-windows-static-md" -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -Dversion=%VER% -Dpackaging=ON -Dstatic=ON -Dsymbols=ON -Dasio=ON -Dg15=ON "%BUILD_SOURCESDIRECTORY%"
+cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE="%MUMBLE_ENVIRONMENT_TOOLCHAIN%" -DVCPKG_TARGET_TRIPLET=%MUMBLE_ENVIRONMENT_TRIPLET% -DIce_HOME="%MUMBLE_ENVIRONMENT_PATH%\installed\%MUMBLE_ENVIRONMENT_TRIPLET%" -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -Dversion=%VER% -Dpackaging=ON -Dstatic=ON -Dsymbols=ON -Dasio=ON -Dg15=ON "%BUILD_SOURCESDIRECTORY%"
if errorlevel 1 (
exit /b %errorlevel%