edje_cc_parse: Fix not to convert macros to a single string
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Tue, 10 Jan 2017 13:23:35 +0000 (22:23 +0900)
committerJaehyun Cho <jae_hyun.cho@samsung.com>
Wed, 11 Jan 2017 01:29:46 +0000 (10:29 +0900)
Double quotation marks convert macros to a single macro string and only
the first macro becomes valid.

So double quotation marks are not used for macros.

src/bin/edje/edje_cc_parse.c

index f0bd003..87ad7ba 100644 (file)
@@ -1070,7 +1070,7 @@ 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\""
+                        " -I\"%s\" %s -o \"%s\""
                         " -DEFL_VERSION_MAJOR=%d -DEFL_VERSION_MINOR=%d"
                         EDJE_CC_EFL_VERSION_SUPPORTED,
                         buf2, depfile, file_out, file_in,
@@ -1078,7 +1078,7 @@ compile(void)
                         EINA_VERSION_MAJOR, EINA_VERSION_MINOR);
              else if (annotate)
                snprintf(buf, sizeof(buf), "\"%s\" -annotate -a \"%s\" \"%s\""
-                        " -I\"%s\" \"%s\" -o \"%s\""
+                        " -I\"%s\" %s -o \"%s\""
                         " -DEFL_VERSION_MAJOR=%d -DEFL_VERSION_MINOR=%d"
                         EDJE_CC_EFL_VERSION_SUPPORTED,
                         buf2, watchfile ? watchfile : "/dev/null", file_in,
@@ -1086,7 +1086,7 @@ compile(void)
                         EINA_VERSION_MAJOR, EINA_VERSION_MINOR);
              else
                snprintf(buf, sizeof(buf), "\"%s\" -a \"%s\" \"%s\" -I\"%s\""
-                        " \"%s\" -o \"%s\""
+                        " %s -o \"%s\""
                         " -DEFL_VERSION_MAJOR=%d -DEFL_VERSION_MINOR=%d"
                         EDJE_CC_EFL_VERSION_SUPPORTED,
                         buf2, watchfile ? watchfile : "/dev/null", file_in,