From 383592b44402e8552a85b8dc5d152717871d48dd Mon Sep 17 00:00:00 2001 From: Cedric Bail Date: Thu, 27 Jun 2013 15:51:07 +0900 Subject: [PATCH] eo: eo is absolutely necessary by now, can't be disabled any more. --- configure.ac | 3 +++ m4/efl_eo.m4 | 6 ++++++ src/lib/efl/Efl_Config.h.in | 5 ++++- 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 m4/efl_eo.m4 diff --git a/configure.ac b/configure.ac index 1d61972f80..ce37914e9e 100644 --- a/configure.ac +++ b/configure.ac @@ -25,6 +25,9 @@ EFL_API_LEGACY_DEF="#define EFL_NOLEGACY_API_SUPPORT" EFL_API_EO_DEF="#define EFL_EO_API_SUPPORT" efl_api="both" +#### For the moment the Eo EFL API is not ready you need to explicitely optin. +EFL_ENABLE_EO_API_SUPPORT + AC_ARG_WITH([api], [AC_HELP_STRING([--with-api=@<:@eo/legacy/both@:>@], [Select the EFL API Model @<:@default=both@:>@])], [efl_api=${withval}], diff --git a/m4/efl_eo.m4 b/m4/efl_eo.m4 new file mode 100644 index 0000000000..864baf5fc1 --- /dev/null +++ b/m4/efl_eo.m4 @@ -0,0 +1,6 @@ +dnl use: EFL_ENABLE_EO_API_SUPPORT +AC_DEFUN([EFL_ENABLE_EO_API_SUPPORT], +[ + AC_DEFINE([EFL_EO_API_SUPPORT], [1], [Enable access to unstable EFL Eo API]) +]) + diff --git a/src/lib/efl/Efl_Config.h.in b/src/lib/efl/Efl_Config.h.in index e76c9e5f55..5bf7f6a004 100644 --- a/src/lib/efl/Efl_Config.h.in +++ b/src/lib/efl/Efl_Config.h.in @@ -7,7 +7,10 @@ */ #ifndef EFL_API_OVERRIDE @EFL_API_LEGACY_DEF@ -@EFL_API_EO_DEF@ +/* You can't disable Eo API anymore as EFL use it everywhere internally + and we don't want to expose it publicly just yet, so keep it hidden + and require an explicit request to get it. */ +/* @EFL_API_EO_DEF@ */ #endif #endif