mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-08 21:36:02 -04:00
Enable tests with MSVC
This commit is contained in:
parent
736e7d5877
commit
b59b1a24c7
@ -3,13 +3,7 @@ os: Visual Studio 2015
|
|||||||
clone_depth: 1
|
clone_depth: 1
|
||||||
environment:
|
environment:
|
||||||
matrix:
|
matrix:
|
||||||
# Note that we can't build any executables with MSVC for now because SDL2 depends
|
- CMAKE_ARGS: -DSDL2PP_ENABLE_LIVE_TESTS=OFF -G "Visual Studio 14 2015"
|
||||||
# are built for VC 2012, and we build with VC 2015 (old VC doesn't support C++11),
|
|
||||||
# and there's binary incompatibility which shows itself when linking an executable,
|
|
||||||
# I couldn't resolve, see [1] for more info
|
|
||||||
#
|
|
||||||
# [1] http://stackoverflow.com/questions/30412951/unresolved-external-symbol-imp-fprintf-and-imp-iob-func-sdl2
|
|
||||||
- CMAKE_ARGS: -DSDL2PP_WITH_TESTS=OFF -DSDL2PP_WITH_EXAMPLES=OFF -G "Visual Studio 14 2015"
|
|
||||||
PREFIX: c:\usr_msvc
|
PREFIX: c:\usr_msvc
|
||||||
MSVC:
|
MSVC:
|
||||||
MINGW32: rem
|
MINGW32: rem
|
||||||
@ -96,9 +90,9 @@ build_script:
|
|||||||
%MINGW% set PATH=c:\mingw\bin;%Path%
|
%MINGW% set PATH=c:\mingw\bin;%Path%
|
||||||
cd %APPVEYOR_BUILD_FOLDER%
|
cd %APPVEYOR_BUILD_FOLDER%
|
||||||
echo Running "cmake -DCMAKE_PREFIX_PATH=%PREFIX% %CMAKE_ARGS%"
|
echo Running "cmake -DCMAKE_PREFIX_PATH=%PREFIX% %CMAKE_ARGS%"
|
||||||
cmake -DCMAKE_PREFIX_PATH=%PREFIX% %CMAKE_ARGS%
|
cmake -DCMAKE_PREFIX_PATH=%PREFIX% %CMAKE_ARGS% .
|
||||||
%MSVC% msbuild "libSDL2pp.sln" /verbosity:normal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
cmake --build .
|
||||||
%MINGW32% mingw32-make
|
ctest
|
||||||
%MINGW32% type FindSDL2PP.cmake
|
%MINGW32% type FindSDL2PP.cmake
|
||||||
%MINGW32% type sdl2pp.pc
|
%MINGW32% type sdl2pp.pc
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user