Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Sat, 06 Jun 2015 13:23:37 UTC Commit: 34934eba9d33e8851101b72ee42887dd83c12881 https://github.com/geany/geany-plugins/commit/34934eba9d33e8851101b72ee42887...
Log Message: ----------- autotools: Add a flag to enable or disable all plugins
This allows to change the default for whether every plugins are enabled or disabled, effectively allowing to easily select either all, or only a specific set of plugins.
To force enable all plugins: configure --enable-all-plugins
To force enable all plugins, but disable Addons: configure --enable-all-plugins --disable-addons
To force enable all plugins, but Addons which is checked automatically: configure --enable-all-plugins --enable-addons=auto
To disable all plugins, but force enable Addons: configure --disable-all-plugins --enable-addons
Modified Paths: -------------- build/common.m4
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