Skip to content
Discussion options

You must be logged in to vote

Not sure.

The easiest mechanism for allowing this sort of code generation wrapping tool, is probably if the tool supports a mode whereby it generates the code (e.g. an object file) specific to that ecosystem, and allows you to drive the compilation and linking yourself. For example, swig is pretty easy to use from meson as a custom target that outputs a C/C++ wrapper file for whatever language you want to generate a binding for.

On the other side of things, gnome has the gobject introspection scanner and compiler, which is implemented as a custom meson module. Meson needs to detect a C compiler, then passes the path to that compiler (and also passes CFLAGS) as a special argument to the in…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@dunklecat
Comment options

@eli-schwartz
Comment options

Answer selected by dunklecat
@dunklecat
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants