#include <math.h>
#include "edje_cc.h"
+#include "edje_prefix.h"
#include <Ecore.h>
#include <Ecore_File.h>
void
compile(void)
{
- char buf[4096];
+ char buf[4096], buf2[4096];
char inc[4096];
static char tmpn[4096];
int fd;
* 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);
}
/*