[build2] Pointers for module
Kalle Møller
build2.org at k-moeller.dk
Tue Jan 2 15:23:10 UTC 2018
Aah didn't think that cli also was a module. I kinda figured that the I
needed to compile my module directly into like the other modules until you
support it :) So other than the source files in the cli folder, which files
would I have to change / read in the main project? b.[c|h]xx others ?
Thank you very much for the help - and the project!
On Tue, Jan 2, 2018 at 4:14 PM, Boris Kolpackov <boris at codesynthesis.com>
wrote:
> Kalle Møller <kalle at k-moeller.dk> writes:
>
> > To learn more about the project, I would like to try and make my own
> module
> > / pure academic purpose. Maybe a latex build system. I would just love to
> > get a few pointeres, so that I don't have to debug step my way through.
> >
> > Where should I look for the hook to generate a configuration?
> >
> > When the user runs b update, where does that hook to cxx? As in is it the
> > cxx module that knows that a target should be rebuild or does the build
> > system tell cxx to rebuild the target?
>
> I think the best way forward is to study a similar module and see how
> it works. cxx is very complex so I would recommend, perhaps, cli. It
> implements generation of command line interface parsing code (source
> code generation) using the cli compiler[1]. It is still probably a bit
> more complex than what you need, but I think it's the closest we've got.
>
> Overall, a latex module would need to do the following:
>
> 1. Register input/output target types, say latex{} and ps{}.
>
> 2. Implement and register a rule that translates input to output.
>
> 3. Configure itself on load.
>
> Also note that currently build2 does not support building external
> modules so you will have to add yours directly into the build2
> executable. But this is something that we are planning to address
> in the very near future.
>
> [1] https://codesynthesis.com/projects/cli/
>
> Boris
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.build2.org/archives/users/attachments/20180102/902a7651/attachment.html>
More information about the users
mailing list