Mercurial > hg > sonic-visualiser
view deploy/win64/build-and-package.bat @ 1976:810a0b8f5472 c++14
Requiring c++14 is not going to work for Travis (because we want to support a Qt version too old to know about the c++14 config flag) or for our AppImage build (because we want to run on distros to old to support the relevant gcc ABI). So instead we try to confine the C++ standard selection to one place (config/noconfig) and revert to c++11 if the compiler is too old to know about c++14. All of the actual SV code remains c++11, and we assume we build against an older version of capnproto when we want to perform a c++11 build.
author | Chris Cannam |
---|---|
date | Fri, 31 Aug 2018 13:41:27 +0100 |
parents | 9f26f92bf89f |
children | a594146c1ed8 |
line wrap: on
line source
rem Run this from within the top-level SV dir: deploy\win64\build-and-package.bat set STARTPWD=%CD% if not exist "C:\Program Files (x86)\SMLNJ\bin" ( @ echo Could not find SML/NJ, required for Repoint @ exit /b 2 ) if not exist "C:\Program Files (x86)\WiX Toolset v3.11\bin" ( @ echo Could not find WiX Toolset @ exit /b 2 ) @echo Rebuilding 32-bit cd %STARTPWD% del /q /s build_win32 call .\deploy\win64\build-32.bat if %errorlevel% neq 0 exit /b %errorlevel% @echo Rebuilding 64-bit cd %STARTPWD% del /q /s build_win64 call .\deploy\win64\build-64.bat if %errorlevel% neq 0 exit /b %errorlevel% set PATH=%PATH%;"C:\Program Files (x86)\WiX Toolset v3.11\bin" @echo Packaging 32-bit cd %STARTPWD%\build_win32 del sonic-visualiser.msi candle -v ..\deploy\win32\sonic-visualiser.wxs light -b . -ext WixUIExtension -ext WixUtilExtension -v sonic-visualiser.wixobj if %errorlevel% neq 0 exit /b %errorlevel% del sonic-visualiser.wixobj del sonic-visualiser.wixpdb @echo Packaging 64-bit cd %STARTPWD%\build_win64 del sonic-visualiser.msi candle -v ..\deploy\win64\sonic-visualiser.wxs light -b . -ext WixUIExtension -ext WixUtilExtension -v sonic-visualiser.wixobj if %errorlevel% neq 0 exit /b %errorlevel% del sonic-visualiser.wixobj del sonic-visualiser.wixpdb @echo Done