Skip to content

DTS include dependencies #9724

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

You must be logged in to vote

Why do you need to generate a file list? The fs module runs during the configure stage, before the .d file is created, which is why it is not permitted to read files in the build tree. But, the point of .d file dependencies is for dynamic detection of rebuild dependencies, so the intended way to handle this would be for the .d file to be emitted to the depfile kwarg of e.g. custom_target.

Meson would then record this in the build.ninja as a dynamic runtime dependency file list, and ninja would absorb and then delete the depfile as soon as it is created.

Replies: 2 comments

Comment options

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