Skip to content

Common .build file for multiple projects #12158

Answered by xclaesse
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

Meson cannot include a file, it can only do subdir(). If your projects have a common subdir that could do the trick.

This has been requested many times e.g. #3557. The main reason for not allowing that is because we don't want people to turn that feature into some form of function implementation. Most of the time when there is a need for this it means we should rather add API in meson to avoid it, which benefit everyone instead.

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
8 replies
@xclaesse
Comment options

@ghost
Comment options

@ghost
Comment options

@eli-schwartz
Comment options

@ghost
Comment options

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