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



commit b3ea813621d01a1443bb13a0eaea30dc307b776d
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.

 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 84c0cb1..4be4727 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]