summaryrefslogtreecommitdiff
path: root/lib/wayland-glib/meson.build
diff options
context:
space:
mode:
authorAylur <[email protected]>2024-12-24 21:38:12 +0100
committerAylur <[email protected]>2024-12-24 21:38:12 +0100
commit22ab42c2bb5532064d704931729ddba089dd7276 (patch)
tree6dcf003fd140f2023210b8554d08af34b0b9586c /lib/wayland-glib/meson.build
parent27544705dfe77b50f919a166f06d5b96560dd2fd (diff)
parent3468763d51d389c67ec7b1a390ffa8a5328bddb6 (diff)
Merge branch 'main' into feat/jsx-gtk4
Diffstat (limited to 'lib/wayland-glib/meson.build')
-rw-r--r--lib/wayland-glib/meson.build40
1 files changed, 40 insertions, 0 deletions
diff --git a/lib/wayland-glib/meson.build b/lib/wayland-glib/meson.build
new file mode 100644
index 0000000..3d93ac0
--- /dev/null
+++ b/lib/wayland-glib/meson.build
@@ -0,0 +1,40 @@
+project(
+ 'wayland-glib',
+ 'vala',
+ 'c',
+ version: run_command('cat', join_paths(meson.project_source_root(), 'version')).stdout().strip(),
+ meson_version: '>= 0.62.0',
+ default_options: [
+ 'warning_level=2',
+ 'werror=false',
+ 'c_std=gnu11',
+ ],
+)
+
+version_split = meson.project_version().split('.')
+
+deps = [
+ dependency('glib-2.0'),
+ dependency('gio-2.0'),
+ dependency('gobject-2.0'),
+ dependency('wayland-client'),
+]
+
+sources = [
+ 'wl-source.vala',
+]
+
+lib = static_library(
+ meson.project_name(),
+ sources,
+ dependencies: deps,
+ vala_header: meson.project_name() + '.h',
+ vala_vapi: meson.project_name() + '.vapi',
+)
+
+wayland_glib = declare_dependency(
+ link_with: lib,
+ include_directories: include_directories('.')
+ )
+
+