TOOLS: configure options for all-unstable-engines

This commit is contained in:
rsn8887 2017-03-09 10:25:52 -06:00
parent 12bedb4a93
commit bd54615363

30
configure vendored
View File

@ -626,6 +626,26 @@ engine_disable_all() {
done
}
# Enable *all unstable* engines
engine_enable_all_unstable() {
for engine in $_engines; do
engine_build_default=`get_engine_build_default $engine`
if test $engine_build_default = no ; then
engine_enable $engine
fi
done
}
# Disable *all unstable* engines
engine_disable_all_unstable() {
for engine in $_engines; do
engine_build_default=`get_engine_build_default $engine`
if test $engine_build_default = no ; then
engine_disable ${engine}
fi
done
}
# Enable the given engine
engine_enable() {
# Get the parameter
@ -946,6 +966,10 @@ Game engines:
--enable-all-engines enable all engines, including those which are
broken or unsupported
--disable-all-engines disable all engines
--enable-all-unstable-engines
enable all engines which are broken or unsupported
--disable-all-unstable-engines
disable all engines which are broken or unsupported
--enable-engine=<engine name>[,<engine name>...] enable engine(s) listed
--disable-engine=<engine name>[,<engine name>...] disable engine(s) listed
--enable-engine-static=<engine name>[,<engine name>...]
@ -1350,6 +1374,12 @@ for ac_option in $@; do
--disable-all-engines)
engine_disable_all
;;
--enable-all-unstable-engines)
engine_enable_all_unstable
;;
--disable-all-unstable-engines)
engine_disable_all_unstable
;;
--enable-engine=* | --enable-engines=*)
for engine_name in `echo $ac_option | cut -d '=' -f 2- | tr ',' '\n'`; do
engine_enable "${engine_name}"