feat: dependencies optimizations
This commit is contained in:
parent
352ed37e30
commit
7d73a1b99f
|
@ -8,7 +8,7 @@ RUN apk update
|
||||||
# build tools dependencies
|
# build tools dependencies
|
||||||
RUN apk add --no-cache build-base cmake git
|
RUN apk add --no-cache build-base cmake git
|
||||||
# mgba dependencies
|
# 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
|
RUN pip install cffi
|
||||||
|
|
||||||
# clone mgba
|
# clone mgba
|
||||||
|
@ -16,7 +16,30 @@ RUN git clone https://github.com/mgba-emu/mgba.git
|
||||||
# create build directory
|
# create build directory
|
||||||
WORKDIR /src/mgba/build/
|
WORKDIR /src/mgba/build/
|
||||||
# configure the 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
|
# build mGBA
|
||||||
RUN make
|
RUN make
|
||||||
# install mGBA, TODO: is install needed ?
|
# install mGBA, TODO: is install needed ?
|
||||||
|
|
Loading…
Reference in a new issue