Skip to content

how does meson generate a build file when fetching a subproject with a .wrap file #12343

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

You must be logged in to vote

it seems to automatically generate a meson.build file for a downloaded subproject according to the subproject's .wrap file. Is it true? How does meson achieve that?

No. A wrap file indicates that the entire source code for the subproject is downloaded from elsewhere. This includes both the .hpp / .cpp / '.h' / '.c' files (and others) as well as the meson.build itself. In cases where the upstream project doesn't have a meson.build file in their source code tarball, a .wrap file may specify two archives to download, one of which contains the upstream source code and the other containing the meson.build file(s).

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@BruceLi686
Comment options

Comment options

You must be logged in to vote
1 reply
@BruceLi686
Comment options

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