forked from enlightenment/efl
edje: export EINA_VERSION_MAJOR/MINOR when compiling edc files
This commit is contained in:
parent
42a46214c4
commit
18ee1e1789
|
@ -1,3 +1,7 @@
|
|||
2013-08-29 Boris Faure
|
||||
|
||||
* Edje: export EINA_VERSION_MAJOR/MINOR when compiling edc files
|
||||
|
||||
2013-08-29 Cedric Bail
|
||||
|
||||
* Evas: add interceptor for focus_set.
|
||||
|
|
|
@ -843,23 +843,31 @@ compile(void)
|
|||
buf2[0] = '\0';
|
||||
if (getenv("EFL_RUN_IN_TREE"))
|
||||
{
|
||||
snprintf(buf2, sizeof(buf2), "%s/src/bin/edje/epp/epp" EPP_EXT,
|
||||
snprintf(buf2, sizeof(buf2),
|
||||
"%s/src/bin/edje/epp/epp" EPP_EXT,
|
||||
PACKAGE_BUILD_DIR);
|
||||
if (!ecore_file_exists(buf2))
|
||||
buf2[0] = '\0';
|
||||
}
|
||||
|
||||
if (buf2[0] == '\0')
|
||||
snprintf(buf2, sizeof(buf2), "%s/edje/utils/" MODULE_ARCH "/epp" EPP_EXT,
|
||||
snprintf(buf2, sizeof(buf2),
|
||||
"%s/edje/utils/" MODULE_ARCH "/epp" EPP_EXT,
|
||||
eina_prefix_lib_get(pfx));
|
||||
if (ecore_file_exists(buf2))
|
||||
{
|
||||
if (anotate)
|
||||
snprintf(buf, sizeof(buf), "%s -anotate -a %s %s -I%s %s -o %s",
|
||||
buf2, watchfile ? watchfile : "/dev/null", file_in, inc, def, tmpn);
|
||||
snprintf(buf, sizeof(buf), "%s -anotate -a %s %s -I%s %s -o %s"
|
||||
" -DEINA_VERSION_MAJOR=%d -DEFL_VERSION_MINOR=%d",
|
||||
buf2, watchfile ? watchfile : "/dev/null", file_in,
|
||||
inc, def, tmpn,
|
||||
EINA_VERSION_MAJOR, EINA_VERSION_MINOR);
|
||||
else
|
||||
snprintf(buf, sizeof(buf), "%s -a %s %s -I%s %s -o %s",
|
||||
buf2, watchfile ? watchfile : "/dev/null", file_in, inc, def, tmpn);
|
||||
snprintf(buf, sizeof(buf), "%s -a %s %s -I%s %s -o %s"
|
||||
" -DEINA_VERSION_MAJOR=%d -DEFL_VERSION_MINOR=%d",
|
||||
buf2, watchfile ? watchfile : "/dev/null", file_in,
|
||||
inc, def, tmpn,
|
||||
EINA_VERSION_MAJOR, EINA_VERSION_MINOR);
|
||||
ret = system(buf);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue