summaryrefslogtreecommitdiff
path: root/src/bin/eolian
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2019-09-24 18:17:59 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2019-09-24 18:27:37 +0200
commit72698aa6f5849ee6d24a76ae886d7817ea4373ae (patch)
tree9181fb371afe6dc13ea12a2f74eceb1f73d9b266 /src/bin/eolian
parent6ea61dc83a3dfd3179ab9067987883e4dc36a63a (diff)
eolian: always allow implementation for eot files
This is so the build system can unconditionally generate .eot.c without worrying whether there's something to generate.
Diffstat (limited to 'src/bin/eolian')
-rw-r--r--src/bin/eolian/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/eolian/main.c b/src/bin/eolian/main.c
index 0545430..114f989 100644
--- a/src/bin/eolian/main.c
+++ b/src/bin/eolian/main.c
@@ -392,8 +392,11 @@ _write_source(const Eolian_State *eos, const char *ofname,
392 const Eolian_Class *cl = eolian_state_class_by_file_get(eos, ifname); 392 const Eolian_Class *cl = eolian_state_class_by_file_get(eos, ifname);
393 eo_gen_types_source_gen(eolian_state_objects_by_file_get(eos, ifname), buf); 393 eo_gen_types_source_gen(eolian_state_objects_by_file_get(eos, ifname), buf);
394 eo_gen_source_gen(cl, buf); 394 eo_gen_source_gen(cl, buf);
395 if (cl || (eot && eina_strbuf_length_get(buf))) 395 if (cl || eot)
396 { 396 {
397 /* always have at least a stub in order to allow unconditional generation */
398 if (!eina_strbuf_length_get(buf))
399 eina_strbuf_append(buf, "/* Nothing to implement. */\n");
397 if (!_write_file(ofname, buf)) 400 if (!_write_file(ofname, buf))
398 goto done; 401 goto done;
399 ret = EINA_TRUE; 402 ret = EINA_TRUE;