From 7d73a1b99f719ba5c405b62fb37ba737e7bbafd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Fri, 4 Mar 2022 23:46:38 +0100 Subject: [PATCH] feat: dependencies optimizations --- src/emulator/Dockerfile | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/src/emulator/Dockerfile b/src/emulator/Dockerfile index 4fe6bb7..abfec17 100644 --- a/src/emulator/Dockerfile +++ b/src/emulator/Dockerfile @@ -8,7 +8,7 @@ RUN apk update # build tools dependencies RUN apk add --no-cache build-base cmake git # mgba dependencies -RUN apk add --no-cache libffi-dev elfutils-dev libzip-tools minizip-dev libedit-dev sqlite-dev libepoxy-dev ffmpeg ffmpeg-dev libpng-dev jpeg-dev +RUN apk add --no-cache libffi-dev ffmpeg ffmpeg-dev libpng-dev jpeg-dev RUN pip install cffi # clone mgba @@ -16,7 +16,30 @@ RUN git clone https://github.com/mgba-emu/mgba.git # create build directory WORKDIR /src/mgba/build/ # configure the build -RUN cmake -DBUILD_PYTHON=ON -DBUILD_QT=OFF -DBUILD_SDL=OFF -DUSE_DISCORD_RPC=OFF -DCMAKE_INSTALL_PREFIX:PATH=/usr/local .. + +RUN cmake \ + -DBUILD_PYTHON=ON \ + -DBUILD_QT=OFF \ + -DBUILD_SDL=OFF \ + -DBUILD_GL=OFF \ + -DBUILD_GLES2=OFF \ + -DBUILD_GLES3=OFF \ + -DBUILD_SHARED=OFF \ + -DUSE_DEBUGGERS=ON \ + -DUSE_DISCORD_RPC=OFF \ + -DUSE_EDITLINE=OFF \ + -DUSE_ELF=OFF \ + -DUSE_EPOXYNG=OFF \ + -DUSE_FFMPEG=ON \ + -DUSE_GDB_STUB=ON \ + -DUSE_LIBZIP=OFF \ + -DUSE_LZMA=OFF \ + -DUSE_MINIZIP=OFF \ + -DUSE_PNG=ON \ + -DUSE_SQLITE3=OFF \ + -DUSE_ZLIB=OFF \ + -DCMAKE_INSTALL_PREFIX:PATH=/usr/local \ + .. # build mGBA RUN make # install mGBA, TODO: is install needed ?