From: raster Date: Thu, 21 Jun 2012 08:55:38 +0000 (+0000) Subject: use bin prefix for embryo_cc in edje_cc. X-Git-Tag: submit/2.0alpha-wayland/20121127.221958~229 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0848d057714be46b8d82fae81b3693d6384c5299;p=profile%2Fivi%2Fedje.git use bin prefix for embryo_cc in edje_cc. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@72580 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/ChangeLog b/ChangeLog index c98f3fe..340fb59 100644 --- a/ChangeLog +++ b/ChangeLog @@ -489,3 +489,10 @@ 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. + diff --git a/src/bin/edje_cc_out.c b/src/bin/edje_cc_out.c index 0e72e28..fa29725 100644 --- a/src/bin/edje_cc_out.c +++ b/src/bin/edje_cc_out.c @@ -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,