changes configure_file input rebuilt the buildir like meson setup build --reconfigure #13654
-
Basically:
Any changes in builder.blp.in causes meson to reconfigure all over, any ideas about how to only update the configure_file similar when you make changes in sources files to compile only the sources changed? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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 |
Beta Was this translation helpful? Give feedback.
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.