[rygel] build: Don't install UI if preferences not built



commit 2bbdbb1b47ad3a7e6cd710ca15ceb5b287d1e7d1
Author: Jens Georg <mail jensge org>
Date:   Mon Apr 11 23:27:19 2022 +0200

    build: Don't install UI if preferences not built
    
    fixes #208

 data/meson.build | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/data/meson.build b/data/meson.build
index 3d97ff83f..1e2ba170e 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -9,7 +9,9 @@ install_data(join_paths('icons', '48x48', 'rygel.png'), install_dir : join_paths
 install_data(join_paths('icons', 'scalable', 'rygel.svg'), install_dir : join_paths(rygel_icondir, 
'scalable', 'apps'))
 install_data(join_paths('icons', 'scalable', 'rygel-full.svg'), install_dir : join_paths(rygel_icondir, 
'scalable', 'apps'))
 
-install_data('rygel-preferences.ui', install_dir : rygel_datadir)
+if (gtk.found())
+  install_data('rygel-preferences.ui', install_dir : rygel_datadir)
+endif
 
 data_conf = configuration_data()
 data_conf.set('bindir', join_paths(get_option('prefix'), get_option('bindir')))
@@ -60,7 +62,7 @@ i18n.merge_file(input: rygel_desktop_preferences_in,
                 output: 'rygel-preferences.desktop',
                 po_dir : join_paths('..','po'),
                 type: 'desktop',
-                install : true,
+                install : gtk.found(),
                 install_dir: join_paths(get_option('datadir'), 'applications'))
 
 subdir('presets')


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