|
|
@ -36,38 +36,16 @@ conf.set('HAVE_KHRPLATFORM_H', cc.has_header('KHR/khrplatform.h', required: fals |
|
|
|
# support on Linux and Unix |
|
|
|
# support on Linux and Unix |
|
|
|
enable_glx = get_option('glx') |
|
|
|
enable_glx = get_option('glx') |
|
|
|
if enable_glx == 'auto' |
|
|
|
if enable_glx == 'auto' |
|
|
|
if host_system == 'windows' |
|
|
|
build_glx = not ['windows', 'darwin', 'android', 'haiku'].contains(host_system) |
|
|
|
build_glx = false |
|
|
|
else |
|
|
|
elif host_system == 'darwin' |
|
|
|
build_glx = enable_glx == 'yes' |
|
|
|
build_glx = false |
|
|
|
|
|
|
|
elif host_system == 'android' |
|
|
|
|
|
|
|
build_glx = false |
|
|
|
|
|
|
|
elif host_system == 'haiku' |
|
|
|
|
|
|
|
build_glx = false |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
build_glx = true |
|
|
|
|
|
|
|
endif |
|
|
|
|
|
|
|
elif enable_glx == 'yes' |
|
|
|
|
|
|
|
build_glx = true |
|
|
|
|
|
|
|
elif enable_glx == 'no' |
|
|
|
|
|
|
|
build_glx = false |
|
|
|
|
|
|
|
endif |
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
enable_egl = get_option('egl') |
|
|
|
enable_egl = get_option('egl') |
|
|
|
if enable_egl == 'auto' |
|
|
|
if enable_egl == 'auto' |
|
|
|
if host_system == 'windows' |
|
|
|
build_egl = not ['windows', 'darwin'].contains(host_system) |
|
|
|
build_egl = false |
|
|
|
else |
|
|
|
elif host_system == 'darwin' |
|
|
|
build_egl = enable_egl == 'yes' |
|
|
|
build_egl = false |
|
|
|
|
|
|
|
elif host_system == 'android' |
|
|
|
|
|
|
|
build_egl = true |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
build_egl = true |
|
|
|
|
|
|
|
endif |
|
|
|
|
|
|
|
elif enable_egl == 'yes' |
|
|
|
|
|
|
|
build_egl = true |
|
|
|
|
|
|
|
elif enable_egl == 'no' |
|
|
|
|
|
|
|
build_egl = false |
|
|
|
|
|
|
|
endif |
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
enable_x11 = get_option('x11') |
|
|
|
enable_x11 = get_option('x11') |
|
|
|