mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-05 20:05:59 -04:00
Only install depends when they are used
This commit is contained in:
parent
5e1bb67c4d
commit
fcf95e21da
@ -14,7 +14,7 @@ matrix:
|
|||||||
env: CXXSTD=c++1y BUILD_NOOPTLIBS=yes
|
env: CXXSTD=c++1y BUILD_NOOPTLIBS=yes
|
||||||
before_install:
|
before_install:
|
||||||
- sudo apt-get update -qq
|
- sudo apt-get update -qq
|
||||||
- sudo apt-get install -qq cmake libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev libsdl2-mixer-dev cppcheck doxygen pulseaudio
|
- sudo apt-get install -qq cmake libsdl2-dev cppcheck doxygen pulseaudio
|
||||||
- sudo sed -i -e '/using ::gets/ d' /usr/include/c++/4.8/cstdio # build failure with clang/c++1y
|
- sudo sed -i -e '/using ::gets/ d' /usr/include/c++/4.8/cstdio # build failure with clang/c++1y
|
||||||
- |-
|
- |-
|
||||||
if [ -n "${BUILD_COVERAGE}" ]; then
|
if [ -n "${BUILD_COVERAGE}" ]; then
|
||||||
@ -23,6 +23,8 @@ before_install:
|
|||||||
fi
|
fi
|
||||||
if [ -n "${BUILD_NOOPTLIBS}" ]; then
|
if [ -n "${BUILD_NOOPTLIBS}" ]; then
|
||||||
export CMAKE_EXTRA_ARGS="${CMAKE_EXTRA_ARGS} -DSDL2PP_WITH_IMAGE=NO -DSDL2PP_WITH_MIXER=NO -DSDL2PP_WITH_TTF=NO"
|
export CMAKE_EXTRA_ARGS="${CMAKE_EXTRA_ARGS} -DSDL2PP_WITH_IMAGE=NO -DSDL2PP_WITH_MIXER=NO -DSDL2PP_WITH_TTF=NO"
|
||||||
|
else
|
||||||
|
sudo apt-get install -qq libsdl2-image-dev libsdl2-ttf-dev libsdl2-mixer-dev
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# evironment for live tests
|
# evironment for live tests
|
||||||
|
Loading…
x
Reference in New Issue
Block a user