From 6d838c1c317164fb7e54442312f63d4cb4beaddd Mon Sep 17 00:00:00 2001 From: hrxi Date: Thu, 22 Jun 2023 00:04:59 +0200 Subject: [PATCH] meson: Add http-files plugin --- meson.build | 2 ++ plugins/http-files/meson.build | 22 ++++++++++++++++++++++ plugins/meson.build | 1 + 3 files changed, 25 insertions(+) create mode 100644 plugins/http-files/meson.build create mode 100644 plugins/meson.build 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')