BuildRequires: pkgconfig(wayland-server)
BuildRequires: pkgconfig(wayland-client)
BuildRequires: pkgconfig(wayland-protocols)
-BuildRequires: pkgconfig(xdg-shell-unstable-v6-server)
BuildRequires: pkgconfig(pixman-1)
BuildRequires: pkgconfig(libdrm)
BuildRequires: pkgconfig(xkbcommon)
'xdg_toplevel_v6.c',
]
+protocol_name = 'xdg-shell-v6'
+protocol_path = wl_protocol_dir / 'unstable/xdg-shell/xdg-shell-unstable-v6.xml'
+
+code = custom_target(
+ protocol_name.underscorify() + '_c',
+ input: protocol_path,
+ output: '@BASENAME@-protocol.c',
+ command: [wayland_scanner, 'private-code', '@INPUT@', '@OUTPUT@'],
+)
+libds_xdg_shell_v6_files += code
+
+server_header = custom_target(
+ protocol_name.underscorify() + '_server_h',
+ input: protocol_path,
+ output: '@BASENAME@-server-protocol.h',
+ command: [wayland_scanner, 'server-header', '@INPUT@', '@OUTPUT@'],
+ build_by_default: false,
+)
+libds_xdg_shell_v6_files += server_header
+
libds_xdg_shell_v6_deps = [
dep_libds,
- dependency('xdg-shell-unstable-v6-server', required: true),
]
lib_libds_xdg_shell_v6 = shared_library('ds-xdg-shell-v6', libds_xdg_shell_v6_files,