Make blake3 C library usable as meson subproject #346
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The meson build system[1] support subprojects - a way to use another project in your build. The blake3 C library can be used like this, but meson requires that the subproject root directory has either
meson.build
(for meson projects) orCMakeLists.txt
(meson can build cmake projects).Add
CMakeLists.txt
in the root directory with the project info, including thec
subdirectory. With this you can add blake3 as subproject to a meson project.Example wrap file (using test release from my fork):
With this wrap file, you can use blake3 in your meson project[2] like this:
[1] https://mesonbuild.com/
[2] https://github.com/nirs/blake3-meson