mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2025-12-20 04:40:07 +01:00
This just moves gl-borders up to libweston weston_renderer as-is, with no change in functionality. This is a preparation step so that other renderers can use the same interface. Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
46 lines
1.2 KiB
Meson
46 lines
1.2 KiB
Meson
if not get_option('backend-wayland')
|
|
subdir_done()
|
|
endif
|
|
|
|
config_h.set('BUILD_WAYLAND_COMPOSITOR', '1')
|
|
|
|
srcs_wlwl = [
|
|
'wayland.c',
|
|
fullscreen_shell_unstable_v1_client_protocol_h,
|
|
fullscreen_shell_unstable_v1_protocol_c,
|
|
presentation_time_protocol_c,
|
|
presentation_time_server_protocol_h,
|
|
xdg_shell_client_protocol_h,
|
|
xdg_shell_protocol_c,
|
|
]
|
|
|
|
deps_wlwl = [
|
|
dependency('wayland-client'),
|
|
dependency('wayland-cursor'),
|
|
dep_pixman,
|
|
dep_libweston_private,
|
|
dep_libdrm_headers,
|
|
dep_lib_cairo_shared,
|
|
dep_lib_renderer_borders,
|
|
]
|
|
|
|
if get_option('renderer-gl')
|
|
d = dependency('wayland-egl', required: false)
|
|
if not d.found()
|
|
error('wayland-backend + gl-renderer requires wayland-egl which was not found. Or, you can use \'-Dbackend-wayland=false\' or \'-Drenderer-gl=false\'.')
|
|
endif
|
|
deps_wlwl += d
|
|
deps_wlwl += dep_egl # for gl-renderer.h
|
|
endif
|
|
|
|
plugin_wlwl = shared_library(
|
|
'wayland-backend',
|
|
srcs_wlwl,
|
|
include_directories: common_inc,
|
|
dependencies: deps_wlwl,
|
|
name_prefix: '',
|
|
install: true,
|
|
install_dir: dir_module_libweston
|
|
)
|
|
env_modmap += 'wayland-backend.so=@0@;'.format(plugin_wlwl.full_path())
|
|
install_headers(backend_wayland_h, subdir: dir_include_libweston_install)
|