[gnome-software] build: Add option to enable/disable shell-extensions
- From: Joaquim Manuel Pereira Rocha <jrocha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] build: Add option to enable/disable shell-extensions
- Date: Wed, 16 Mar 2016 13:11:59 +0000 (UTC)
commit 38068557e5e8901668a4098eec4c446f68113583
Author: Joaquim Rocha <jrocha endless com>
Date: Tue Mar 15 16:27:06 2016 +0100
build: Add option to enable/disable shell-extensions
configure.ac | 11 +++++++++++
src/plugins/Makefile.am | 7 ++++++-
2 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index bee42b1..ef556fd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -211,6 +211,16 @@ AS_IF([test "x$enable_steam" = "xyes"], [
])
AM_CONDITIONAL(HAVE_STEAM, test x$enable_steam = xyes)
+# Shell Extensions
+AC_ARG_ENABLE(shell_extensions,
+ [AS_HELP_STRING([--enable-shell-extensions],
+ [enable GNOME shell extensions support [default=yes]])],,
+ enable_shell_extensions=yes)
+AS_IF([test "x$enable_shell_extensions" = "xyes"], [
+ AC_DEFINE(HAVE_SHELL_EXTENSIONS,1,[Build GNOME Shell extensions])], [
+])
+AM_CONDITIONAL(HAVE_SHELL_EXTENSIONS, [test "x$enable_shell_extensions" = "xyes"])
+
# this refers to the gnome-software plugin API version
# this is not in any way related to a package or soname version
GS_PLUGIN_API_VERSION=9
@@ -261,4 +271,5 @@ echo "
Limba support: ${have_limba}
XDG-APP support: ${have_xdg_app}
Steam support: ${enable_steam}
+ GNOME Shell ext. support: ${enable_shell_extensions}
"
diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am
index 90e6f1f..d302ad2 100644
--- a/src/plugins/Makefile.am
+++ b/src/plugins/Makefile.am
@@ -40,7 +40,6 @@ plugin_LTLIBRARIES = \
libgs_plugin_provenance.la \
libgs_plugin_ubuntu-reviews.la \
libgs_plugin_fedora_tagger_usage.la \
- libgs_plugin_shell-extensions.la \
libgs_plugin_epiphany.la \
libgs_plugin_icons.la
@@ -56,6 +55,10 @@ plugin_LTLIBRARIES += \
libgs_plugin_packagekit.la
endif
+if HAVE_SHELL_EXTENSIONS
+plugin_LTLIBRARIES += libgs_plugin_shell-extensions.la
+endif
+
if HAVE_FIRMWARE
plugin_LTLIBRARIES += libgs_plugin_fwupd.la
endif
@@ -78,10 +81,12 @@ libgs_plugin_dummy_la_LIBADD = $(GS_PLUGIN_LIBS)
libgs_plugin_dummy_la_LDFLAGS = -module -avoid-version
libgs_plugin_dummy_la_CFLAGS = $(GS_PLUGIN_CFLAGS) $(WARN_CFLAGS)
+if HAVE_SHELL_EXTENSIONS
libgs_plugin_shell_extensions_la_SOURCES = gs-plugin-shell-extensions.c
libgs_plugin_shell_extensions_la_LIBADD = $(GS_PLUGIN_LIBS) $(JSON_GLIB_LIBS)
libgs_plugin_shell_extensions_la_LDFLAGS = -module -avoid-version
libgs_plugin_shell_extensions_la_CFLAGS = $(GS_PLUGIN_CFLAGS) $(WARN_CFLAGS)
+endif
libgs_plugin_fedora_distro_upgrades_la_SOURCES = gs-plugin-fedora-distro-upgrades.c
libgs_plugin_fedora_distro_upgrades_la_LIBADD = $(GS_PLUGIN_LIBS) $(JSON_GLIB_LIBS) $(SOUP_LIBS)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]