mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
Remove WLR_HAS_XCB_ERRORS
wlroots' dependency on this library doesn't change the features exposed to compositors. It's purely a wlroots implementation detail. Thus downstream compositors shouldn't really care about it. Introduce an "internal_features" dictionary to store the status of such internal dependencies.
This commit is contained in:
parent
78befa59f9
commit
1eb38e0015
7 changed files with 26 additions and 20 deletions
13
meson.build
13
meson.build
|
|
@ -86,9 +86,11 @@ features = {
|
|||
'libseat': false,
|
||||
'x11-backend': false,
|
||||
'xwayland': false,
|
||||
'xcb-errors': false,
|
||||
'xdg-foreign': false,
|
||||
}
|
||||
internal_features = {
|
||||
'xcb-errors': false,
|
||||
}
|
||||
|
||||
wayland_server = dependency('wayland-server', version: '>=1.19')
|
||||
wayland_client = dependency('wayland-client')
|
||||
|
|
@ -143,6 +145,13 @@ subdir('xwayland')
|
|||
|
||||
subdir('include')
|
||||
|
||||
foreach name, have : internal_features
|
||||
add_project_arguments(
|
||||
'-DHAS_@0@=@1@'.format(name.underscorify().to_upper(), have.to_int()),
|
||||
language: 'c',
|
||||
)
|
||||
endforeach
|
||||
|
||||
wlr_inc = include_directories('.', 'include')
|
||||
proto_inc = include_directories('protocol')
|
||||
|
||||
|
|
@ -172,7 +181,7 @@ wlroots = declare_dependency(
|
|||
|
||||
meson.override_dependency('wlroots', wlroots)
|
||||
|
||||
summary(features, bool_yn: true)
|
||||
summary(features + internal_features, bool_yn: true)
|
||||
|
||||
if get_option('examples')
|
||||
subdir('examples')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue