[gssdp/wip/meson: 4/17] meson: Add sniffer tool
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gssdp/wip/meson: 4/17] meson: Add sniffer tool
- Date: Fri, 26 Oct 2018 14:45:08 +0000 (UTC)
commit 165f7abc4478eb863baba4b51f68bca2a41174c7
Author: Jens Georg <mail jensge org>
Date: Fri Oct 26 16:43:36 2018 +0200
meson: Add sniffer tool
meson.build | 4 ++++
tools/meson.build | 12 ++++++++++++
2 files changed, 16 insertions(+)
---
diff --git a/meson.build b/meson.build
index 0cba74a..a6ffb44 100644
--- a/meson.build
+++ b/meson.build
@@ -40,6 +40,10 @@ glib_dep = dependency('glib-2.0', version : '>= 2.32')
gobject_dep = dependency('gobject-2.0', version : '>= 2.32')
gio_dep = dependency('gio-2.0', version : '>= 2.32')
soup_dep = dependency('libsoup-2.4', version : '>= 2.26.1')
+gtk = dependency('gtk+-3.0', version : '>= 3.12', required: false)
subdir('libgssdp')
subdir('tests')
+if (gtk.found())
+ subdir('tools')
+endif
diff --git a/tools/meson.build b/tools/meson.build
new file mode 100644
index 0000000..44713fd
--- /dev/null
+++ b/tools/meson.build
@@ -0,0 +1,12 @@
+sniffer_uidir = join_paths(get_option('datadir'), 'gssdp-1.2')
+
+sniffer_deps = [glib_dep, gobject_dep, gio_dep, gtk, soup_dep]
+sniffer = executable('gssdp-device-sniffer',
+ ['gssdp-device-sniffer.c'],
+ dependencies : sniffer_deps,
+ include_directories : include_directories('..'),
+ link_with: libgssdp,
+ install: true,
+ c_args : '-DUI_DIR="@0@"'.format(sniffer_uidir)
+ )
+install_data('gssdp-device-sniffer.ui', install_dir : sniffer_uidir)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]