setup.py: normalize c_options for x11 and mesagl. closes #1074

This commit is contained in:
Mathieu Virbel 2013-03-31 12:26:23 +02:00
parent e36637d860
commit 7ce2cdf590
1 changed files with 3 additions and 2 deletions

View File

@ -19,7 +19,8 @@ c_options = {
'use_glew': False,
'use_sdl': False,
'use_ios': False,
'use_mesagl': 'USE_MESAGL' in environ}
'use_mesagl': False,
'use_x11': False}
# now check if environ is changing the default values
for key in c_options.keys():
@ -360,7 +361,7 @@ if platform in ('darwin', 'ios'):
sources['core/image/img_imageio.pyx'] = merge(
base_flags, osx_flags)
if 'WITH_X11' in environ:
if c_options['use_x11']:
sources['core/window/window_x11.pyx'] = merge(
base_flags, gl_flags, graphics_flags, {
'depends': [join(dirname(__file__),