From 2bbdbb1b47ad3a7e6cd710ca15ceb5b287d1e7d1 Mon Sep 17 00:00:00 2001 From: Jens Georg Date: Mon, 11 Apr 2022 23:27:19 +0200 Subject: build: Don't install UI if preferences not built fixes #208 --- data/meson.build | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'data') 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') -- cgit v1.2.1