[gnome-software] build: Add a default_featured_apps option
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] build: Add a default_featured_apps option
- Date: Wed, 4 Dec 2019 22:09:27 +0000 (UTC)
commit ee36e68a92d43587293c513bc60f57b2e85cd744
Author: Philip Withnall <withnall endlessm com>
Date: Wed Dec 4 13:34:56 2019 +0000
build: Add a default_featured_apps option
Add a `default_featured_apps` boolean option which controls whether the
default featured apps list (`org.gnome.Software.Featured.xml`) is
installed. On most distros, it makes sense to install this (and the
option defaults to `true`), but some distros will want finer control
over their featured apps (or to override the entire list). Those distros
should use `-Ddefault_featured_apps=false` and set the default value of
`external-appstream-urls` in GSettings to point to a relevant override
appstream file which sets the desired featured apps.
Signed-off-by: Philip Withnall <withnall endlessm com>
Fixes: #692
data/assets/meson.build | 8 +++++---
meson_options.txt | 1 +
2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/data/assets/meson.build b/data/assets/meson.build
index f74bafb7..b0371d8e 100644
--- a/data/assets/meson.build
+++ b/data/assets/meson.build
@@ -34,6 +34,8 @@ install_data([
install_dir : 'share/gnome-software'
)
-install_data('org.gnome.Software.Featured.xml',
- install_dir : 'share/app-info/xmls'
-)
+if get_option('default_featured_apps')
+ install_data('org.gnome.Software.Featured.xml',
+ install_dir : 'share/app-info/xmls'
+ )
+endif
diff --git a/meson_options.txt b/meson_options.txt
index 74af14ba..d0bb00ae 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -19,4 +19,5 @@ option('external_appstream', type : 'boolean', value : false, description : 'ena
option('valgrind', type : 'boolean', value : true, description : 'enable Valgrind debugging integration')
option('gtk_doc', type : 'boolean', value : true, description : 'enable API reference')
option('hardcoded_popular', type : 'boolean', value : true, description : 'enable hardcoded-popular apps
plugin')
+option('default_featured_apps', type : 'boolean', value : true, description : 'enable installation of
default featured apps list')
option('mogwai', type : 'boolean', value : false, description : 'enable metered data support using Mogwai')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]