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
This commit is contained in:
parent
a761171009
commit
9ad7ddbcd4
|
@ -2,6 +2,7 @@
|
|||
# include <config.h>
|
||||
#endif
|
||||
|
||||
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <limits.h>
|
||||
|
@ -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);
|
||||
|
|
|
@ -33,7 +33,7 @@ extern "C" {
|
|||
# endif
|
||||
#endif /* ! _WIN32 */
|
||||
|
||||
|
||||
#define EFL_VERSION_1_18 1
|
||||
|
||||
/**
|
||||
* @ingroup Efl
|
||||
|
|
Loading…
Reference in New Issue