setup.py: don't activate automatically SDL2 until we have a mechanism that can load safely SDL2 libraries without anything related to SDL1.

This commit is contained in:
Mathieu Virbel 2014-12-04 16:27:29 +01:00
parent eee3c2f9c8
commit 73cecfea2e
1 changed files with 5 additions and 3 deletions

View File

@ -225,9 +225,11 @@ if platform not in ('ios', 'android'):
if 'libraries' in gst_flags:
c_options['use_gstreamer'] = True
sdl2_flags = pkgconfig('sdl2', 'SDL2_ttf', 'SDL2_image', 'SDL2_mixer')
if 'libraries' in sdl2_flags:
c_options['use_sdl2'] = True
# XXX deactivated, until we are able to have sdl2 without using anything
# related to sdl1. Both must not be used at the same time.
# sdl2_flags = pkgconfig('sdl2', 'SDL2_ttf', 'SDL2_image', 'SDL2_mixer')
# if 'libraries' in sdl2_flags:
# c_options['use_sdl2'] = True
# -----------------------------------------------------------------------------