aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/edje
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2018-11-02 12:38:02 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2018-11-02 12:43:26 +0100
commit4dfaf5729ee5da36b240665674201509ac32b1f3 (patch)
treebb8b345370eb9db4d27bf78e844bc7a6a4204851 /src/bin/edje
parentelm_toolbar: fix prio.visible (diff)
downloadefl-4dfaf5729ee5da36b240665674201509ac32b1f3.tar.gz
codegen: ensure we include the filename and not the path
this mirrors the behaviour of eolian & eolian_cxx. Usally a generator just generates the files side by side, the directory then needs to be included anyways. thus adding the include with another subdirectory is unusal. Differential Revision: https://phab.enlightenment.org/D7235
Diffstat (limited to 'src/bin/edje')
-rw-r--r--src/bin/edje/edje_codegen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/edje/edje_codegen.c b/src/bin/edje/edje_codegen.c
index cbca138429..f55c8f9a78 100644
--- a/src/bin/edje/edje_codegen.c
+++ b/src/bin/edje/edje_codegen.c
@@ -13,6 +13,7 @@
#include <Ecore.h>
#include <Ecore_Getopt.h>
#include <Ecore_Evas.h>
+#include <Ecore_File.h>
#include "Edje.h"
#define EDJE_EDIT_IS_UNSTABLE_AND_I_KNOW_ABOUT_IT 1
@@ -432,7 +433,7 @@ _write_headers(const char *filename)
free(str);
- snprintf(buf, sizeof(buf), C_HEADER, filename);
+ snprintf(buf, sizeof(buf), C_HEADER, ecore_file_file_get(filename));
if (fwrite(buf, strlen(buf), 1, source_fd) != 1)
return EINA_FALSE;