mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 09:00:42 -05:00
meson: Make libdisplay_info a feature option
Some features depend on libdisplay-info, and making it a feature option should increase its visibility and adoption. This makes it required when building with "-Dauto_features=enabled", unless explicitly disabled with "-Dlibdisplay_info=disabled". If "-Dauto_features=enabled" is not set, everything remains the same. In the future, the libdisplay_info option can be made "enabled" by default so that it would always be required unless explicitly disabled. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3582>
This commit is contained in:
parent
e31c47877a
commit
868fbe622b
@ -324,7 +324,7 @@ check-code-style:
|
|||||||
-Degl_device=true
|
-Degl_device=true
|
||||||
-Dwayland_eglstream=true
|
-Dwayland_eglstream=true
|
||||||
-Dcatch=true
|
-Dcatch=true
|
||||||
-Dlibdisplay_info=true
|
-Dlibdisplay_info=enabled
|
||||||
|
|
||||||
.build-mutter:
|
.build-mutter:
|
||||||
extends:
|
extends:
|
||||||
|
@ -168,10 +168,9 @@ if have_x11_client
|
|||||||
xau_dep = dependency('xau')
|
xau_dep = dependency('xau')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
have_libdisplay_info = get_option('libdisplay_info')
|
use_libdisplay_info = get_option('libdisplay_info')
|
||||||
if have_libdisplay_info
|
libdisplay_info_dep = dependency('libdisplay-info', required: use_libdisplay_info)
|
||||||
libdisplay_info_dep = dependency('libdisplay-info')
|
have_libdisplay_info = libdisplay_info_dep.found()
|
||||||
endif
|
|
||||||
|
|
||||||
have_gnome_desktop = get_option('libgnome_desktop')
|
have_gnome_desktop = get_option('libgnome_desktop')
|
||||||
if have_gnome_desktop
|
if have_gnome_desktop
|
||||||
|
@ -226,7 +226,8 @@ option('catch',
|
|||||||
)
|
)
|
||||||
|
|
||||||
option('libdisplay_info',
|
option('libdisplay_info',
|
||||||
type: 'boolean',
|
type: 'feature',
|
||||||
value: false,
|
value: 'auto',
|
||||||
|
deprecated: {'true': 'enabled', 'false': 'disabled'},
|
||||||
description: 'Build with or without libdisplay-info'
|
description: 'Build with or without libdisplay-info'
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user