summaryrefslogtreecommitdiff
path: root/lib/wayland-glib/meson.build
diff options
context:
space:
mode:
authorAylur <[email protected]>2024-12-21 21:53:37 +0100
committerGitHub <[email protected]>2024-12-21 21:53:37 +0100
commit3468763d51d389c67ec7b1a390ffa8a5328bddb6 (patch)
treee7101963b4b3c83b74636cbcd0adb5b9583849d1 /lib/wayland-glib/meson.build
parentd6f4e86f63082271c9a68f5ce2864b6c78d9a5f9 (diff)
parentc8e705a7999e2d36e137771e38aa443c3ed5416d (diff)
Merge pull request #186 from Aylur/feat/wayland-glib
wayland glib
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('.')
+ )
+
+