summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2017-07-03 15:31:05 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2017-07-03 15:31:05 +0200
commit3e9904b87166e20607925eb0a23ad0f849b6c5cd (patch)
tree7854ff794fb0e9874670fb581f8b8f3b65e03afa
parent48d334acbeb665aae9c2f9f4867ff0afe836e7d3 (diff)
downloaduca-3e9904b87166e20607925eb0a23ad0f849b6c5cd.tar.gz
uca-3e9904b87166e20607925eb0a23ad0f849b6c5cd.tar.bz2
uca-3e9904b87166e20607925eb0a23ad0f849b6c5cd.tar.xz
uca-3e9904b87166e20607925eb0a23ad0f849b6c5cd.zip
gui: add Meson build support
-rw-r--r--bin/gui/meson.build29
-rw-r--r--bin/meson.build1
2 files changed, 30 insertions, 0 deletions
diff --git a/bin/gui/meson.build b/bin/gui/meson.build
new file mode 100644
index 0000000..f9cf238
--- /dev/null
+++ b/bin/gui/meson.build
@@ -0,0 +1,29 @@
+cc = meson.get_compiler('c')
+
+libm = cc.find_library('m')
+gtk_dep = dependency('gtk+-2.0')
+gthread_dep = dependency('gthread-2.0')
+
+gnome = import('gnome')
+
+resources = gnome.compile_resources(
+ 'resources', 'uca-camera-control.gresource.xml',
+ source_dir: '.',
+ c_name: 'foo'
+)
+
+sources = [
+ 'uca-camera-control.c',
+ 'egg-histogram-view.c',
+ 'egg-property-cell-renderer.c',
+ 'egg-property-tree-view.c',
+ resources
+]
+
+executable('uca-camera-control',
+ sources: sources,
+ include_directories: include_dir,
+ dependencies: [libm, gtk_dep, gthread_dep],
+ link_with: lib,
+ install: true,
+)
diff --git a/bin/meson.build b/bin/meson.build
index f39afc8..12810f5 100644
--- a/bin/meson.build
+++ b/bin/meson.build
@@ -1 +1,2 @@
+subdir('gui')
subdir('tools')