diff options
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..9b20f9a --- /dev/null +++ b/meson.build @@ -0,0 +1,37 @@ +project( + 'wlhangul', + 'c', + version: '0.0.0', + license: 'MIT', + meson_version: '>=0.51.0', + default_options: [ + 'c_std=c99', + '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') + +wlhangul_inc = include_directories('include') + +libhangul = dependency('libhangul') +wayland_client = dependency('wayland-client') +wayland_protocols = dependency('wayland-protocols') + +wlhangul_files = files('main.c') + +subdir('protocol') + +executable( + meson.project_name(), + wlhangul_files, + include_directories: wlhangul_inc, + dependencies: [libhangul, wayland_client], + install: true, +) |