2019-12-28 21:20:46 +01:00
|
|
|
image: Visual Studio 2019
|
|
|
|
|
2019-12-28 22:00:53 +01:00
|
|
|
environment:
|
|
|
|
WXWIN: '%APPVEYOR_BUILD_FOLDER\wxWidgets'
|
|
|
|
|
2019-12-28 21:20:46 +01:00
|
|
|
install:
|
|
|
|
# Set paths to dependencies (based on architecture)
|
2019-12-28 21:31:18 +01:00
|
|
|
- cmd: set PYTHON_ROOT=C:\python37-x64
|
2019-12-28 21:20:46 +01:00
|
|
|
# Add necessary paths to PATH variable
|
|
|
|
- cmd: set PATH=%cd%;%PYTHON_ROOT%;%PYTHON_ROOT%\Scripts;%PATH%
|
|
|
|
# Install meson and ninja
|
|
|
|
- cmd: pip install ninja meson
|
2019-12-28 22:00:53 +01:00
|
|
|
# download wxWidgets
|
2019-12-28 22:02:37 +01:00
|
|
|
- cmd: mkdir %WXWIN%
|
2019-12-28 22:00:53 +01:00
|
|
|
- cmd: chdir %WXWIN%
|
|
|
|
- cmd: curl -L -o wxWidgets.7z https://github.com/wxWidgets/wxWidgets/releases/download/v3.1.3/wxWidgets-3.1.3.7z
|
|
|
|
- cmd: 7z x wxWidgets.7z
|
|
|
|
- cmd: cd ..
|
|
|
|
# build wxWidgets
|
2019-12-28 22:12:11 +01:00
|
|
|
- cmd: 'msbuild /m %WXWIN%\build\msw\wx_vc16.sln "/p:Configuration=DLL Release;Platform=Win32;PlatformToolset=v142" /target:adv,base,core,html,net,qa,wxexpat,wxjpeg,wxpng,wxtiff,wxzlib,xml /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"'
|
2019-12-28 21:20:46 +01:00
|
|
|
# Set up the build environment
|
2019-12-28 21:41:52 +01:00
|
|
|
- cmd: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64'
|
2019-12-28 21:44:48 +01:00
|
|
|
- cmd: set BOOST_ROOT=C:\Libraries\boost_1_71_0
|
2019-12-28 21:20:46 +01:00
|
|
|
|
|
|
|
build_script:
|
|
|
|
- cmd: meson --backend=ninja builddir
|
2019-12-28 22:00:53 +01:00
|
|
|
- cmd: ninja -C -Dwx_path=%WXWIN% builddir
|
2019-12-28 21:20:46 +01:00
|
|
|
|