diff options
author | hrxi <hrrrxi@gmail.com> | 2023-06-12 23:11:50 +0200 |
---|---|---|
committer | fiaxh <fiaxh@users.noreply.github.com> | 2023-10-06 15:25:12 +0200 |
commit | 7dd12e7dec0706b0d78f99e7014ee3a12079f1c6 (patch) | |
tree | 0eb1ba513577f11ca91d9fd0670d2f70e2e0df8e | |
parent | 7326ca4d1b61f775666dc53adc23aae51f5b643d (diff) | |
download | dino-7dd12e7dec0706b0d78f99e7014ee3a12079f1c6.tar.gz dino-7dd12e7dec0706b0d78f99e7014ee3a12079f1c6.zip |
meson: Add notification-sound plugin
-rw-r--r-- | meson.build | 1 | ||||
-rw-r--r-- | plugins/meson.build | 1 | ||||
-rw-r--r-- | plugins/notification-sound/meson.build | 19 |
3 files changed, 21 insertions, 0 deletions
diff --git a/meson.build b/meson.build index ef14dbec..e08255e1 100644 --- a/meson.build +++ b/meson.build @@ -14,6 +14,7 @@ dep_gpgme = dependency('gpgme') dep_gtk4 = dependency('gtk4') dep_icu_uc = dependency('icu-uc') dep_libadwaita = dependency('libadwaita-1') +dep_libcanberra = dependency('libcanberra') dep_libsoup = dependency('libsoup-3.0') dep_m = meson.get_compiler('c').find_library('m', required: false) dep_sqlite3 = dependency('sqlite3', version: '>=3.24') diff --git a/plugins/meson.build b/plugins/meson.build index bacf9678..5b0284f6 100644 --- a/plugins/meson.build +++ b/plugins/meson.build @@ -1,2 +1,3 @@ subdir('http-files') +subdir('notification-sound') subdir('openpgp') diff --git a/plugins/notification-sound/meson.build b/plugins/notification-sound/meson.build new file mode 100644 index 00000000..5a114d86 --- /dev/null +++ b/plugins/notification-sound/meson.build @@ -0,0 +1,19 @@ +dependencies = [ + dep_dino, + dep_gdk_pixbuf, + dep_gee, + dep_glib, + dep_gmodule, + dep_libcanberra, + dep_qlite, + dep_xmpp_vala, +] +sources = files( + 'src/plugin.vala', + 'src/register_plugin.vala', +) +vala_args = [ + '--vapidir', meson.current_source_dir() / 'vapi', +] +lib_notification_sound = shared_library('notification-sound', sources, name_prefix: '', vala_args: vala_args, dependencies: dependencies, install: true, install_dir: get_option('libdir') / 'dino/plugins') +dep_notification_sound = declare_dependency(link_with: lib_notification_sound, include_directories: include_directories('.')) |