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 +++++++++++++++++++++++++++ meson_options.txt | 1 + 2 files changed, 28 insertions(+) create mode 100644 meson.build create mode 100644 meson_options.txt 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, +) diff --git a/meson_options.txt b/meson_options.txt new file mode 100644 index 0000000..a0d279e --- /dev/null +++ b/meson_options.txt @@ -0,0 +1 @@ +option('default_port', type: 'string', value: '8989', description: 'Default listen port') -- cgit v1.2.3