mirror of https://github.com/mosra/magnum.git
4 changed files with 190 additions and 47 deletions
@ -0,0 +1,44 @@ |
|||||||
|
rem Workaround for CMake not wanting sh.exe on PATH for MinGW. AARGH. |
||||||
|
set PATH=%PATH:C:\Program Files\Git\usr\bin;=% |
||||||
|
set PATH=C:\tools\mingw64\bin;%APPVEYOR_BUILD_FOLDER%/openal/bin/Win64;%APPVEYOR_BUILD_FOLDER%\deps\bin;%PATH% |
||||||
|
|
||||||
|
rem Build Corrade. Could not get Ninja to work, meh. |
||||||
|
git clone --depth 1 git://github.com/mosra/corrade.git || exit /b |
||||||
|
cd corrade || exit /b |
||||||
|
mkdir build && cd build || exit /b |
||||||
|
cmake .. ^ |
||||||
|
-DCMAKE_BUILD_TYPE=Release ^ |
||||||
|
-DCMAKE_INSTALL_PREFIX=%APPVEYOR_BUILD_FOLDER%/deps ^ |
||||||
|
-DWITH_INTERCONNECT=OFF ^ |
||||||
|
-G "MinGW Makefiles" || exit /b |
||||||
|
cmake --build . -- -j || exit /b |
||||||
|
cmake --build . --target install -- -j || exit /b |
||||||
|
cd .. && cd .. |
||||||
|
|
||||||
|
rem Build |
||||||
|
mkdir build && cd build || exit /b |
||||||
|
cmake .. ^ |
||||||
|
-DCMAKE_BUILD_TYPE=Release ^ |
||||||
|
-DCMAKE_INSTALL_PREFIX=%APPVEYOR_BUILD_FOLDER%/deps ^ |
||||||
|
-DCMAKE_PREFIX_PATH="%APPVEYOR_BUILD_FOLDER%/SDL;%APPVEYOR_BUILD_FOLDER%/openal" ^ |
||||||
|
-DWITH_AUDIO=ON ^ |
||||||
|
-DWITH_SDL2APPLICATION=ON ^ |
||||||
|
-DWITH_WINDOWLESSWGLAPPLICATION=ON ^ |
||||||
|
-DWITH_WGLCONTEXT=ON ^ |
||||||
|
-DWITH_MAGNUMFONT=ON ^ |
||||||
|
-DWITH_MAGNUMFONTCONVERTER=ON ^ |
||||||
|
-DWITH_OBJIMPORTER=ON ^ |
||||||
|
-DWITH_TGAIMAGECONVERTER=ON ^ |
||||||
|
-DWITH_TGAIMPORTER=ON ^ |
||||||
|
-DWITH_WAVAUDIOIMPORTER=ON ^ |
||||||
|
-DWITH_DISTANCEFIELDCONVERTER=ON ^ |
||||||
|
-DWITH_FONTCONVERTER=ON ^ |
||||||
|
-DWITH_MAGNUMINFO=ON ^ |
||||||
|
-DBUILD_TESTS=ON ^ |
||||||
|
-DBUILD_GL_TESTS=ON ^ |
||||||
|
-G "MinGW Makefiles" || exit /b |
||||||
|
cmake --build . || exit /b |
||||||
|
cmake --build . --target install || exit /b |
||||||
|
|
||||||
|
rem Test |
||||||
|
ctest -V -E GLTest || exit /b |
||||||
@ -0,0 +1,43 @@ |
|||||||
|
call "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/vcvarsall.bat" || exit /b |
||||||
|
set PATH=%APPVEYOR_BUILD_FOLDER%/openal/bin/Win32;%APPVEYOR_BUILD_FOLDER%\deps\bin;%PATH% |
||||||
|
|
||||||
|
rem Build Corrade |
||||||
|
git clone --depth 1 git://github.com/mosra/corrade.git || exit /b |
||||||
|
cd corrade || exit /b |
||||||
|
mkdir build && cd build || exit /b |
||||||
|
cmake .. ^ |
||||||
|
-DCMAKE_BUILD_TYPE=Release ^ |
||||||
|
-DCMAKE_INSTALL_PREFIX=%APPVEYOR_BUILD_FOLDER%/deps ^ |
||||||
|
-DWITH_INTERCONNECT=OFF ^ |
||||||
|
-G Ninja || exit /b |
||||||
|
cmake --build . || exit /b |
||||||
|
cmake --build . --target install || exit /b |
||||||
|
cd .. && cd .. |
||||||
|
|
||||||
|
rem Build |
||||||
|
mkdir build && cd build || exit /b |
||||||
|
cmake .. ^ |
||||||
|
-DCMAKE_BUILD_TYPE=Release ^ |
||||||
|
-DCMAKE_INSTALL_PREFIX=%APPVEYOR_BUILD_FOLDER%/deps ^ |
||||||
|
-DCMAKE_PREFIX_PATH="%APPVEYOR_BUILD_FOLDER%/SDL;%APPVEYOR_BUILD_FOLDER%/openal" ^ |
||||||
|
-DWITH_AUDIO=ON ^ |
||||||
|
-DWITH_SDL2APPLICATION=ON ^ |
||||||
|
-DWITH_WINDOWLESSWGLAPPLICATION=ON ^ |
||||||
|
-DWITH_WGLCONTEXT=ON ^ |
||||||
|
-DWITH_MAGNUMFONT=ON ^ |
||||||
|
-DWITH_MAGNUMFONTCONVERTER=ON ^ |
||||||
|
-DWITH_OBJIMPORTER=ON ^ |
||||||
|
-DWITH_TGAIMAGECONVERTER=ON ^ |
||||||
|
-DWITH_TGAIMPORTER=ON ^ |
||||||
|
-DWITH_WAVAUDIOIMPORTER=ON ^ |
||||||
|
-DWITH_DISTANCEFIELDCONVERTER=ON ^ |
||||||
|
-DWITH_FONTCONVERTER=ON ^ |
||||||
|
-DWITH_MAGNUMINFO=ON ^ |
||||||
|
-DBUILD_TESTS=ON ^ |
||||||
|
-DBUILD_GL_TESTS=ON ^ |
||||||
|
-G Ninja || exit /b |
||||||
|
cmake --build . || exit /b |
||||||
|
cmake --build . --target install || exit /b |
||||||
|
|
||||||
|
rem Test |
||||||
|
ctest -V -E GLTest || exit /b |
||||||
@ -0,0 +1,76 @@ |
|||||||
|
call "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/vcvarsall.bat" || exit /b |
||||||
|
set PATH=%APPVEYOR_BUILD_FOLDER%\deps-native\bin;%PATH% |
||||||
|
|
||||||
|
rem Build ANGLE |
||||||
|
git clone --depth 1 git://github.com/MSOpenTech/angle.git || exit /b |
||||||
|
cd angle\winrt\10\src || exit /b |
||||||
|
msbuild angle.sln /p:Configuration=Release || exit /b |
||||||
|
cd ..\..\..\.. || exit /b |
||||||
|
|
||||||
|
rem Build SDL |
||||||
|
appveyor DownloadFile https://www.libsdl.org/release/SDL2-2.0.4.zip || exit /b |
||||||
|
7z x SDL2-2.0.4.zip || exit /b |
||||||
|
ren SDL2-2.0.4 SDL || exit /b |
||||||
|
cd SDL/VisualC-WinRT/UWP_VS2015 || exit/b |
||||||
|
msbuild /p:Configuration=Release || exit /b |
||||||
|
cd ..\..\.. |
||||||
|
|
||||||
|
git clone --depth 1 git://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 ^ |
||||||
|
-DWITH_INTERCONNECT=OFF ^ |
||||||
|
-DWITH_PLUGINMANAGER=OFF ^ |
||||||
|
-DWITH_TESTSUITE=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 ^ |
||||||
|
-DCORRADE_RC_EXECUTABLE=%APPVEYOR_BUILD_FOLDER%/deps-native/bin/corrade-rc.exe ^ |
||||||
|
-DCMAKE_INSTALL_PREFIX=%APPVEYOR_BUILD_FOLDER%/deps ^ |
||||||
|
-DWITH_INTERCONNECT=OFF ^ |
||||||
|
-DBUILD_STATIC=ON ^ |
||||||
|
-G "Visual Studio 14 2015" || exit /b |
||||||
|
cmake --build . --config Release --target install -- /m /v:m || exit /b |
||||||
|
cd .. || exit /b |
||||||
|
|
||||||
|
cd .. || exit /b |
||||||
|
|
||||||
|
rem Crosscompile |
||||||
|
mkdir build-rt && cd build-rt || exit /b |
||||||
|
cmake .. ^ |
||||||
|
-DCMAKE_SYSTEM_NAME=WindowsStore ^ |
||||||
|
-DCMAKE_SYSTEM_VERSION=10.0 ^ |
||||||
|
-DCORRADE_RC_EXECUTABLE=%APPVEYOR_BUILD_FOLDER%/deps-native/bin/corrade-rc.exe ^ |
||||||
|
-DCMAKE_PREFIX_PATH=%APPVEYOR_BUILD_FOLDER%/deps ^ |
||||||
|
-DEGL_LIBRARY=%APPVEYOR_BUILD_FOLDER%/angle/winrt/10/src/Release_Win32/lib/libEGL.lib ^ |
||||||
|
-DEGL_INCLUDE_DIR=%APPVEYOR_BUILD_FOLDER%/angle/include ^ |
||||||
|
-DOPENGLES2_LIBRARY=%APPVEYOR_BUILD_FOLDER%/angle/winrt/10/src/Release_Win32/lib/libGLESv2.lib ^ |
||||||
|
-DOPENGLES2_INCLUDE_DIR=%APPVEYOR_BUILD_FOLDER%/angle/include ^ |
||||||
|
-DOPENGLES3_LIBRARY=%APPVEYOR_BUILD_FOLDER%/angle/winrt/10/src/Release_Win32/lib/libGLESv2.lib ^ |
||||||
|
-DOPENGLES3_INCLUDE_DIR=%APPVEYOR_BUILD_FOLDER%/angle/include ^ |
||||||
|
-DSDL2_LIBRARY=%APPVEYOR_BUILD_FOLDER%/SDL/VisualC-WinRT/UWP_VS2015/Release/SDL-UWP/SDL2.lib ^ |
||||||
|
-DSDL2_INCLUDE_DIR=%APPVEYOR_BUILD_FOLDER%/SDL/include ^ |
||||||
|
-DWITH_AUDIO=OFF ^ |
||||||
|
-DWITH_SDL2APPLICATION=ON ^ |
||||||
|
-DWITH_MAGNUMFONT=ON ^ |
||||||
|
-DWITH_MAGNUMFONTCONVERTER=ON ^ |
||||||
|
-DWITH_OBJIMPORTER=ON ^ |
||||||
|
-DWITH_TGAIMAGECONVERTER=ON ^ |
||||||
|
-DWITH_TGAIMPORTER=ON ^ |
||||||
|
-DWITH_WAVAUDIOIMPORTER=OFF ^ |
||||||
|
-DTARGET_GLES2=%TARGET_GLES2% ^ |
||||||
|
-DBUILD_TESTS=ON ^ |
||||||
|
-DBUILD_STATIC=ON ^ |
||||||
|
-DBUILD_PLUGINS_STATIC=ON ^ |
||||||
|
-G "Visual Studio 14 2015" || exit /b |
||||||
|
cmake --build . --config Release -- /m /v:m || exit /b |
||||||
Loading…
Reference in new issue