Question: wrap subproject from repository with multiple projects #10926
-
I have a monolithic repository which is set up like so, per #6404 (comment)
Since the libraries are independently compilable, it makes sense that other projects may want to use them through wrap files. However, this will not work because even if the Is there a way to specify that wrap should use a certain subdirectory of the wrapped project's source tree? i.e.
or would i have to do something odd like creating a
to 'reroute' the top-level meson.build to the desired library? does For some context on what I want to achieve, in Rust it's quite common to use 'workspaces', where multiple crates (libraries, usually) can be used and published from within the same repository. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Usually what you'd do is release each component as a tarball, and then add them to other projects as However it's also worth noting that a subproject can have its own subprojects, and these can be used from the top-level subproject because the list of subprojects is a flat namespace and they are hoisted to the top level when used. Replacing the top-level meson.build will not work anyway, because you cannot |
Beta Was this translation helpful? Give feedback.
Usually what you'd do is release each component as a tarball, and then add them to other projects as
[wrap-file]
.However it's also worth noting that a subproject can have its own subprojects, and these can be used from the top-level subproject because the list of subprojects is a flat namespace and they are hoisted to the top level when used.
Replacing the top-level meson.build will not work anyway, because you cannot
subdir()
into a meson.build that has its ownproject()
header, and no non-comment content is permitted beforeproject()
.