Patch #2190 2007-09-26 09:38
horakdan
build all contrib plugins except specified ones- Download
- 2190-build_all_cont.patch (2.3 KB)
--- acinclude.m4.orig 2007-09-26 11:00:04.000000000 +0200
+++ acinclude.m4 2007-09-26 11:08:13.000000000 +0200
@@ -247,20 +247,21 @@
[ --with-contrib-plugins=<list> compile contrib plugins in <list>. ]
[ plugins may be separated with commas. ]
[ "all" compiles all contrib plugins ]
+ [ "all,-help" compiles all contrib plugins except the help plugin ]
[ By default, no contrib plugins are compiled ]
[ Plugin names are: byogames,cbkoders,codesnippets,]
[ codestat,dragscroll,envvars, ]
[ help,keybinder,libfinder,profiler, ]
[ regex,exporter,symtab,wxsmith ],
plugins="$withval", plugins="none")
-if test "x$plugins" = "xall"; then
- BUILD_CONTRIB_ALL
- AC_MSG_RESULT(all)
-else
- plugins=`echo $plugins | sed 's/,/ /g'`
- for plugin in $plugins
- do
+
+plugins=`echo $plugins | sed 's/,/ /g'`
+for plugin in $plugins
+do
case "$plugin" in
+ all)
+ BUILD_CONTRIB_ALL
+ ;;
byogames)
AM_CONDITIONAL([BUILD_BYOGAMES], [true])
;;
@@ -303,13 +304,55 @@
wxsmith)
AM_CONDITIONAL([BUILD_WXSMITH], [true])
;;
+ -byogames)
+ AM_CONDITIONAL([BUILD_BYOGAMES], [false])
+ ;;
+ -cbkoders)
+ AM_CONDITIONAL([BUILD_CBKODERS], [false])
+ ;;
+ -codesnippets)
+ AM_CONDITIONAL([BUILD_CODESNIPPETS], [false])
+ ;;
+ -codestat)
+ AM_CONDITIONAL([BUILD_CODESTAT], [false])
+ ;;
+ -dragscroll)
+ AM_CONDITIONAL([BUILD_DRAGSCROLL], [false])
+ ;;
+ -envvars)
+ AM_CONDITIONAL([BUILD_ENVVARS], [false])
+ ;;
+ -help)
+ AM_CONDITIONAL([BUILD_HELP], [false])
+ ;;
+ -keybinder)
+ AM_CONDITIONAL([BUILD_KEYBINDER], [false])
+ ;;
+ -libfinder)
+ AM_CONDITIONAL([BUILD_LIBFINDER], [false])
+ ;;
+ -profiler)
+ AM_CONDITIONAL([BUILD_PROFILER], [false])
+ ;;
+ -regex)
+ AM_CONDITIONAL([BUILD_REGEX], [false])
+ ;;
+ -exporter)
+ AM_CONDITIONAL([BUILD_EXPORTER], [false])
+ ;;
+ -symtab)
+ AM_CONDITIONAL([BUILD_SYMTAB], [false])
+ ;;
+ -wxsmith)
+ AM_CONDITIONAL([BUILD_WXSMITH], [false])
+ ;;
*)
echo "Unknown contrib plugin $plugin, ignoring"
;;
esac
- done
- AC_MSG_RESULT($plugins)
-fi
+done
+AC_MSG_RESULT($plugins)
+
AC_SUBST(BUILD_BYOGAMES)
AC_SUBST(BUILD_CBKODERS)
History
horakdan 2007-09-26 09:41
this patch modifies the configure option --with-contrib-plugins to accept values like "all,-help" which will build all contrib plugins except the help plugin