mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-25 08:32:30 +00:00
f0375eed24
Some compositors are not interested in wlr_session, for instance nested compositors. Disabling wlr_session removes the udev dependency.
32 lines
756 B
Meson
32 lines
756 B
Meson
subdir('wlr')
|
|
|
|
exclude_files = ['meson.build', 'config.h.in', 'version.h.in']
|
|
if not features.get('drm-backend')
|
|
exclude_files += 'backend/drm.h'
|
|
endif
|
|
if not features.get('libinput-backend')
|
|
exclude_files += 'backend/libinput.h'
|
|
endif
|
|
if not features.get('x11-backend')
|
|
exclude_files += 'backend/x11.h'
|
|
endif
|
|
if not features.get('xwayland')
|
|
exclude_files += 'xwayland.h'
|
|
else
|
|
subdir('xwayland')
|
|
endif
|
|
if not features.get('gles2-renderer')
|
|
exclude_files += ['render/egl.h', 'render/gles2.h']
|
|
endif
|
|
if not features.get('vulkan-renderer')
|
|
exclude_files += 'render/vulkan.h'
|
|
endif
|
|
if not features.get('session')
|
|
exclude_files += 'backend/session.h'
|
|
endif
|
|
|
|
install_subdir('wlr',
|
|
install_dir: get_option('includedir'),
|
|
exclude_files: exclude_files,
|
|
)
|