Skip to content

changes configure_file input rebuilt the buildir like meson setup build --reconfigure #13654

Answered by eli-schwartz
aullidolunar asked this question in Q&A
Discussion options

You must be logged in to vote

This happens because configure_file itself runs at configure time, whereas a custom_target runs at build time. Usually, configured files tend to be files that very rarely change.

It's possible to instead use a custom_target() where the command is something like sed. Or perhaps a custom python script that performs the necessary replacements. You'd pass PROGRAM+NAME and PROGRAM_TITLE as arguments to your sed/python script.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by aullidolunar
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