1
0
mirror of synced 2024-11-30 18:34:29 +01:00

build: Use ninja to build web version

This commit is contained in:
WerWolv 2024-07-01 20:07:21 +02:00
parent 4afedb5131
commit 2cd8b13c1d

5
dist/web/Dockerfile vendored
View File

@ -5,7 +5,7 @@ FROM emscripten/emsdk:3.1.51 as build
ARG UNIQUEKEY 1 ARG UNIQUEKEY 1
RUN apt update RUN apt update
RUN apt install -y git ccache autoconf automake libtool cmake pkg-config RUN apt install -y git ccache autoconf automake libtool cmake pkg-config ninja-build
RUN <<EOF RUN <<EOF
# Install vcpkg # Install vcpkg
@ -56,6 +56,7 @@ set -xe
ccache -zs ccache -zs
cmake /imhex \ cmake /imhex \
-G "Ninja" \
-DIMHEX_OFFLINE_BUILD=ON \ -DIMHEX_OFFLINE_BUILD=ON \
-DIMHEX_STATIC_LINK_PLUGINS=ON \ -DIMHEX_STATIC_LINK_PLUGINS=ON \
-DIMHEX_EXCLUDE_PLUGINS="script_loader" \ -DIMHEX_EXCLUDE_PLUGINS="script_loader" \
@ -68,7 +69,7 @@ cmake /imhex
-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake \ -DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake \
-DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_TYPE=Release
make -j $JOBS ninja -j $JOBS
cp /imhex/dist/web/source/* /build cp /imhex/dist/web/source/* /build
ccache -s ccache -s