build: Print configure warning when trying --with-api=eo

Our code base simply do not work with the EO API alone right now. Leave the
option for testing but hide the knob to turn it on behind the beloved "I
know what I do" option.

Fixes T1558
This commit is contained in:
Stefan Schmidt 2014-10-30 09:14:48 +01:00
parent 24ee38f3c1
commit fc54d85251
1 changed files with 11 additions and 0 deletions

View File

@ -40,6 +40,7 @@ case "$efl_api" in
eo)
EFL_API_LEGACY_DEF="#define EFL_NOLEGACY_API_SUPPORT"
EFL_API_EO_DEF="#define EFL_EO_API_SUPPORT"
CFOPT_WARNING="xyes"
;;
legacy)
EFL_API_LEGACY_DEF=""
@ -4902,6 +4903,16 @@ if test -n "$CFOPT_WARNING"; then
echo "that, as opposed to compiling it out."
echo "_____________________________________________________________________"
fi
if test "x${efl_api}" = "xeo"; then
echo "_____________________________________________________________________"
echo "Using the EO based EFL API only does not work at the moment. We still"
echo "have a lot code that depends on the legacy interfaces. We provide"
echo "this option for testing once we are able to migrate to the EO based"
echo "API."
echo "If you are not working on this migration please leave the option set"
echo "to both as it will break your build if set to eo."
echo "_____________________________________________________________________"
fi
echo "_____________________________________________________________________"
echo ""
echo "==-- WARNING --=="