FROM ubuntu:20.04

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && \
    apt install -y software-properties-common

RUN add-apt-repository universe && \
    apt-get update && \
    apt-get install -y -o Acquire::Retries=10 \
        g++ \
        gcc \
        cpp \
        file \
        make \
        libc6-dev \
        libstdc++-8-dev \
        git \
        autoconf \
        automake \
        autopoint \
        cmake \
        dpkg-dev \
        libdbus-1-dev \
        libupnp-dev \
        libgnutls28-dev \
        libargon2-dev \
        libcanberra-gtk3-dev \
        libclutter-gtk-1.0-dev \
        libclutter-1.0-dev \
        libglib2.0-dev \
        libgtk-3-dev \
        libnotify-dev \
        qtbase5-dev \
        qttools5-dev \
        qttools5-dev-tools \
        yasm \
        nasm \
        autotools-dev \
        libtool \
        gettext \
        libsystemd-dev \
        libsdbus-c++-bin \
        libpulse-dev \
        libasound2-dev \
        libpcre3-dev \
        libyaml-cpp-dev \
        libboost-dev \
        libxext-dev \
        libxfixes-dev \
        libspeex-dev \
        libspeexdsp-dev \
        uuid-dev \
        libavcodec-dev \
        libavutil-dev \
        libavformat-dev \
        libswscale-dev \
        libavdevice-dev \
        libopus-dev \
        libudev-dev \
        libjsoncpp-dev \
        libmsgpack-dev \
        libnatpmp-dev \
        libayatana-appindicator3-dev \
        libqrencode-dev \
        libnm-dev \
        libwebkit2gtk-4.0-dev \
        libcrypto++-dev \
        libva-dev \
        libvdpau-dev \
        libssl-dev \
        libsndfile1-dev \
        libsecp256k1-dev \
        libasio-dev \
        libexpat1 libexpat1-dev \
        lcov gcovr \
        libxcb-shape0-dev \
        ninja-build

RUN apt-get install -y python3 python3-pip python3-setuptools \
                       python3-wheel
RUN pip3 install meson

RUN ls -la /usr/include/c++/8/charconv

# Tests framework
RUN apt-get install -y -o Acquire::Retries=10 \
        libcppunit-dev \
        sip-tester

RUN apt-get clean

