diff options
author | Emil Velikov <[email protected]> | 2018-06-28 14:42:08 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2018-08-07 17:23:17 +0100 |
commit | 2f1d9e6cb842e3cff8ae7b73f669ea8d6c411ac8 (patch) | |
tree | 5321a5b535f7abaa050cb24588ee8bb69e32caac /meson.build | |
parent | c077b74ee8187042ad3ad8001d94074e73e3e9ea (diff) |
meson: stop exporting internal wayland details
With version v1.15 the "code" option was deprecated in favour of
"private-code" or "public-code".
Before the interface symbol generated was exported (which is a bad idea
since it's internal implementation detail) and others may misuse it.
That was the case with libva approx. 1 year ago. Since then libva was
fixed, so we can finally hide it by using "private-code"
Inspired by similar xserver patch by Adam Jackson.
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Dylan Baker <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meson.build b/meson.build index a155905312d..661cbba9b43 100644 --- a/meson.build +++ b/meson.build @@ -1277,6 +1277,11 @@ endif if with_platform_wayland dep_wl_scanner = dependency('wayland-scanner', native: true) prog_wl_scanner = find_program(dep_wl_scanner.get_pkgconfig_variable('wayland_scanner')) + if dep_wl_scanner.version().version_compare('>= 1.15') + wl_scanner_arg = 'private-code' + else + wl_scanner_arg = 'code' + endif dep_wl_protocols = dependency('wayland-protocols', version : '>= 1.8') dep_wayland_client = dependency('wayland-client', version : '>=1.11') dep_wayland_server = dependency('wayland-server', version : '>=1.11') @@ -1292,6 +1297,7 @@ if with_platform_wayland pre_args += ['-DHAVE_WAYLAND_PLATFORM', '-DWL_HIDE_DEPRECATED'] else prog_wl_scanner = [] + wl_scanner_arg = '' dep_wl_protocols = null_dep dep_wayland_client = null_dep dep_wayland_server = null_dep |