Skip to content

Commit

Permalink
-Fix: --with-sdl --without-sdl now work as intended
Browse files Browse the repository at this point in the history
fixes changes introduced in 77e7a73

also disable temporary libsdl2-dev until
travis-ci/apt-source-safelist#45 is merged
  • Loading branch information
miniupnp committed Nov 7, 2015
1 parent a7cbef3 commit e7507d2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Expand Up @@ -9,7 +9,10 @@ addons:
packages:
# packages list: https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise
- libsdl1.2-dev
- libsdl2-dev
# temporary disable sdl2 : see
# https://github.com/travis-ci/apt-source-whitelist/issues/45
# https://github.com/travis-ci/apt-source-whitelist/pull/131
# - libsdl2-dev

# container-based builds
sudo: false
Expand Down
10 changes: 5 additions & 5 deletions config.lib
Expand Up @@ -35,7 +35,7 @@ set_default() {
enable_strip="0"
enable_universal="0"
with_osx_sysroot="1"
with_sdl="0"
with_sdl="1"
with_sdl2="1"
with_asound="1"
enable_builtin_depend="1"
Expand Down Expand Up @@ -1446,14 +1446,14 @@ detect_sdl2() {
fi

sdl2_config=""
# SDL2 not found, set SDL to autodetect
if [ "$with_sdl" = "0" ] ; then
with_sdl="1"
fi
return 0
fi

log 1 "checking SDL2... found"
# SDL2 found, disabling SDL
if [ "$with_sdl" = "1" ] ; then
with_sdl="0"
fi
}

detect_osx_sdk() {
Expand Down

0 comments on commit e7507d2

Please sign in to comment.