meson: Add ice plugin

This commit is contained in:
hrxi 2023-06-12 23:50:16 +02:00 committed by fiaxh
parent 7dd0e0aa4a
commit 3edda368f3
3 changed files with 31 additions and 0 deletions

View file

@ -9,6 +9,7 @@ dep_gdk_pixbuf = dependency('gdk-pixbuf-2.0')
dep_gee = dependency('gee-0.8') dep_gee = dependency('gee-0.8')
dep_gio = dependency('gio-2.0') dep_gio = dependency('gio-2.0')
dep_glib = dependency('glib-2.0') dep_glib = dependency('glib-2.0')
dep_gnutls = dependency('gnutls')
dep_gmodule = dependency('gmodule-2.0') dep_gmodule = dependency('gmodule-2.0')
dep_gpgme = dependency('gpgme') dep_gpgme = dependency('gpgme')
dep_gtk4 = dependency('gtk4') dep_gtk4 = dependency('gtk4')
@ -18,6 +19,7 @@ dep_libcanberra = dependency('libcanberra')
dep_libgcrypt = dependency('libgcrypt') dep_libgcrypt = dependency('libgcrypt')
dep_libsrtp2 = dependency('libsrtp2') dep_libsrtp2 = dependency('libsrtp2')
dep_libsoup = dependency('libsoup-3.0') dep_libsoup = dependency('libsoup-3.0')
dep_nice = dependency('nice', version: '>=0.1.15')
dep_m = meson.get_compiler('c').find_library('m', required: false) dep_m = meson.get_compiler('c').find_library('m', required: false)
dep_sqlite3 = dependency('sqlite3', version: '>=3.24') dep_sqlite3 = dependency('sqlite3', version: '>=3.24')

28
plugins/ice/meson.build Normal file
View file

@ -0,0 +1,28 @@
dependencies = [
dep_crypto_vala,
dep_dino,
dep_gdk_pixbuf,
dep_gee,
dep_glib,
dep_gmodule,
dep_gnutls,
dep_nice,
dep_qlite,
dep_xmpp_vala,
]
sources = files(
'src/dtls_srtp.vala',
'src/module.vala',
'src/plugin.vala',
'src/transport_parameters.vala',
'src/util.vala',
'src/register_plugin.vala',
)
c_args = [
'-DG_LOG_DOMAIN="ice"',
]
vala_args = [
'--vapidir', meson.current_source_dir() / 'vapi',
]
lib_ice = shared_library('ice', sources, name_prefix: '', c_args: c_args, vala_args: vala_args, dependencies: dependencies, install: true, install_dir: get_option('libdir') / 'dino/plugins')
dep_ice = declare_dependency(link_with: lib_ice, include_directories: include_directories('.'))

View file

@ -1,3 +1,4 @@
subdir('http-files') subdir('http-files')
subdir('ice')
subdir('notification-sound') subdir('notification-sound')
subdir('openpgp') subdir('openpgp')