summaryrefslogtreecommitdiff
path: root/lib/wayland-glib/meson.build
diff options
context:
space:
mode:
authorkotontrion <[email protected]>2024-10-28 15:37:27 +0100
committerkotontrion <[email protected]>2024-12-17 08:59:22 +0100
commit1bc38cf97875ce46da5e3080729603f6f25c5d98 (patch)
treee1647f55234e5d93267a099130dc6f956a0e0649 /lib/wayland-glib/meson.build
parent4f47b69946dd7127ba66e6333af4945afaba15de (diff)
move wayland-glib into its own lib
Diffstat (limited to 'lib/wayland-glib/meson.build')
-rw-r--r--lib/wayland-glib/meson.build43
1 files changed, 43 insertions, 0 deletions
diff --git a/lib/wayland-glib/meson.build b/lib/wayland-glib/meson.build
new file mode 100644
index 0000000..36f8ea8
--- /dev/null
+++ b/lib/wayland-glib/meson.build
@@ -0,0 +1,43 @@
+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('.')
+
+vapi_dir = meson.current_source_dir() / 'vapi'
+add_project_arguments(['--vapidir', vapi_dir], language: 'vala')
+
+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('.')
+ )
+
+