|
|
|
|
if "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2017" call "C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Auxiliary/Build/vcvarsall.bat" x64 || exit /b
|
|
|
|
|
if "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2017" set GENERATOR=Visual Studio 15 2017
|
|
|
|
|
rem This is what should make the *native* corrade-rc getting found. Corrade
|
|
|
|
|
rem should not cross-compile it on this platform, because then it'd get found
|
|
|
|
|
rem instead of the native version with no way to distinguish the two, and all
|
|
|
|
|
rem hell breaks loose. Thus also not passing CORRADE_RC_EXECUTABLE anywhere
|
|
|
|
|
rem below to ensure this doesn't regress.
|
|
|
|
|
set PATH=%APPVEYOR_BUILD_FOLDER%\deps-native\bin;%PATH%
|
|
|
|
|
|
|
|
|
|
rem Build SDL, 2.0.6 is the oldest release that has SDL_HINT_TOUCH_MOUSE_EVENTS
|
|
|
|
|
rem https://github.com/libsdl-org/SDL/commit/56cab6d45280fbb4b645083eceeaa8f474c0aac3
|
|
|
|
|
appveyor DownloadFile https://www.libsdl.org/release/SDL2-2.0.6.zip || exit /b
|
|
|
|
|
7z x SDL2-2.0.6.zip || exit /b
|
|
|
|
|
ren SDL2-2.0.6 SDL || exit /b
|
|
|
|
|
cd SDL/VisualC-WinRT/UWP_VS2015 || exit/b
|
|
|
|
|
msbuild /p:Configuration=Release || exit /b
|
|
|
|
|
cd ..\..\..
|
|
|
|
|
|
|
|
|
|
git clone --depth 1 https://github.com/mosra/corrade.git || exit /b
|
|
|
|
|
cd corrade || exit /b
|
|
|
|
|
|
|
|
|
|
rem Build native corrade-rc
|
|
|
|
|
mkdir build && cd build || exit /b
|
|
|
|
|
cmake .. ^
|
|
|
|
|
-DCMAKE_BUILD_TYPE=Release ^
|
|
|
|
|
-DCMAKE_INSTALL_PREFIX=%APPVEYOR_BUILD_FOLDER%/deps-native ^
|
|
|
|
|
-DCORRADE_WITH_INTERCONNECT=OFF ^
|
|
|
|
|
-DCORRADE_WITH_PLUGINMANAGER=OFF ^
|
|
|
|
|
-DCORRADE_WITH_TESTSUITE=OFF ^
|
|
|
|
|
-DCORRADE_WITH_UTILITY=OFF ^
|
|
|
|
|
-G Ninja || exit /b
|
|
|
|
|
cmake --build . --target install || exit /b
|
|
|
|
|
cd .. || exit /b
|
|
|
|
|
|
|
|
|
|
rem Crosscompile Corrade
|
|
|
|
|
mkdir build-rt && cd build-rt || exit /b
|
|
|
|
|
cmake .. ^
|
|
|
|
|
-DCMAKE_SYSTEM_NAME=WindowsStore ^
|
|
|
|
|
-DCMAKE_SYSTEM_VERSION=10.0 ^
|
|
|
|
|
-DCMAKE_INSTALL_PREFIX=%APPVEYOR_BUILD_FOLDER%/deps ^
|
|
|
|
|
-DCORRADE_WITH_INTERCONNECT=OFF ^
|
|
|
|
|
-DCORRADE_BUILD_STATIC=ON ^
|
|
|
|
|
-G "%GENERATOR%" -A x64 || exit /b
|
|
|
|
|
cmake --build . --config Release --target install -- /m /v:m || exit /b
|
|
|
|
|
cd .. || exit /b
|
|
|
|
|
|
|
|
|
|
cd .. || exit /b
|
|
|
|
|
|
|
|
|
|
rem Crosscompile. No tests because they take ages to build, each executable is
|
|
|
|
|
rem a msix file, and they can't be reasonably run either. F this platform.
|
|
|
|
|
mkdir build-rt && cd build-rt || exit /b
|
|
|
|
|
cmake .. ^
|
|
|
|
|
-DCMAKE_SYSTEM_NAME=WindowsStore ^
|
|
|
|
|
-DCMAKE_SYSTEM_VERSION=10.0 ^
|
|
|
|
|
-DCMAKE_PREFIX_PATH=%APPVEYOR_BUILD_FOLDER%/deps ^
|
|
|
|
|
-DSDL2_LIBRARY_RELEASE=%APPVEYOR_BUILD_FOLDER%/SDL/VisualC-WinRT/UWP_VS2015/X64/Release/SDL-UWP/SDL2.lib ^
|
|
|
|
|
-DSDL2_INCLUDE_DIR=%APPVEYOR_BUILD_FOLDER%/SDL/include ^
|
|
|
|
|
-DMAGNUM_WITH_AUDIO=OFF ^
|
|
|
|
|
-DMAGNUM_WITH_SDL2APPLICATION=ON ^
|
|
|
|
|
-DMAGNUM_WITH_ANYAUDIOIMPORTER=OFF ^
|
|
|
|
|
-DMAGNUM_WITH_ANYIMAGECONVERTER=ON ^
|
|
|
|
|
-DMAGNUM_WITH_ANYIMAGEIMPORTER=ON ^
|
|
|
|
|
-DMAGNUM_WITH_ANYSCENECONVERTER=ON ^
|
|
|
|
|
-DMAGNUM_WITH_ANYSCENEIMPORTER=ON ^
|
|
|
|
|
-DMAGNUM_WITH_ANYSHADERCONVERTER=ON ^
|
|
|
|
|
-DMAGNUM_WITH_MAGNUMFONT=ON ^
|
|
|
|
|
-DMAGNUM_WITH_MAGNUMFONTCONVERTER=ON ^
|
|
|
|
|
-DMAGNUM_WITH_OBJIMPORTER=ON ^
|
|
|
|
|
-DMAGNUM_WITH_TGAIMAGECONVERTER=ON ^
|
|
|
|
|
-DMAGNUM_WITH_TGAIMPORTER=ON ^
|
|
|
|
|
-DMAGNUM_WITH_WAVAUDIOIMPORTER=OFF ^
|
|
|
|
|
-DMAGNUM_TARGET_GLES2=%TARGET_GLES2% ^
|
|
|
|
|
-DMAGNUM_BUILD_STATIC=ON ^
|
|
|
|
|
-G "%GENERATOR%" -A x64 || exit /b
|
|
|
|
|
cmake --build . --config Release -- /m /v:m || exit /b
|
|
|
|
|
|
|
|
|
|
rem Test install
|
|
|
|
|
cmake --build . --config Release --target install || exit /b
|