From 9694246130cd69c91b11a5002d8daaa854262f87 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Wed, 11 Oct 2017 14:53:31 +0200 Subject: Add meson support --- meson.build | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 meson.build (limited to 'meson.build') diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..9c81a5d --- /dev/null +++ b/meson.build @@ -0,0 +1,27 @@ +project('ucanet', 'c') + +uca_dep = dependency('libuca', version: '>= 2.0') +gio_dep = dependency('gio-2.0', verson: '>= 2.22') + +plugindir = uca_dep.get_pkgconfig_variable('plugindir') + +config = configuration_data() +config.set('UCA_NET_DEFAULT_PORT', get_option('default_port')) + +configure_file( + output: 'config.h', + configuration: config, +) + +shared_library('ucanet', + sources: ['uca-net-camera.c'], + dependencies: [uca_dep, gio_dep], + install: true, + install_dir: plugindir, +) + +executable('ucad', + sources: ['ucad.c'], + dependencies: [uca_dep, gio_dep], + install: true, +) -- cgit v1.2.3