diff options
-rw-r--r-- | meson.build | 27 | ||||
-rw-r--r-- | meson_options.txt | 1 |
2 files changed, 28 insertions, 0 deletions
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') |