[gnome-software/mwleeds/hardcoded-pwa-list: 2/2] WIP




commit 3e29d81c14454f33d24c8ad2afec6c49cf43a9bb
Author: Phaedrus Leeds <mwleeds protonmail com>
Date:   Tue Mar 8 18:06:10 2022 -0800

    WIP

 .gitmodules               |  3 +++
 meson.build               | 14 ++++++++++++++
 meson_options.txt         |  2 ++
 submodules/gnome-pwa-list |  1 +
 4 files changed, 20 insertions(+)
---
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 000000000..8e0d7c323
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "gnome-pwa-list"]
+       path = submodules/gnome-pwa-list
+       url = https://gitlab.gnome.org/mwleeds/gnome-pwa-list.git
diff --git a/meson.build b/meson.build
index 2f729b9e7..0b241f6c9 100644
--- a/meson.build
+++ b/meson.build
@@ -258,6 +258,20 @@ if get_option('snap')
   snap = dependency('snapd-glib', version : '>= 1.50')
 endif
 
+if get_option('hardcoded_foss_webapps') or get_option('hardcoded_proprietary_webapps')
+  assert(get_option('webapps'), 'webapps option must be true when 
hardcoded_foss_webapps/hardcoded_proprietary_webapps is')
+endif
+if get_option('hardcoded_foss_webapps')
+  install_data('submodules/gnome-pwa-list/gnome-pwa-list-foss.xml',
+    install_dir : join_paths(get_option('datadir'), 'app-info', 'xmls'),
+  )
+endif
+if get_option('hardcoded_proprietary_webapps')
+  install_data('submodules/gnome-pwa-list/gnome-pwa-list-proprietary.xml',
+    install_dir : join_paths(get_option('datadir'), 'app-info', 'xmls'),
+  )
+endif
+
 gnome = import('gnome')
 i18n = import('i18n')
 
diff --git a/meson_options.txt b/meson_options.txt
index 030da3e23..2635a8ad3 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -10,6 +10,8 @@ option('flatpak', type : 'boolean', value : true, description : 'enable Flatpak
 option('malcontent', type : 'boolean', value : true, description : 'enable parental controls support using 
libmalcontent')
 option('rpm_ostree', type : 'boolean', value : false, description : 'enable rpm-ostree support')
 option('webapps', type : 'boolean', value : false, description : 'enable webapps support')
+option('hardcoded_foss_webapps', type : 'boolean', value : false, description : 'enable inclusion of a 
default set of installable FOSS webapps')
+option('hardcoded_proprietary_webapps', type : 'boolean', value : false, description : 'enable inclusion of 
a default set of installable proprietary webapps')
 option('gudev', type : 'boolean', value : true, description : 'enable GUdev support')
 option('apt', type : 'boolean', value : false, description : 'enable apt: URL handler in the .desktop file')
 option('snap', type : 'boolean', value : false, description : 'enable Snap support')
diff --git a/submodules/gnome-pwa-list b/submodules/gnome-pwa-list
new file mode 160000
index 000000000..68223a65c
--- /dev/null
+++ b/submodules/gnome-pwa-list
@@ -0,0 +1 @@
+Subproject commit 68223a65c94db93acea9db69b19985297cd57917


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