summaryrefslogtreecommitdiffstats
path: root/meson.build
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 /meson.build
parent7c70622e26e292fa444b3928c3d645a0d7871c3a (diff)
downloaduca-net-9694246130cd69c91b11a5002d8daaa854262f87.tar.gz
uca-net-9694246130cd69c91b11a5002d8daaa854262f87.tar.bz2
uca-net-9694246130cd69c91b11a5002d8daaa854262f87.tar.xz
uca-net-9694246130cd69c91b11a5002d8daaa854262f87.zip
Add meson support
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build27
1 files changed, 27 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,
+)