summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2022-04-11 23:27:19 +0200
committerJens Georg <mail@jensge.org>2022-04-11 23:28:18 +0200
commit2bbdbb1b47ad3a7e6cd710ca15ceb5b287d1e7d1 (patch)
treec163bcd25bc24dcc3fc50f34c87a5f92b51528cd /data
parentc4cbaa2359253879d2b08ce63ba8243daf413b73 (diff)
downloadrygel-2bbdbb1b47ad3a7e6cd710ca15ceb5b287d1e7d1.tar.gz
build: Don't install UI if preferences not built
fixes #208
Diffstat (limited to 'data')
-rw-r--r--data/meson.build6
1 files changed, 4 insertions, 2 deletions
diff --git a/data/meson.build b/data/meson.build
index 3d97ff83..1e2ba170 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')