2020-10-07 13:49:40 +05:00
|
|
|
#!/bin/bash -e
|
2019-12-13 09:48:00 -05:00
|
|
|
################################################################################
|
|
|
|
|
## File: vcpkg.sh
|
|
|
|
|
## Desc: Installs vcpkg
|
|
|
|
|
################################################################################
|
|
|
|
|
|
2022-10-25 09:30:50 +02:00
|
|
|
# Set env variable for vcpkg
|
|
|
|
|
VCPKG_INSTALLATION_ROOT=/usr/local/share/vcpkg
|
|
|
|
|
echo "VCPKG_INSTALLATION_ROOT=${VCPKG_INSTALLATION_ROOT}" | tee -a /etc/environment
|
2019-12-13 09:48:00 -05:00
|
|
|
|
|
|
|
|
# Install vcpkg
|
2022-10-25 09:30:50 +02:00
|
|
|
git clone https://github.com/Microsoft/vcpkg $VCPKG_INSTALLATION_ROOT
|
2020-04-17 10:38:10 +00:00
|
|
|
|
2022-10-25 09:30:50 +02:00
|
|
|
$VCPKG_INSTALLATION_ROOT/bootstrap-vcpkg.sh
|
2022-11-14 20:59:20 +01:00
|
|
|
|
|
|
|
|
# workaround https://github.com/microsoft/vcpkg/issues/27786
|
|
|
|
|
|
2022-11-17 16:51:56 +01:00
|
|
|
mkdir -p /root/.vcpkg/ $HOME/.vcpkg
|
|
|
|
|
touch /root/.vcpkg/vcpkg.path.txt $HOME/.vcpkg/vcpkg.path.txt
|
2022-11-14 20:59:20 +01:00
|
|
|
|
2022-10-25 09:30:50 +02:00
|
|
|
$VCPKG_INSTALLATION_ROOT/vcpkg integrate install
|
|
|
|
|
chmod 0777 -R $VCPKG_INSTALLATION_ROOT
|
|
|
|
|
ln -sf $VCPKG_INSTALLATION_ROOT/vcpkg /usr/local/bin
|
2019-12-13 09:48:00 -05:00
|
|
|
|
2022-11-17 16:51:56 +01:00
|
|
|
rm -rf /root/.vcpkg $HOME/.vcpkg
|
2022-11-14 20:59:20 +01:00
|
|
|
|
2021-11-08 15:54:37 +03:00
|
|
|
invoke_tests "Tools" "Vcpkg"
|