diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2013-04-25 00:31:31 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2013-04-25 00:32:13 +0900 |
commit | 7dfe2c557372bfb7b6ce775e0230d0e893325481 (patch) | |
tree | 1abc8b175379b05e0627f558f244aaa6ce297521 | |
parent | 5e4d26a1aad5275555b753823b8f9c3802d601bf (diff) |
add --with-api=XXX (both|legacy|eo) to define which api set to enable
by default (default == both).
Diffstat (limited to '')
-rw-r--r-- | configure.ac | 31 | ||||
-rw-r--r-- | src/lib/efl/Efl_Config.h.in | 9 |
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 | |||
19 | AM_INIT_AUTOMAKE([1.6 dist-bzip2 -Wall color-tests]) | 19 | AM_INIT_AUTOMAKE([1.6 dist-bzip2 -Wall color-tests]) |
20 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) | 20 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) |
21 | 21 | ||
22 | #### Apply configuring with legacy api's only, eo api's or both. | ||
23 | |||
24 | EFL_API_LEGACY_DEF="#define EFL_NOLEGACY_API_SUPPORT" | ||
25 | EFL_API_EO_DEF="#define EFL_EO_API_SUPPORT" | ||
26 | efl_api="both" | ||
27 | |||
28 | AC_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 | |||
33 | case "$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]) ;; | ||
47 | esac | ||
48 | |||
49 | AC_SUBST(EFL_API_LEGACY_DEF) | ||
50 | AC_SUBST(EFL_API_EO_DEF) | ||
51 | |||
22 | #### Additional options to configure | 52 | #### Additional options to configure |
23 | 53 | ||
24 | AC_ARG_WITH([profile], | 54 | AC_ARG_WITH([profile], |
@@ -3786,6 +3816,7 @@ else | |||
3786 | fi | 3816 | fi |
3787 | 3817 | ||
3788 | echo "Configuration...: ${COLOR_OTHER}profile=${build_profile} os=${osname}${COLOR_RESET}" | 3818 | echo "Configuration...: ${COLOR_OTHER}profile=${build_profile} os=${osname}${COLOR_RESET}" |
3819 | echo " EFL API Set...: ${efl_api}" | ||
3789 | echo " CPU Extensions: ${host_cpu} (${features_cpu})" | 3820 | echo " CPU Extensions: ${host_cpu} (${features_cpu})" |
3790 | echo " System Feature: ${features_system}" | 3821 | echo " System Feature: ${features_system}" |
3791 | echo " Threads.......: ${efl_have_threads} (${features_thread})" | 3822 | echo " 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 |