Skip to content

Question: wrap subproject from repository with multiple projects #10926

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

You must be logged in to vote

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 own project() header, and no non-comment content is permitted before project().

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@LunarLambda
Comment options

@LunarLambda
Comment options

@xclaesse
Comment options

@LunarLambda
Comment options

@eli-schwartz
Comment options

Answer selected by LunarLambda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #10924 on October 16, 2022 16:04.