# wayland bdepend for wayland-scanner, xorg-server for cvt utility
BDEPEND="
dev-libs/wayland
dev-util/gdbus-codegen
dev-util/glib-utils
>=sys-devel/gettext-0.19.8
virtual/pkgconfig
test? ( app-text/docbook-xml-dtd:4.5 )
wayland? ( >=sys-kernel/linux-headers-4.4
x11-base/xorg-server )
"
src_configure(){
# TODO: Replicate debug vs release meson build type behaviour under our buildtype=plain
localemesonargs=(
-Dopengl=true
#opengl_libname
#gles2_libname
$(meson_use wayland gles2)
-Degl=true
-Dglx=true
$(meson_use wayland)
$(meson_use wayland native_backend)
$(meson_use screencast remote_desktop)
-Degl_device=false# This should be dependent on wayland,video_drivers_nvidia, once eglstream support is there
-Dwayland_eglstream=false# requires packages egl-wayland for wayland-eglstream-protocols.pc
$(meson_use udev)
$(meson_use input_devices_wacom libwacom)
-Dpango_ft2=true
-Dstartup_notification=true
-Dsm=true
$(meson_use introspection)
$(meson_use test cogl_tests)
$(meson_use wayland core_tests)# core tests require wayland; overall -Dtests option is honored on top, so no extra conditional needed
$(meson_use test clutter_tests)
$(meson_use test tests)
$(meson_use sysprof profiler)
-Dinstalled_tests=false
#verbose # Let upstream choose default for verbose mode
#xwayland_path
# TODO: relies on default settings, but in Gentoo we might have some more packages we want to give Xgrab access (mostly virtual managers and remote desktops)