diff --git a/meson.build b/meson.build index 9add735..3687791 100644 --- a/meson.build +++ b/meson.build @@ -239,6 +239,12 @@ foreach name, values : map is_opencl_icd = opencl_icd and name == 'OpenCL' is_vulkan_icd = name == 'vulkan' + if name == 'wayland-egl' + if not get_option('wayland-egl') + continue + endif + endif + if not cc.has_function(symbol, dependencies : mali) continue endif diff --git a/meson_options.txt b/meson_options.txt index 5ef9459..e7570e0 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -14,6 +14,8 @@ option('opencl-icd', type: 'boolean', value: true, description: 'OpenCL Installable Client Driver (ICD) (default: true)') option('khr-header', type: 'boolean', value: false, description: 'Install KHR header (default: false)') +option('wayland-egl', type: 'boolean', value: true, + description: 'Install wayland egl wrapper when needed (default: true)') option('vendor-package', type: 'boolean', value: false, description: 'Install as vendor package (default: false)') option('hooks', type: 'boolean', value: true,