citemplate: add initial cerbero msvc builds
[platform/upstream/gstreamer.git] / docker / windows / prepare_cerbero_env.sh
1 #! /bin/bash
2
3 set -eux
4
5 cd C:/
6 git clone -b ${DEFAULT_BRANCH} https://gitlab.freedesktop.org/gstreamer/cerbero.git
7 cd cerbero
8
9 echo 'local_sources="C:/cerbero/cerbero-sources"' > localconf.cbc
10 echo 'home_dir="C:/cerbero/cerbero-build"' >> localconf.cbc
11 echo 'vs_install_path = "C:/BuildTools"' >> localconf.cbc
12 echo 'vs_install_version = "vs15"' >> localconf.cbc
13
14 # Fetch all bootstrap requirements
15 ./cerbero-uninstalled -t -c localconf.cbc -c config/win64.cbc fetch-bootstrap
16 # Fetch all package requirements for a mingw gstreamer build
17 ./cerbero-uninstalled -t -c localconf.cbc -c config/win64.cbc fetch-package gstreamer-1.0
18 # Fetch all package requirements for a visualstudio gstreamer build
19 ./cerbero-uninstalled -t -v visualstudio -c localconf.cbc -c config/win64.cbc fetch-package gstreamer-1.0
20
21 # Extract the toolchain and fixup the MSYS installation
22 ./cerbero-uninstalled -t -c localconf.cbc -c config/win64.cbc bootstrap -y --system-only --offline
23
24 # Delete mingw toolchain binary tarball
25 rm /c/cerbero/cerbero-sources/mingw-*.tar.xz
26 # Wipe visualstudio package dist, sources, logs, and the build tools recipes
27 ./cerbero-uninstalled -t -v visualstudio -c localconf.cbc -c config/win64.cbc wipe --force --build-tools
28 # clean the localconf
29 rm /c/cerbero/localconf.cbc