[gnome-boxes/wip/inigomartinez/meson: 5/13] meson: Add support for search provider



commit 3495eb7d5dbd30b924315c227bf67d55e14f6070
Author: Iñigo Martínez <inigomartinez gmail com>
Date:   Fri Dec 8 21:26:24 2017 +0100

    meson: Add support for search provider
    
    meson does not build gnome-boxes-search-provider and hence, it does
    not generate the search provider service file.
    
    This patch builds the gnome-boxes-search-provider executable and
    generates its service file.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=791421

 data/meson.build |    9 +++++++++
 src/meson.build  |   10 ++++++++++
 2 files changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/data/meson.build b/data/meson.build
index d8c35e5..0bf8bdb 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -14,6 +14,7 @@ custom_target ('desktop-file',
 
 dbus_conf = configuration_data ()
 dbus_conf.set ('bindir', join_paths (get_option ('prefix'), get_option ('bindir')))
+dbus_conf.set ('libexecdir', join_paths (get_option ('prefix'), get_option ('libexecdir')))
 configure_file (
   input: 'org.gnome.Boxes.service.in',
   output: 'org.gnome.Boxes.service',
@@ -22,6 +23,14 @@ configure_file (
   install_dir: join_paths (data_dir, 'dbus-1', 'services')
 )
 
+configure_file (
+  input: 'org.gnome.Boxes.SearchProvider.service.in',
+  output: 'org.gnome.Boxes.SearchProvider.service',
+  configuration: dbus_conf,
+  install: true,
+  install_dir: join_paths (data_dir, 'dbus-1', 'services')
+)
+
 custom_target ('appdata-file',
   input: 'org.gnome.Boxes.appdata.xml.in',
   output: 'org.gnome.Boxes.appdata.xml',
diff --git a/src/meson.build b/src/meson.build
index 0d835ec..96aef0b 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -166,3 +166,13 @@ executable ('gnome-boxes', boxes_sources,
             link_with: libcommon,
             install: true
 )
+
+executable ('gnome-boxes-search-provider', 'gnome-boxes-search-provider.vala',
+            include_directories: config_h_dir,
+            vala_args: vala_args,
+            c_args: c_args,
+            dependencies: common_dependencies,
+            link_with: libcommon,
+            install: true,
+            install_dir: get_option ('libexecdir')
+)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]