mirror of
https://github.com/swaywm/sway.git
synced 2024-11-26 09:51:29 +00:00
Link xcb dependency to meson options "enable_xwayland" (#2393)
* Link xcb dependency to meson options "enable_xwayland" * Link xcb dependency to meson options "enable_xwayland"
This commit is contained in:
parent
fe39129b96
commit
d6095588a1
|
@ -44,13 +44,13 @@ systemd = dependency('libsystemd', required: false)
|
||||||
elogind = dependency('libelogind', required: false)
|
elogind = dependency('libelogind', required: false)
|
||||||
math = cc.find_library('m')
|
math = cc.find_library('m')
|
||||||
rt = cc.find_library('rt')
|
rt = cc.find_library('rt')
|
||||||
xcb = dependency('xcb')
|
|
||||||
git = find_program('git', required: false)
|
git = find_program('git', required: false)
|
||||||
|
|
||||||
conf_data = configuration_data()
|
conf_data = configuration_data()
|
||||||
|
|
||||||
if get_option('enable-xwayland')
|
if get_option('enable-xwayland')
|
||||||
conf_data.set('HAVE_XWAYLAND', true)
|
conf_data.set('HAVE_XWAYLAND', true)
|
||||||
|
xcb = dependency('xcb')
|
||||||
else
|
else
|
||||||
conf_data.set('HAVE_XWAYLAND', false)
|
conf_data.set('HAVE_XWAYLAND', false)
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -153,10 +153,6 @@ sway_sources = files(
|
||||||
'tree/output.c',
|
'tree/output.c',
|
||||||
)
|
)
|
||||||
|
|
||||||
if get_option('enable-xwayland')
|
|
||||||
sway_sources += 'desktop/xwayland.c'
|
|
||||||
endif
|
|
||||||
|
|
||||||
sway_deps = [
|
sway_deps = [
|
||||||
cairo,
|
cairo,
|
||||||
gdk_pixbuf,
|
gdk_pixbuf,
|
||||||
|
@ -170,10 +166,14 @@ sway_deps = [
|
||||||
server_protos,
|
server_protos,
|
||||||
wayland_server,
|
wayland_server,
|
||||||
wlroots,
|
wlroots,
|
||||||
xcb,
|
|
||||||
xkbcommon,
|
xkbcommon,
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if get_option('enable-xwayland')
|
||||||
|
sway_sources += 'desktop/xwayland.c'
|
||||||
|
sway_deps += xcb
|
||||||
|
endif
|
||||||
|
|
||||||
executable(
|
executable(
|
||||||
'sway',
|
'sway',
|
||||||
sway_sources,
|
sway_sources,
|
||||||
|
|
Loading…
Reference in a new issue