DynuIPRefresher/Docker/Linux_Conan/build.sh
2021-03-15 18:46:42 +01:00

23 lines
638 B
Bash

#!/bin/bash
apt-get update
apt-get install cmake python3-pip -y -qq
pip3 install conan
git clone https://gitlab.heili.eu/lukas/dynuiprefresher.git
cd dynuiprefresher || exit
git checkout conansupport
conan profile new default --detect --force # Generates default profile detecting GCC and sets old ABI
conan profile update settings.compiler.libcxx=libstdc++11 default # Sets libcxx to C++11 ABI
mkdir -p build # create build folder
CONAN_SYSREQUIRES_MODE=enabled CONAN_SYSREQUIRES_SUDO=0 conan install . --build=missing
# cleanup
conan remove "*" -s -b -f
cd ..
rm -Rf ./dynuiprefresher
rm -rf /var/lib/apt/lists/*
rm /tmp/build.sh