Not sure why I didn't think of this before, but you can just copy all the .wrap files to another directory, and then instead of meson wrap install you just copy them to subprojects. That's how you lock the versions of dependencies.
This commit is contained in:
parent
33327154ad
commit
da04c5ec54
14 changed files with 146 additions and 36 deletions
|
@ -2,19 +2,6 @@ mv .\subprojects\packagecache .
|
|||
rm -recurse -force .\subprojects\,.\builddir\
|
||||
mkdir subprojects
|
||||
mv .\packagecache .\subprojects\
|
||||
cp *.wrap subprojects
|
||||
mkdir builddir
|
||||
meson wrap install fmt
|
||||
meson wrap install catch2
|
||||
meson wrap install ftxui
|
||||
meson wrap install nlohmann_json
|
||||
meson wrap install libpng
|
||||
meson wrap install vorbis
|
||||
meson wrap install ogg
|
||||
meson wrap install flac
|
||||
meson wrap install freetype2
|
||||
meson wrap install openal-soft
|
||||
meson wrap install sfml
|
||||
# $env:CC="clang"
|
||||
# $env:CXX="clang++"
|
||||
cp wraps\*.wrap subprojects\
|
||||
meson setup --default-library=static --prefer-static builddir
|
||||
|
|
|
@ -1,21 +1,10 @@
|
|||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
mv -f ./subprojects/packagecache . || true
|
||||
mv -f ./subprojects/packagecache .
|
||||
rm -rf subprojects builddir
|
||||
mkdir subprojects
|
||||
mv packagecache ./subprojects/ || true
|
||||
mv packagecache ./subprojects/
|
||||
mkdir builddir
|
||||
cp *.wrap subprojects
|
||||
meson wrap install fmt
|
||||
meson wrap install catch2
|
||||
meson wrap install ftxui
|
||||
meson wrap install nlohmann_json
|
||||
meson wrap install libpng
|
||||
meson wrap install vorbis
|
||||
meson wrap install ogg
|
||||
meson wrap install flac
|
||||
meson wrap install freetype2
|
||||
meson wrap install openal-soft
|
||||
meson wrap install sfml
|
||||
meson setup builddir
|
||||
cp wraps/*.wrap subprojects/
|
||||
meson setup --default-library=static --prefer-static builddir
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue