tree data structure
#13189
Replies: 1 comment
-
This sounds like a redundant task of maintaining additional structure of dependencies. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What is the problem I want to solve?
My project is a big monorepo, with hundreds of libraries and a few executable sharing those libraries. meson works very well for handling build and link dependencies among those targets. However, There are other parts of the project that need the same hierarchy of dependencies, but that are not link dependencies. For instance, I use a custom_target to extract translations from source files, and I need to merge the resulting translation template file with the translation templates from all dependent libraries. And other example is that when I run the unit tests for a given executable, I need to also run the unit tests from all dependent libraries.
What solution do I propose?
My idea would be to use a datastructure to keep tract of all logical dependencies between the components of my project, and to use that datastructure to build the arguments for the different meson functions I use.
Here is what the proposition could looks like:
What is the next step?
I'd like to gather feedback from my proposition, before taking time to implement it. Is it something that looks like useful? Is it something that could belong to meson? Is there a better way to achieve my goals?
Beta Was this translation helpful? Give feedback.
All reactions