aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meson.build2
-rw-r--r--plugins/http-files/meson.build22
-rw-r--r--plugins/meson.build1
3 files changed, 25 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index c4b7fecf..02da2b35 100644
--- a/meson.build
+++ b/meson.build
@@ -13,6 +13,7 @@ dep_gmodule = dependency('gmodule-2.0')
dep_gtk4 = dependency('gtk4')
dep_icu_uc = dependency('icu-uc')
dep_libadwaita = dependency('libadwaita-1')
+dep_libsoup = dependency('libsoup-3.0')
dep_m = meson.get_compiler('c').find_library('m', required: false)
dep_sqlite3 = dependency('sqlite3', version: '>=3.24')
@@ -23,3 +24,4 @@ subdir('qlite')
subdir('xmpp-vala')
subdir('libdino')
subdir('main')
+subdir('plugins')
diff --git a/plugins/http-files/meson.build b/plugins/http-files/meson.build
new file mode 100644
index 00000000..6b0f3820
--- /dev/null
+++ b/plugins/http-files/meson.build
@@ -0,0 +1,22 @@
+dependencies = [
+ dep_dino,
+ dep_gee,
+ dep_glib,
+ dep_gmodule,
+ dep_gtk4,
+ dep_libsoup,
+ dep_qlite,
+ dep_xmpp_vala,
+]
+sources = files(
+ 'src/file_provider.vala',
+ 'src/file_sender.vala',
+ 'src/plugin.vala',
+ 'src/register_plugin.vala',
+)
+
+vala_args = [
+ '--define=SOUP_3_0',
+]
+lib_http_files = shared_library('http-files', sources, name_prefix: '', vala_args: vala_args, dependencies: dependencies, install: true, install_dir: get_option('libdir') / 'dino/plugins')
+dep_http_files = declare_dependency(link_with: lib_http_files, include_directories: include_directories('.'))
diff --git a/plugins/meson.build b/plugins/meson.build
new file mode 100644
index 00000000..88fbb335
--- /dev/null
+++ b/plugins/meson.build
@@ -0,0 +1 @@
+subdir('http-files')