Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Sat, 04 Jul 2015 20:53:16 UTC Commit: 29acf91ea6d61bace6e2802116dffe651220cc45 https://github.com/geany/geany-plugins/commit/29acf91ea6d61bace6e2802116dffe...
Log Message: ----------- Merge pull request #236 from b4n/autotools/global-enable-switch
Add a flag to the Autotools build system to enable or disable all plugins at once.
Modified Paths: -------------- README build/common.m4
Modified: README 9 lines changed, 9 insertions(+), 0 deletions(-) =================================================================== @@ -95,6 +95,15 @@ Example:: This will force force both geanylua and spellcheck plugins to be enabled even if some dependencies are missing.
+You can also use the special option ``all-plugins`` to change the default for all +plugins. For example, using ``--enable-all-plugins`` will forcefully enable all +plugins as if you passed each plugin-specific ``--enable-<option>``. This can be +combined with specific plugin's ``--enable-<option>`` to only select a specific +subset of the plugins without listing them all. For example, you can use this +to easily enable one single plugin, using e.g. ``--disable-all-plugins +--enable-<option>``, or to forcefully enable all plugins but a few specific +ones, using e.g. ``--enable-all-plugins --enable-<option>=auto``. +
Other tweaks ============
Modified: build/common.m4 19 lines changed, 18 insertions(+), 1 deletions(-) =================================================================== @@ -1,16 +1,33 @@ +dnl _GP_ARG_DISABLE_ALL +dnl Adds the --disable-all-plugins option +dnl Sets gp_enable_all=[$enableval|auto] +AC_DEFUN([_GP_ARG_DISABLE_ALL], +[ + AC_ARG_ENABLE([all-plugins], + [AS_HELP_STRING([--disable-all-plugins], + [Disable all plugins])], + [gp_enable_all=$enableval], + [gp_enable_all=auto]) +]) + dnl GP_ARG_DISABLE(PluginName, default) dnl - default can either be yes(enabled) or no(disabled), or auto(to be used dnl with GP_CHECK_PLUGIN_DEPS) dnl Generates --enable/disable options with help strings AC_DEFUN([GP_ARG_DISABLE], [ + AC_REQUIRE([_GP_ARG_DISABLE_ALL]) + AC_ARG_ENABLE(m4_tolower(AS_TR_SH($1)), AS_HELP_STRING(m4_join(-, --m4_if($2, no, enable, disable), m4_tolower(AS_TR_SH($1))), [Do not build the $1 plugin]), m4_tolower(AS_TR_SH(enable_$1))=$enableval, - m4_tolower(AS_TR_SH(enable_$1))=$2) + [AS_CASE([$gp_enable_all], + [no], [m4_tolower(AS_TR_SH(enable_$1))=no], + [yes], [m4_tolower(AS_TR_SH(enable_$1))=yes], + [m4_tolower(AS_TR_SH(enable_$1))=$2])]) ])
dnl GP_CHECK_PLUGIN_DEPS(PluginName, VARIABLE-PREFIX, modules...)
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
plugins-commits@lists.geany.org