build: Don't check for Xwayland when Wayland is disabled
This commit is contained in:
parent
88f8228425
commit
365ea2fd56
1 changed files with 6 additions and 4 deletions
|
@ -287,11 +287,13 @@ cdata.set('HAVE_INTROSPECTION', have_introspection)
|
||||||
xkb_base = xkeyboard_config_dep.get_pkgconfig_variable('xkb_base')
|
xkb_base = xkeyboard_config_dep.get_pkgconfig_variable('xkb_base')
|
||||||
cdata.set_quoted('XKB_BASE', xkb_base)
|
cdata.set_quoted('XKB_BASE', xkb_base)
|
||||||
|
|
||||||
|
if have_wayland
|
||||||
xwayland_path = get_option('xwayland_path')
|
xwayland_path = get_option('xwayland_path')
|
||||||
if xwayland_path == ''
|
if xwayland_path == ''
|
||||||
xwayland_path = find_program('Xwayland').path()
|
xwayland_path = find_program('Xwayland').path()
|
||||||
endif
|
endif
|
||||||
cdata.set_quoted('XWAYLAND_PATH', xwayland_path)
|
cdata.set_quoted('XWAYLAND_PATH', xwayland_path)
|
||||||
|
endif
|
||||||
|
|
||||||
xwayland_grab_default_access_rules = get_option('xwayland_grab_default_access_rules')
|
xwayland_grab_default_access_rules = get_option('xwayland_grab_default_access_rules')
|
||||||
cdata.set_quoted('XWAYLAND_GRAB_DEFAULT_ACCESS_RULES',
|
cdata.set_quoted('XWAYLAND_GRAB_DEFAULT_ACCESS_RULES',
|
||||||
|
|
Loading…
Reference in a new issue