mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
Revert "Merge pull request #1194 from ascent12/meson_feature"
This breaks wlroots when used as a meson subproject. This reverts commitdea311992e, reversing changes made to6db9c4b746.
This commit is contained in:
parent
dea311992e
commit
9c886f20b9
19 changed files with 227 additions and 385 deletions
|
|
@ -1,32 +1,3 @@
|
|||
xwayland_libs = []
|
||||
xwayland_required = [
|
||||
'xcb',
|
||||
'xcb-composite',
|
||||
'xcb-render',
|
||||
'xcb-xfixes',
|
||||
]
|
||||
xwayland_optional = [
|
||||
'xcb-errors',
|
||||
'xcb-icccm',
|
||||
]
|
||||
|
||||
foreach lib : xwayland_required
|
||||
dep = dependency(lib, required: get_option('xwayland'))
|
||||
if not dep.found()
|
||||
subdir_done()
|
||||
endif
|
||||
|
||||
xwayland_libs += dep
|
||||
endforeach
|
||||
|
||||
foreach lib : xwayland_optional
|
||||
dep = dependency(lib, required: get_option(lib))
|
||||
if dep.found()
|
||||
xwayland_libs += dep
|
||||
conf_data.set('WLR_HAS_' + lib.underscorify().to_upper(), true)
|
||||
endif
|
||||
endforeach
|
||||
|
||||
lib_wlr_xwayland = static_library(
|
||||
'wlr_xwayland',
|
||||
files(
|
||||
|
|
@ -41,11 +12,14 @@ lib_wlr_xwayland = static_library(
|
|||
include_directories: wlr_inc,
|
||||
dependencies: [
|
||||
wayland_server,
|
||||
xwayland_libs,
|
||||
xcb,
|
||||
xcb_composite,
|
||||
xcb_xfixes,
|
||||
xcb_image,
|
||||
xcb_render,
|
||||
xcb_icccm,
|
||||
xcb_errors,
|
||||
xkbcommon,
|
||||
pixman,
|
||||
],
|
||||
)
|
||||
|
||||
wlr_parts += lib_wlr_xwayland
|
||||
conf_data.set('WLR_HAS_XWAYLAND', true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue