summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac31
-rw-r--r--src/lib/efl/Efl_Config.h.in9
2 files changed, 39 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index f8d1d9f9c1..ce70d86fa7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -19,6 +19,36 @@ AC_USE_SYSTEM_EXTENSIONS
19AM_INIT_AUTOMAKE([1.6 dist-bzip2 -Wall color-tests]) 19AM_INIT_AUTOMAKE([1.6 dist-bzip2 -Wall color-tests])
20m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) 20m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
21 21
22#### Apply configuring with legacy api's only, eo api's or both.
23
24EFL_API_LEGACY_DEF="#define EFL_NOLEGACY_API_SUPPORT"
25EFL_API_EO_DEF="#define EFL_EO_API_SUPPORT"
26efl_api="both"
27
28AC_ARG_WITH([api],
29 [AC_HELP_STRING([--with-api=@<:@eo/legacy/both@:>@], [Select the EFL API Model @<:@default=both@:>@])],
30 [efl_api=${withval}],
31 [efl_api="both"])
32
33case "$efl_api" in
34 eo)
35 EFL_API_LEGACY_DEF="#define EFL_NOLEGACY_API_SUPPORT"
36 EFL_API_EO_DEF="#define EFL_EO_API_SUPPORT"
37 ;;
38 legacy)
39 EFL_API_LEGACY_DEF=""
40 EFL_API_EO_DEF=""
41 ;;
42 both)
43 EFL_API_LEGACY_DEF=""
44 EFL_API_EO_DEF="#define EFL_EO_API_SUPPORT"
45 ;;
46 *) AC_MSG_ERROR([Invalid web backend: must be eo, legacy or both]) ;;
47esac
48
49AC_SUBST(EFL_API_LEGACY_DEF)
50AC_SUBST(EFL_API_EO_DEF)
51
22#### Additional options to configure 52#### Additional options to configure
23 53
24AC_ARG_WITH([profile], 54AC_ARG_WITH([profile],
@@ -3786,6 +3816,7 @@ else
3786fi 3816fi
3787 3817
3788echo "Configuration...: ${COLOR_OTHER}profile=${build_profile} os=${osname}${COLOR_RESET}" 3818echo "Configuration...: ${COLOR_OTHER}profile=${build_profile} os=${osname}${COLOR_RESET}"
3819echo " EFL API Set...: ${efl_api}"
3789echo " CPU Extensions: ${host_cpu} (${features_cpu})" 3820echo " CPU Extensions: ${host_cpu} (${features_cpu})"
3790echo " System Feature: ${features_system}" 3821echo " System Feature: ${features_system}"
3791echo " Threads.......: ${efl_have_threads} (${features_thread})" 3822echo " Threads.......: ${efl_have_threads} (${features_thread})"
diff --git a/src/lib/efl/Efl_Config.h.in b/src/lib/efl/Efl_Config.h.in
index 30c18aef20..e76c9e5f55 100644
--- a/src/lib/efl/Efl_Config.h.in
+++ b/src/lib/efl/Efl_Config.h.in
@@ -1,6 +1,13 @@
1#ifndef EFL_CONFIG_H 1#ifndef EFL_CONFIG_H
2#define EFL_CONFIG_H 2#define EFL_CONFIG_H
3 3
4#define XYXYXY 1 4/* Add -DEFL_API_OVERRIDE ot your CFLAGS to override the default
5 * installed api set and then fter that -DEFL_NOLEGACY_API_SUPPORT
6 * and/or -DEFL_EO_API_SUPPORT as desired
7 */
8#ifndef EFL_API_OVERRIDE
9@EFL_API_LEGACY_DEF@
10@EFL_API_EO_DEF@
11#endif
5 12
6#endif 13#endif