summaryrefslogtreecommitdiff
path: root/src/egl/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'src/egl/meson.build')
-rw-r--r--src/egl/meson.build5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/egl/meson.build b/src/egl/meson.build
index 6420f85fb74..f1d77b64cc5 100644
--- a/src/egl/meson.build
+++ b/src/egl/meson.build
@@ -23,6 +23,7 @@ inc_egl_dri2 = include_directories('drivers/dri2')
c_args_for_egl = [asan_c_args]
cpp_args_for_egl = []
+override_for_egl = []
link_for_egl = []
deps_for_egl = []
incs_for_egl = [inc_include, inc_src, inc_egl]
@@ -131,7 +132,8 @@ if with_dri2
if dep_android_mapper4.found()
files_egl += files('drivers/dri2/platform_android_mapper.cpp')
c_args_for_egl += '-DUSE_IMAPPER4_METADATA_API'
- cpp_args_for_egl += ['-std=c++17', '-DUSE_IMAPPER4_METADATA_API']
+ cpp_args_for_egl += '-DUSE_IMAPPER4_METADATA_API'
+ override_for_egl += 'cpp_std=c++17'
endif
endif
elif with_platform_haiku
@@ -194,6 +196,7 @@ libegl = shared_library(
'-D_EGL_NATIVE_PLATFORM=_EGL_PLATFORM_@0@'.format(egl_native_platform.to_upper()),
],
cpp_args : [cpp_args_for_egl],
+ override_options : override_for_egl,
gnu_symbol_visibility : 'hidden',
include_directories : incs_for_egl,
link_with : [link_for_egl, libglapi],