Here is my project structure:
.
├── include
├── src
│ ├── abc
│ │ ├── include
│ │ └── src
│ ├── def
│ │ ├── include
│ │ └── src
│ └── ghi
│ ├── include
│ └── src
└── vendor
├── bar
│ ├── include
│ └── src
└── foo
16 directories
I would like to port my build to Meson. However, I'm not sure how to link targets defined in sibling folders.
My dependency graph looks like this:
src/abc/meson.builddefines a static libraryabcsrc/def/meson.builddefines a static librarydefthat depends onabcandfoosrc/ghi/meson.builddefines a static libraryghithat depends onbarvendor/bar/meson.builddefines a static librarybarvendor/foo/meson.builddefines a static libraryfoo- The top-level
meson.builddefines an executableappthat depends onabc,defandghi
In the documentation, there seem to be two mechanisms:
subdirsubproject
It is not clear to me which is best here. I do not have any dependencies outside of my source-code.
What should I write in my meson.build files to link these targets together?