Skip to content

Generated source code not in the location expected by an extension_module. #503

Answered by dnicolodi
WarrenWeckesser asked this question in Q&A
Discussion options

You must be logged in to vote

The python script tools/conv_template.py accepts a filename such as foo.c.src and writes the file foo.c to the directory given as the last command line argument.

This is not how generator are supposed to be used. See https://mesonbuild.com/Generating-sources.html#using-generator The output of the generator needs to be written in @BUILD_DIR@. The simplest thing is to pass both @INPUT@ and @OUTPUT@ as arguments to your script.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@WarrenWeckesser
Comment options

Answer selected by WarrenWeckesser
Comment options

You must be logged in to vote
0 replies
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