mirror of https://github.com/mosra/magnum.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
2.0 KiB
62 lines
2.0 KiB
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:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw64\bin;%APPVEYOR_BUILD_FOLDER%/openal/bin/Win64;%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_CXX_FLAGS="--coverage" ^ |
|
-DCMAKE_BUILD_TYPE=Debug ^ |
|
-DCMAKE_INSTALL_PREFIX=%APPVEYOR_BUILD_FOLDER%/deps ^ |
|
-DWITH_INTERCONNECT=OFF ^ |
|
-DUTILITY_USE_ANSI_COLORS=ON ^ |
|
-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_CXX_FLAGS="--coverage" ^ |
|
-DCMAKE_BUILD_TYPE=Debug ^ |
|
-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_OPENGLTESTER=ON ^ |
|
-DWITH_ANYAUDIOIMPORTER=ON ^ |
|
-DWITH_ANYIMAGECONVERTER=ON ^ |
|
-DWITH_ANYIMAGEIMPORTER=ON ^ |
|
-DWITH_ANYSCENEIMPORTER=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_IMAGECONVERTER=ON ^ |
|
-DWITH_GL_INFO=ON ^ |
|
-DWITH_AL_INFO=ON ^ |
|
-DBUILD_TESTS=ON ^ |
|
-DBUILD_GL_TESTS=ON ^ |
|
-G Ninja || exit /b |
|
cmake --build . || exit /b |
|
|
|
rem Test |
|
set CORRADE_TEST_COLOR=ON |
|
ctest -V -E GLTest || exit /b |
|
|
|
rem Test install, after running the tests as for them it shouldn't be needed |
|
cmake --build . --target install || exit /b |
|
|
|
rem Coverage upload |
|
set PATH=C:\msys64\usr\bin;%PATH% |
|
bash %APPVEYOR_BUILD_FOLDER%\package\ci\appveyor-lcov.sh || exit /b |
|
codecov -f coverage.info -X gcov
|
|
|