diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2017-06-06 10:37:09 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2017-06-06 10:37:09 +0100 |
commit | 9c8b65a2338d6fe94293a50cf84caea157215322 (patch) | |
tree | 2f0a8aa9dcfc7113364938dc971a4596ab7d9feb /meson.build | |
parent | 64e9428c88f8f246aa6a340081acb053b61d01cf (diff) | |
parent | 0511fc56e7017209ad18d16551ccaad05de9486c (diff) | |
download | libepoxy-9c8b65a2338d6fe94293a50cf84caea157215322.tar.gz |
Merge branch 'make-egl-optional' of https://github.com/tpetazzoni/libepoxy into tpetazzoni-make-egl-optional
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/meson.build b/meson.build index 77b9d06..ab4c05e 100644 --- a/meson.build +++ b/meson.build @@ -53,26 +53,41 @@ elif enable_glx == 'no' build_glx = false endif +enable_egl = get_option('enable-egl') +if enable_egl == 'auto' + if host_system == 'windows' + build_egl = false + elif host_system == 'darwin' + build_egl = false + elif host_system == 'android' + build_egl = false + else + build_egl = true + endif +elif enable_egl == 'yes' + build_egl = true +elif enable_egl == 'no' + build_egl = false +endif + # The remaining platform specific API for GL/GLES are enabled # depending on the platform we're building for if host_system == 'windows' - build_egl = false build_apple = false build_wgl = true has_znow = true elif host_system == 'darwin' - build_egl = false build_apple = true build_wgl = false has_znow = false else - build_egl = true build_apple = false build_wgl = false has_znow = true endif conf.set10('ENABLE_GLX', build_glx) +conf.set10('ENABLE_EGL', build_egl) # Compiler flags, taken from the Xorg macros if cc.get_id() == 'msvc' |