vscodium/install_deps.sh

31 lines
1.1 KiB
Bash
Raw Normal View History

2018-08-13 18:14:15 +03:00
#!/bin/bash
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update
2018-08-13 21:24:40 +03:00
brew install yarn --without-node
brew install jq zip
2018-08-13 18:14:15 +03:00
else
sudo apt-get update
sudo apt-get install libx11-dev libxkbfile-dev libsecret-1-dev fakeroot rpm jq
if [[ "$BUILDARCH" == "ia32" ]]; then
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6-dev-i386 gcc-multilib g++-multilib
sudo apt-get install libx11-dev:i386 libxkbfile-dev:i386
2018-11-05 00:05:53 +03:00
export CC="/usr/bin/gcc -m32"
export CXX="/usr/bin/g++ -m32"
export CC_host=/usr/bin/gcc
export CXX_host=/usr/bin/g++
elif [[ $BUILDARCH == "arm64" ]]; then
echo "deb http://ports.ubuntu.com/ubuntu-ports/ trusty main" | sudo tee -a /etc/apt/sources.list.d/arm64.list >/dev/null
2018-11-05 00:05:53 +03:00
sudo dpkg --add-architecture arm64
sudo apt-get update
2018-11-05 00:26:54 +03:00
sudo apt-get install libc6-dev-arm64-cross gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
2018-11-05 00:05:53 +03:00
sudo apt-get install libx11-dev:arm64 libxkbfile-dev:arm64
export CC=/usr/bin/aarch64-linux-gnu-gcc
export CXX=/usr/bin/aarch64-linux-gnu-g++
export CC_host=/usr/bin/gcc
export CXX_host=/usr/bin/g++
fi
fi