This is how you can lock meson build dependencies. Not sure why I didn't think of this before but you just put the .wrap files somewhere and instead of meson wrap install you copy them into subprojects.

This commit is contained in:
Zed A. Shaw 2024-10-16 19:48:23 -04:00
parent 678f5cc917
commit 62785d463c
18 changed files with 199 additions and 33 deletions

13
wraps/imgui.wrap Normal file
View file

@ -0,0 +1,13 @@
[wrap-file]
directory = imgui-1.91.0
source_url = https://github.com/ocornut/imgui/archive/refs/tags/v1.91.0.tar.gz
source_filename = imgui-1.91.0.tar.gz
source_hash = 6e62c87252e6b3725ba478a1c04dc604aa0aaeec78fedcf4011f1e52548f4cc9
patch_filename = imgui_1.91.0-1_patch.zip
patch_url = https://wrapdb.mesonbuild.com/v2/imgui_1.91.0-1/get_patch
patch_hash = 354fc499bb53ed37ef7a23122d9253f6b119098ae95ff14a571d2d7e98fa3338
source_fallback_url = https://github.com/mesonbuild/wrapdb/releases/download/imgui_1.91.0-1/imgui-1.91.0.tar.gz
wrapdb_version = 1.91.0-1
[provide]
imgui = imgui_dep