forked from enlightenment/efl
edje_cc_parse: Compile EDC file whose path contains space character.
Previously, edje_cc could not compile EDC file whose path contains space character since edje_cc interpreted the EDC file as separate 2 inputs. (i.e. "input file.edc" was interpreted as "input" and "file.edc") This patch enables edje_cc to interpret above case correctly.
This commit is contained in:
parent
b1aa6360e0
commit
c670a32053
|
@ -1069,21 +1069,24 @@ compile(void)
|
||||||
|
|
||||||
inc = ecore_file_dir_get(file_in);
|
inc = ecore_file_dir_get(file_in);
|
||||||
if (depfile)
|
if (depfile)
|
||||||
snprintf(buf, sizeof(buf), "%s -MMD %s -MT %s %s -I%s %s -o %s"
|
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,
|
EDJE_CC_EFL_VERSION_SUPPORTED,
|
||||||
buf2, depfile, file_out, file_in,
|
buf2, depfile, file_out, file_in,
|
||||||
inc ? inc : "./", def, clean_file,
|
inc ? inc : "./", def, clean_file,
|
||||||
EINA_VERSION_MAJOR, EINA_VERSION_MINOR);
|
EINA_VERSION_MAJOR, EINA_VERSION_MINOR);
|
||||||
else if (annotate)
|
else if (annotate)
|
||||||
snprintf(buf, sizeof(buf), "%s -annotate -a %s %s -I%s %s -o %s"
|
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,
|
EDJE_CC_EFL_VERSION_SUPPORTED,
|
||||||
buf2, watchfile ? watchfile : "/dev/null", file_in,
|
buf2, watchfile ? watchfile : "/dev/null", file_in,
|
||||||
inc ? inc : "./", def, clean_file,
|
inc ? inc : "./", def, clean_file,
|
||||||
EINA_VERSION_MAJOR, EINA_VERSION_MINOR);
|
EINA_VERSION_MAJOR, EINA_VERSION_MINOR);
|
||||||
else
|
else
|
||||||
snprintf(buf, sizeof(buf), "%s -a %s %s -I%s %s -o %s"
|
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,
|
EDJE_CC_EFL_VERSION_SUPPORTED,
|
||||||
buf2, watchfile ? watchfile : "/dev/null", file_in,
|
buf2, watchfile ? watchfile : "/dev/null", file_in,
|
||||||
|
|
Loading…
Reference in New Issue