diff options
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 +) |