summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2017-10-11 14:53:31 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2017-10-11 14:53:31 +0200
commit9694246130cd69c91b11a5002d8daaa854262f87 (patch)
tree76f2623a22efb6346ea3a19372deb24613122273
parent7c70622e26e292fa444b3928c3d645a0d7871c3a (diff)
downloaduca-net-9694246130cd69c91b11a5002d8daaa854262f87.tar.gz
uca-net-9694246130cd69c91b11a5002d8daaa854262f87.tar.bz2
uca-net-9694246130cd69c91b11a5002d8daaa854262f87.tar.xz
uca-net-9694246130cd69c91b11a5002d8daaa854262f87.zip
Add meson support
-rw-r--r--meson.build27
-rw-r--r--meson_options.txt1
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')