Skip to content

A test in each subdir, but a web of dependencies between them #11847

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

You must be logged in to vote

See https://mesonbuild.com/Reference-manual_functions.html#project_subproject_dir for how to override the default "subprojects" directory to something else. Intended for compatibility with existing codebases that expect a specific location already.

Aside for that, subdir() cannot include backtracking, that is, ../ path segments, and can only be done once per subdir. So the loop issue won't come up. :)

Without using subprojects, it would still be relatively simple enough to manually resolve order and then shift up/down different subdir() lines until components are included in the correct order, but it would have to be manually maintained which I guess could be annoying. But renaming the de…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@georgev93
Comment options

@eli-schwartz
Comment options

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