build: Use ninja to build web version
This commit is contained in:
parent
4afedb5131
commit
2cd8b13c1d
5
dist/web/Dockerfile
vendored
5
dist/web/Dockerfile
vendored
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user