summaryrefslogtreecommitdiff
path: root/wmenu/meson.build
diff options
context:
space:
mode:
authorcoasteen <coasteen@proton.me>2026-07-09 10:42:28 +0330
committercoasteen <coasteen@proton.me>2026-07-09 10:42:28 +0330
commit8cbadb61604667b407b53ee1258433994fa4765a (patch)
tree97765fb29418fd6278fcb4cbb9760893afaf7a58 /wmenu/meson.build
Diffstat (limited to 'wmenu/meson.build')
-rwxr-xr-xwmenu/meson.build80
1 files changed, 80 insertions, 0 deletions
diff --git a/wmenu/meson.build b/wmenu/meson.build
new file mode 100755
index 0000000..3a5cb18
--- /dev/null
+++ b/wmenu/meson.build
@@ -0,0 +1,80 @@
+project(
+ 'wmenu',
+ 'c',
+ version: '0.2.0',
+ license: 'MIT',
+ default_options: [
+ 'c_std=c11',
+ 'warning_level=2',
+ 'werror=true',
+ ]
+)
+
+cc = meson.get_compiler('c')
+
+add_project_arguments(cc.get_supported_arguments([
+ '-DVERSION="@0@"'.format(meson.project_version()),
+
+ '-Wno-missing-field-initializers',
+ '-Wno-unused-parameter',
+ '-Wundef',
+ '-Wvla',
+]), language : 'c')
+
+cairo = dependency('cairo')
+pango = dependency('pango')
+pangocairo = dependency('pangocairo')
+wayland_client = dependency('wayland-client')
+wayland_protos = dependency('wayland-protocols')
+xkbcommon = dependency('xkbcommon')
+
+rt = cc.find_library('rt')
+
+subdir('protocols')
+subdir('docs')
+
+executable(
+ 'wmenu',
+ files(
+ 'menu.c',
+ 'pango.c',
+ 'pool-buffer.c',
+ 'render.c',
+ 'wayland.c',
+ 'wmenu.c',
+ ),
+ dependencies: [
+ cairo,
+ client_protos,
+ pango,
+ pangocairo,
+ rt,
+ wayland_client,
+ wayland_protos,
+ xkbcommon,
+ ],
+ install: true,
+)
+
+executable(
+ 'wmenu-run',
+ files(
+ 'menu.c',
+ 'pango.c',
+ 'pool-buffer.c',
+ 'render.c',
+ 'wayland.c',
+ 'wmenu-run.c',
+ ),
+ dependencies: [
+ cairo,
+ client_protos,
+ pango,
+ pangocairo,
+ rt,
+ wayland_client,
+ wayland_protos,
+ xkbcommon,
+ ],
+ install: true,
+)