FROM ubuntu:24.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++-10-dev \
        git \
        autoconf \
        automake \
        autopoint \
        cmake \
        meson \
        dpkg-dev \
        libdbus-1-dev \
        libupnp-dev \
        libgnutls28-dev \
        libargon2-dev \
        libclutter-gtk-1.0-dev \
        libclutter-1.0-dev \
        libglib2.0-dev \
        libnotify-dev \
        yasm \
        nasm \
        autotools-dev \
        libtool \
        gettext \
        libsystemd-dev \
        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 \
        libx264-dev \
        libpipewire-0.3-dev \
        libudev-dev \
        libjsoncpp-dev \
        libmsgpack-dev \
        libnatpmp-dev \
        libayatana-appindicator3-dev \
        libnm-dev \
        libcrypto++-dev \
        libva-dev \
        libvdpau-dev \
        libssl-dev \
        libsndfile1-dev \
        libsecp256k1-dev \
        libasio-dev \
        libexpat1 libexpat1-dev \
        lcov gcovr \
        libxcb-shape0-dev \
        libwebrtc-audio-processing-dev \
        libcppunit-dev \
        libarchive-dev \
        ninja-build

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