On 20/12/2020 13:26, Jussi Pakkanen wrote:
> On Sat, 19 Dec 2020 at 22:06, Daniele Nicolodi <
dan...@grinta.net> wrote:
>
>> I would like to include Bison as a subproject in my project. Has anyone
>> tried to write a Meson build definition for it?
>
> I remember trying that for Flex and Bison. I don't remember which but
> one of the two is not actuallywritten in C but something like M4 and
> the C main is just a shim that runs the script code that is embedded
> in the exe. The dependency tree exploded and I got frustrated and
> stopped working on it.
I fear this may be Bison, AFAIK Flex does not depend on m4. Do you
recall which other dependencies m4 brought along? Do you still have some
Meson code that you could share?
I use RE-flex as a scanner generator, and I recommend it as a modern
substitute for Flex. Despite producing C++ code, it has a mode in which
it outputs the same API as Flex, thus it is an (almost) zero cost
replacement. I a have Meson build definition for RE-flex which I plan to
submit to WrapDB.
>> I may find enough motivation and time to do it myself. Does anyone have
>> experience with porting a typical autotools build system for a project
>> using gnulib to Meson? How much effort should I anticipate?
>
> It depends on the implementation a fair bit. "Pure" C programs are
> fairly straightforward, problems appear if the program has complex
> configuration settings (GLib as an extreme example) or it does source
> generation or the like especially if it also requires something like
> an in-source build because it assumes its input files are, say, in the
> same directory as the generator program.
Thank you Jussy.
PS: I have been enjoying your "The Meson Manual" book. Thank you for
writing it and for the recent update. I am disappointed that it did not
turn out to be a self sustaining activity.
Cheers,
Dan