Hi Marcel, I don't think that meson requires that we compile the output of a task. We can simply fail to mention it as an output. Leave the only output as the .eo.h for example? The .c file will get picked up by the appropriate include and so get compiled indirectly.
I don't know if I did the right thing but I do have eolian_gen working in meson in one of the examples: https://git.enlightenment.org/tools/examples.git/tree/tutorial/c/eo-classes/src/meson.build It could be tidied up but the gist of it is that class.eo.h is a declared output, class.eo.c is slipped into the build space for later inclusion and the class.c (this is what meson did not like much) is slipped into the source dir for implementation additions. I hope this is of some interest, Andrew On Tue, 14 Nov 2017 at 08:16 <marcel-hollerb...@t-online.de> wrote: > Hello, > > i am currently looking how we can work with meson in the efl tree. And > quite a big problem came up. Right now we translate a .eo file into a > .eo.c and .eo.h file, where the .eo.c is not a standalone c file, it > must be included, it does not compile by itself. > > In meson we can just put the .eo.c file into the other sources and put > them into library(...) or executable(...) which leads to meson thinking > it needs to compile the file with a c compiler, since the file has the > .c extension. > > My plan is now to generate .eo.x and .eo.h files to solve this > issue, we use .x in our codebase for files that are not usefull in > standalone and must be included in some way. > > Opinions? > > Greetings, > Marcel Hollerbach > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > -- http://andywilliams.me http://ajwillia.ms ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel