-
Notifications
You must be signed in to change notification settings - Fork 462
Meson wrap support #9
Copy link
Copy link
Closed
Labels
build system/CIAnything related to building the project or running on CIAnything related to building the project or running on CIenhancementNew feature or requestNew feature or request
Metadata
Metadata
Assignees
Labels
build system/CIAnything related to building the project or running on CIAnything related to building the project or running on CIenhancementNew feature or requestNew feature or request
Documentation: http://mesonbuild.com/Wrap-dependency-system-manual.html
Basically, it's a part of the meson build system that can download (and build) missing dependencies which is pretty convenient especially on platforms without native package managers (so Windows).
This works by including a meson.build file into the source tree (theoretically it would also be possible to keep that separate), e.g. https://github.com/z3ntu/hidapi/blob/razer_test/meson.build (note: this file works but just has support for hidraw linux, darwin/macOS and windows) that "declares" the dependency so it can be used from another meson project. The consuming project would just need something like https://github.com/z3ntu/razer_test/blob/master/subprojects/hidapi.wrap - and best case this would be submitted to the Meson WrapDB which puts this hidapi.wrap file into a central git repo that can be used with
meson wrap install hidapiwhich adds that file into the local source tree.I'll open a PR once I have it working on most/all supported platforms.