use proper prefix finding for epp.
authorraster <raster>
Mon, 21 Mar 2011 02:47:23 +0000 (02:47 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 21 Mar 2011 02:47:23 +0000 (02:47 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@57927 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/edje_cc_parse.c

index 40a457a..20faac6 100644 (file)
@@ -30,6 +30,7 @@ void *alloca (size_t);
 #include <math.h>
 
 #include "edje_cc.h"
+#include "edje_prefix.h"
 #include <Ecore.h>
 #include <Ecore_File.h>
 
@@ -638,7 +639,7 @@ get_verbatim_line2(void)
 void
 compile(void)
 {
-   char buf[4096];
+   char buf[4096], buf2[4096];
    char inc[4096];
    static char tmpn[4096];
    int fd;
@@ -693,10 +694,11 @@ compile(void)
         * Run the input through the C pre-processor.
         */
         ret = -1;
-        if (ecore_file_exists(EPP_DIR"/epp"))
+        snprintf(buf2, sizeof(buf2), "%s/edje/utils/epp", e_prefix_lib_get());
+        if (ecore_file_exists(buf2))
           {
-             snprintf(buf, sizeof(buf), EPP_DIR"/epp %s -I%s %s -o %s",
-                      file_in, inc, def, tmpn);
+             snprintf(buf, sizeof(buf), "%s %s -I%s %s -o %s",
+                      buf2, file_in, inc, def, tmpn);
              ret = system(buf);
           }
        /*