diff options
author | progandy <code@progandy> | 2020-04-30 20:25:25 +0200 |
---|---|---|
committer | progandy <code@progandy> | 2020-04-30 20:25:25 +0200 |
commit | 260cd732767185a2781173905b16454140005fea (patch) | |
tree | e57b26d2fd24550a70ff285b1c88c59ce7e2ceaf /meson.build |
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.
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 42 |
1 files changed, 42 insertions, 0 deletions
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 +) |