From 260cd732767185a2781173905b16454140005fea Mon Sep 17 00:00:00 2001 From: progandy Date: Thu, 30 Apr 2020 20:25:25 +0200 Subject: Create an output mirror prototype for wlroots To mirror an output its dmabuf is exported and then submitted to a new xdg surface which can be placed on another output. --- meson.build | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 meson.build (limited to 'meson.build') diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..52b01ec --- /dev/null +++ b/meson.build @@ -0,0 +1,42 @@ +project( + 'wdomirror', + 'c', + version: '0.1.0', + license: 'MIT', + meson_version: '>=0.54.0', + default_options: [ + 'c_std=c11', + 'warning_level=2', + 'werror=true', + ], +) + +cc = meson.get_compiler('c') + +add_project_arguments(cc.get_supported_arguments([ + '-Wno-missing-braces', + '-Wno-unused-parameter', +]), language: 'c') + +wayland_client = dependency('wayland-client') +wayland_protos = dependency('wayland-protocols', version: '>=1.17') + +subdir('protocol') + +mirror_files = [ 'main.c' ] +mirror_deps = [ + wayland_client, + wayland_protos, + client_protos, +] + + +proto_inc = include_directories('protocol') + +executable( + meson.project_name(), + mirror_files, + dependencies: mirror_deps, + include_directories: proto_inc, + install: true +) -- cgit v1.2.3