2020-12-09 14:16:23 +00:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
|
|
|
echo "As of 2020-12, Debian stable does not include g++-10, needs debian testing or unstable."
|
|
|
|
|
|
|
|
# Tested on 2020-12-09 with Docker image bitnami/minideb:unstable
|
|
|
|
|
|
|
|
# Install pkgconf (adds minimum dependencies) only if the equivalent pkf-config is not already installed.
|
2021-09-21 19:33:34 +00:00
|
|
|
if ! which pkg-config
|
2020-12-09 14:16:23 +00:00
|
|
|
then
|
|
|
|
PKGCONF="pkgconf"
|
|
|
|
fi
|
|
|
|
|
2021-02-28 14:24:02 +00:00
|
|
|
apt install -y \
|
|
|
|
build-essential \
|
2022-03-20 22:43:55 +00:00
|
|
|
gcc-11 \
|
|
|
|
g++-11 \
|
2022-01-13 20:31:01 +00:00
|
|
|
lld \
|
2021-02-28 14:24:02 +00:00
|
|
|
${PKGCONF:-} \
|
|
|
|
cmake \
|
|
|
|
make \
|
2021-09-19 19:49:09 +00:00
|
|
|
ccache \
|
2021-02-28 14:24:02 +00:00
|
|
|
libglfw3-dev \
|
|
|
|
libglm-dev \
|
|
|
|
libmagic-dev \
|
|
|
|
libmbedtls-dev \
|
|
|
|
python3-dev \
|
|
|
|
libfreetype-dev \
|
|
|
|
libgtk-3-dev \
|
2020-12-09 14:16:23 +00:00
|
|
|
|
|
|
|
echo "Please consider this before running cmake (useful on e.g. Ubuntu 20.04):"
|
2022-03-20 22:43:55 +00:00
|
|
|
echo "export CXX=g++-11"
|