2020-08-07 12:29:39 +00:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
set -eux
|
|
|
|
|
|
|
|
cd C:/
|
|
|
|
git clone -b ${DEFAULT_BRANCH} https://gitlab.freedesktop.org/gstreamer/cerbero.git
|
|
|
|
cd cerbero
|
|
|
|
|
|
|
|
echo 'local_sources="C:/cerbero/cerbero-sources"' > localconf.cbc
|
|
|
|
echo 'home_dir="C:/cerbero/cerbero-build"' >> localconf.cbc
|
|
|
|
echo 'vs_install_path = "C:/BuildTools"' >> localconf.cbc
|
2022-05-16 10:57:57 +00:00
|
|
|
echo 'vs_install_version = "vs16"' >> localconf.cbc
|
2020-08-07 12:29:39 +00:00
|
|
|
|
|
|
|
# Fetch all bootstrap requirements
|
2022-09-17 21:01:01 +00:00
|
|
|
./cerbero-uninstalled -t -v visualstudio -c localconf.cbc -c config/win64.cbc fetch-bootstrap --jobs=4
|
2020-08-07 12:29:39 +00:00
|
|
|
# Fetch all package requirements for a mingw gstreamer build
|
2021-08-17 10:34:42 +00:00
|
|
|
./cerbero-uninstalled -t -c localconf.cbc -c config/win64.cbc fetch-package --jobs=4 gstreamer-1.0
|
2020-08-07 12:29:39 +00:00
|
|
|
# Fetch all package requirements for a visualstudio gstreamer build
|
2021-08-17 10:34:42 +00:00
|
|
|
./cerbero-uninstalled -t -v visualstudio -c localconf.cbc -c config/win64.cbc fetch-package --jobs=4 gstreamer-1.0
|
2020-08-07 12:29:39 +00:00
|
|
|
|
2020-09-21 18:34:08 +00:00
|
|
|
# Fixup the MSYS installation
|
|
|
|
./cerbero-uninstalled -t -c localconf.cbc -c config/win64.cbc bootstrap -y --build-tools=no --toolchains=no --offline
|
2020-08-07 12:29:39 +00:00
|
|
|
|
|
|
|
# Wipe visualstudio package dist, sources, logs, and the build tools recipes
|
|
|
|
./cerbero-uninstalled -t -v visualstudio -c localconf.cbc -c config/win64.cbc wipe --force --build-tools
|
2022-09-29 14:00:05 +00:00
|
|
|
# Vendored sources get confused with hard links
|
|
|
|
rm -rvf /c/cerbero/cerbero-sources/*/cargo-vendor
|
2020-08-07 12:29:39 +00:00
|
|
|
# clean the localconf
|
2022-09-29 14:00:05 +00:00
|
|
|
rm -v /c/cerbero/localconf.cbc
|