Skip to content

Commit 9f62cb2

Browse files
evelikov-workdvrogozh
authored andcommitted
meson: produce summary() when 0.53.0 is present
Use the summary() feature, similar to the autotools build. This was introduced with 0.53.0 so guard on that version. We don't want to bump the required version, even though 0.53.0 is available on Debian old-stable (buster-backports), Ubuntu 20.04 (focal) and newer distros. v2: Don't bump the required version Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
1 parent 4af6a66 commit 9f62cb2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

meson.build

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ libva_dep = dependency('libva', version: '>= 1.1.0')
1717
libva_utils_flags = [ '-Wno-unused-parameter',
1818
'-Wno-sign-compare' ]
1919

20+
backends = ''
21+
2022
# DRM
2123
use_drm = false
2224
if get_option('drm') != 'false'
@@ -32,6 +34,7 @@ if get_option('drm') != 'false'
3234
endif
3335
endforeach
3436
if use_drm
37+
backends += ' drm'
3538
libva_utils_flags += [ '-DHAVE_VA_DRM=1' ]
3639
endif
3740
endif
@@ -51,6 +54,7 @@ if get_option('x11') != 'false'
5154
endif
5255
endforeach
5356
if use_x11
57+
backends += ' x11'
5458
libva_utils_flags += [ '-DHAVE_VA_X11=1' ]
5559
endif
5660
endif
@@ -70,6 +74,7 @@ if get_option('wayland') != 'false'
7074
endif
7175
endforeach
7276
if use_wayland
77+
backends += ' wayland'
7378
libva_utils_flags += [ '-DHAVE_VA_WAYLAND=1' ]
7479
endif
7580
endif
@@ -89,3 +94,12 @@ subdir('vendor/intel/sfcsample')
8994
if get_option('tests')
9095
subdir('test')
9196
endif
97+
98+
if meson.version().version_compare('>= 0.53')
99+
summary({
100+
'Libva VA-API version' : libva_dep.version(),
101+
'Installation prefix' : get_option('prefix'),
102+
'Extra window systems' : backends,
103+
'Enable Unit-tests': get_option('tests')
104+
}, bool_yn: true)
105+
endif

0 commit comments

Comments
 (0)