From 7dd0e0aa4a4dffa9efa0fdf7c8929ac0e1611530 Mon Sep 17 00:00:00 2001 From: hrxi Date: Mon, 12 Jun 2023 23:43:23 +0200 Subject: meson: Add crypto-vala library --- crypto-vala/meson.build | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 crypto-vala/meson.build (limited to 'crypto-vala/meson.build') diff --git a/crypto-vala/meson.build b/crypto-vala/meson.build new file mode 100644 index 00000000..c3feb4d1 --- /dev/null +++ b/crypto-vala/meson.build @@ -0,0 +1,23 @@ +dependencies = [ + dep_gio, + dep_glib, + dep_libgcrypt, + dep_libsrtp2, +] +sources = files( + 'src/cipher.vala', + 'src/cipher_converter.vala', + 'src/error.vala', + 'src/random.vala', + 'src/srtp.vala', +) +c_args = [ + '-DG_LOG_DOMAIN="crypto-vala"', +] +vala_args = [ + '--vapidir', meson.current_source_dir() / 'vapi', +] +lib_crypto_vala = library('crypto-vala', sources, c_args: c_args, vala_args: vala_args, dependencies: dependencies, version: '0.0', install: true, install_dir: [true, true, true]) +dep_crypto_vala = declare_dependency(link_with: lib_crypto_vala, include_directories: include_directories('.')) + +install_data('crypto-vala.deps', install_dir: get_option('datadir') / 'vala/vapi') # TODO: workaround for https://github.com/mesonbuild/meson/issues/9756 -- cgit v1.2.3-54-g00ecf