use bin prefix for embryo_cc in edje_cc.
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 21 Jun 2012 08:55:38 +0000 (08:55 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 21 Jun 2012 08:55:38 +0000 (08:55 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/edje@72580 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

ChangeLog
src/bin/edje_cc_out.c

index c98f3fe..340fb59 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
 2012-06-20  Kim Shinwoo
 
        * Add edje_object_access_part_list_get and acess flags in edc file.
+
+2012-05-21 Carsten Haitzler (The Rasterman)
+
+        * Improve edje_cc slightly to use prefix for full path to
+        embryo_cc. this still like before requires embryo and edje to share
+        the same install prefix for edje_cc to work.
+
index 0e72e28..fa29725 100644 (file)
@@ -1272,7 +1272,6 @@ data_write_scripts(Eet_File *ef)
         sc->ef = ef;
         sc->cd = cd;
         sc->i = i;
-        // XXX: from here
         snprintf(sc->tmpn, PATH_MAX, "%s/edje_cc.sma-tmp-XXXXXX", tmp_dir);
         sc->tmpn_fd = mkstemp(sc->tmpn);
         if (sc->tmpn_fd < 0)
@@ -1287,11 +1286,11 @@ data_write_scripts(Eet_File *ef)
                              "compilation.\n", sc->tmpn);
           }
         create_script_file(ef, sc->tmpn, cd, sc->tmpn_fd);
-        // XXX; to here -> can make set of threads that report back and then
-        // spawn
         snprintf(buf, sizeof(buf),
-                 "embryo_cc -i %s/include -o %s %s",
-                 eina_prefix_data_get(pfx), sc->tmpo, sc->tmpn);
+                 "%s/embryo_cc -i %s/include -o %s %s",
+                 eina_prefix_bin_get(pfx), 
+                 eina_prefix_data_get(pfx),
+                 sc->tmpo, sc->tmpn);
         pending_threads++;
         sc->exe = ecore_exe_run(buf, sc);
         ecore_event_handler_add(ECORE_EXE_EVENT_DEL,