summaryrefslogtreecommitdiff
path: root/somebar/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'somebar/meson.build')
-rw-r--r--somebar/meson.build31
1 files changed, 31 insertions, 0 deletions
diff --git a/somebar/meson.build b/somebar/meson.build
new file mode 100644
index 0000000..6ad5a0f
--- /dev/null
+++ b/somebar/meson.build
@@ -0,0 +1,31 @@
+project('somebar', ['c', 'cpp'],
+ version: '0.1.0',
+ default_options: [
+ 'cpp_std=c++17',
+ 'cpp_args=-Wno-parentheses',
+ ])
+
+wayland_dep = dependency('wayland-client')
+wayland_cursor_dep = dependency('wayland-cursor')
+cairo_dep = dependency('cairo')
+pango_dep = dependency('pango')
+pangocairo_dep = dependency('pangocairo')
+
+subdir('protocols')
+
+executable('somebar',
+ 'src/main.cpp',
+ 'src/shm_buffer.cpp',
+ 'src/bar.cpp',
+ wayland_sources,
+ dependencies: [
+ wayland_dep,
+ wayland_cursor_dep,
+ cairo_dep,
+ pango_dep,
+ pangocairo_dep,
+ ],
+ install: true,
+ cpp_args: '-DSOMEBAR_VERSION="@0@"'.format(meson.project_version()))
+
+install_man('somebar.1')