prevent sdl2 from building if not building for this host

This commit is contained in:
Ryan Pessa 2014-11-18 12:03:24 -06:00
parent 1393175ed0
commit 5b360a0d9a
1 changed files with 5 additions and 4 deletions

View File

@ -218,15 +218,16 @@ if platform == 'ios':
c_options['use_ios'] = True c_options['use_ios'] = True
c_options['use_sdl'] = True c_options['use_sdl'] = True
# detect gstreamer, only on desktop # detect gstreamer/sdl2, only on desktop
sdl2_flags = {}
if platform not in ('ios', 'android'): if platform not in ('ios', 'android'):
gst_flags = pkgconfig('gstreamer-1.0') gst_flags = pkgconfig('gstreamer-1.0')
if 'libraries' in gst_flags: if 'libraries' in gst_flags:
c_options['use_gstreamer'] = True c_options['use_gstreamer'] = True
sdl2_flags = pkgconfig('sdl2', 'SDL2_ttf', 'SDL2_image', 'SDL2_mixer') sdl2_flags = pkgconfig('sdl2', 'SDL2_ttf', 'SDL2_image', 'SDL2_mixer')
if 'libraries' in sdl2_flags: if 'libraries' in sdl2_flags:
c_options['use_sdl2'] = True c_options['use_sdl2'] = True
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------