From: Mike Blumenkrantz Date: Mon, 29 Feb 2016 12:30:31 +0000 (-0500) Subject: efl+edje: add EFL_VERSION_1_18 define for detecting 1.18 feature support X-Git-Tag: upstream/1.20.0~7356 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9ad7ddbcd425702077b7cbf17c9de0f97e1ec956;p=platform%2Fupstream%2Fefl.git efl+edje: add EFL_VERSION_1_18 define for detecting 1.18 feature support this define means that any 1.18 feature can now be detected by testing for the presence of this define, even before the release has gone out for future (non-bugfix) releases, further defines should be created in addition to this one in order to provide detection for features in each version --- diff --git a/src/bin/edje/edje_cc_parse.c b/src/bin/edje/edje_cc_parse.c index c7ea53a..31eab32 100644 --- a/src/bin/edje/edje_cc_parse.c +++ b/src/bin/edje/edje_cc_parse.c @@ -2,6 +2,7 @@ # include #endif + #include #include #include @@ -22,6 +23,11 @@ # define EPP_EXT #endif +#define EDJE_1_18_SUPPORTED " -DEFL_VERSION_1_18=1 " + +#define EDJE_CC_EFL_VERSION_SUPPORTED \ + EDJE_1_18_SUPPORTED + static void new_object(void); static void new_statement(void); static char *perform_math (char *input); @@ -981,19 +987,22 @@ compile(void) inc = ecore_file_dir_get(file_in); if (depfile) snprintf(buf, sizeof(buf), "%s -MMD %s -MT %s %s -I%s %s -o %s" - " -DEFL_VERSION_MAJOR=%d -DEFL_VERSION_MINOR=%d", + " -DEFL_VERSION_MAJOR=%d -DEFL_VERSION_MINOR=%d" + EDJE_CC_EFL_VERSION_SUPPORTED, buf2, depfile, file_out, file_in, inc ? inc : "./", def, clean_file, EINA_VERSION_MAJOR, EINA_VERSION_MINOR); else if (annotate) snprintf(buf, sizeof(buf), "%s -annotate -a %s %s -I%s %s -o %s" - " -DEFL_VERSION_MAJOR=%d -DEFL_VERSION_MINOR=%d", + " -DEFL_VERSION_MAJOR=%d -DEFL_VERSION_MINOR=%d" + EDJE_CC_EFL_VERSION_SUPPORTED, buf2, watchfile ? watchfile : "/dev/null", file_in, inc ? inc : "./", def, clean_file, EINA_VERSION_MAJOR, EINA_VERSION_MINOR); else snprintf(buf, sizeof(buf), "%s -a %s %s -I%s %s -o %s" - " -DEFL_VERSION_MAJOR=%d -DEFL_VERSION_MINOR=%d", + " -DEFL_VERSION_MAJOR=%d -DEFL_VERSION_MINOR=%d" + EDJE_CC_EFL_VERSION_SUPPORTED, buf2, watchfile ? watchfile : "/dev/null", file_in, inc ? inc : "./", def, clean_file, EINA_VERSION_MAJOR, EINA_VERSION_MINOR); diff --git a/src/lib/efl/Efl.h b/src/lib/efl/Efl.h index 7f853f9..82352fd 100644 --- a/src/lib/efl/Efl.h +++ b/src/lib/efl/Efl.h @@ -33,7 +33,7 @@ extern "C" { # endif #endif /* ! _WIN32 */ - +#define EFL_VERSION_1_18 1 /** * @ingroup Efl