Skip to content

Commit

Permalink
added support for cpp builds
Browse files Browse the repository at this point in the history
  • Loading branch information
strangesast committed Oct 14, 2020
1 parent b09a89d commit 9c55829
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions build-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,27 @@ apt-get update
if [ "$_set" = true ] && [ "$TARGETPLATFORM" = "aarch64" ] || [ "$_arch" = "aarch64" ]; then
apt-get install -y \
cmake \
gcc-arm-linux-gnueabihf
gcc-arm-linux-gnueabihf \
g++-arm-linux-gnueabihf
update-alternatives --remove-all cc
update-alternatives --remove-all g++
update-alternatives --install /usr/bin/cc cc /usr/bin/arm-linux-gnueabihf-gcc 50
update-alternatives --install /usr/bin/g++ g++ /usr/bin/arm-linux-gnueabihf-g++ 50

elif [ "$_set" = true ] && [ "$TARGETPLATFORM" = "linux/amd64" ] || [ "$_arch" = "x86_64" ]; then
apt-get install -y \
cmake \
gcc-multilib
gcc-multilib \
g++-multilib

elif [ "$_set" = true ] && [ "$TARGETPLATFORM" = "linux/arm/v7" ] || [ "$_arch" = "armhf" ] || [ "$_arch" = "armv7l" ]; then
apt-get install -y \
cmake
cmake \
build-essential

else
apt-get install -y \
cmake
cmake \
build-essential

fi

0 comments on commit 9c55829

Please sign in to comment.