forked from enlightenment/efl
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.
This commit is contained in:
parent
6ea61dc83a
commit
72698aa6f5
|
@ -392,8 +392,11 @@ _write_source(const Eolian_State *eos, const char *ofname,
|
||||||
const Eolian_Class *cl = eolian_state_class_by_file_get(eos, ifname);
|
const Eolian_Class *cl = eolian_state_class_by_file_get(eos, ifname);
|
||||||
eo_gen_types_source_gen(eolian_state_objects_by_file_get(eos, ifname), buf);
|
eo_gen_types_source_gen(eolian_state_objects_by_file_get(eos, ifname), buf);
|
||||||
eo_gen_source_gen(cl, buf);
|
eo_gen_source_gen(cl, buf);
|
||||||
if (cl || (eot && eina_strbuf_length_get(buf)))
|
if (cl || eot)
|
||||||
{
|
{
|
||||||
|
/* always have at least a stub in order to allow unconditional generation */
|
||||||
|
if (!eina_strbuf_length_get(buf))
|
||||||
|
eina_strbuf_append(buf, "/* Nothing to implement. */\n");
|
||||||
if (!_write_file(ofname, buf))
|
if (!_write_file(ofname, buf))
|
||||||
goto done;
|
goto done;
|
||||||
ret = EINA_TRUE;
|
ret = EINA_TRUE;
|
||||||
|
|
Loading…
Reference in New Issue