diff options
author | Jens Georg <mail@jensge.org> | 2022-04-11 23:27:19 +0200 |
---|---|---|
committer | Jens Georg <mail@jensge.org> | 2022-04-11 23:29:11 +0200 |
commit | 59531a73d0f2acdfaf27e4c75de58f540074b55d (patch) | |
tree | e9fd1df7f1f180d49e64d9f5dbcbeb8c0a92e52e | |
parent | 2f6c64911bc8bf7ced81be22db905a66b30c2eb6 (diff) | |
download | rygel-59531a73d0f2acdfaf27e4c75de58f540074b55d.tar.gz |
build: Don't install UI if preferences not built
fixes #208
-rw-r--r-- | data/meson.build | 6 |
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') |