Skip to content

Commit

Permalink
feat: build libjxl v0.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Starbix committed Oct 7, 2024
1 parent c8d26d5 commit 4f1f4ba
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
7 changes: 4 additions & 3 deletions server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ RUN ./configure-apt.sh && \
build-essential \
cmake \
jq \
libbrotli-dev \
libde265-dev \
libexif-dev \
libexpat1-dev \
libglib2.0-dev \
libgsf-1-dev \
libhwy-dev \
libjpeg62-turbo-dev \
liblcms2-2 \
liborc-0.4-dev \
Expand All @@ -33,14 +35,14 @@ RUN ./configure-apt.sh && \
cpanminus && \
apt-get install -t testing --no-install-recommends -yqq \
libdav1d-dev \
libjxl-dev \
libwebp-dev \
libio-compress-brotli-perl

COPY bin/* ./

RUN ./build-libheif.sh
RUN ./build-libraw.sh
RUN ./build-libjxl.sh
RUN ./build-imagemagick.sh
RUN ./build-libvips.sh
RUN ./install-ffmpeg.sh
Expand Down Expand Up @@ -93,8 +95,7 @@ RUN ./configure-apt.sh && \
libio-compress-brotli-perl \
libwebp7 \
libwebpdemux2 \
libwebpmux3 \
libjxl0.9 && \
libwebpmux3 && \
if [ $(arch) = "x86_64" ]; then \
wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.17193.4/intel-igc-core_1.0.17193.4_amd64.deb && \
wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.17193.4/intel-igc-opencl_1.0.17193.4_amd64.deb && \
Expand Down
23 changes: 23 additions & 0 deletions server/bin/build-libjxl.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/usr/bin/env bash

set -e

: "${LIBJXL_REVISION:=$(jq -cr '.sources[] | select(.name == "libjxl").revision' build-lock.json)}"

git clone https://github.com/libjxl/libjxl.git --recursive --shallow-submodules
cd libjxl
git reset --hard $LIBJXL_REVISION

mkdir build
cd build
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTING=OFF \
-DJPEGXL_FORCE_SYSTEM_BROTLI=ON \
-DJPEGXL_FORCE_SYSTEM_HWY=ON \
-DJPEGXL_ENABLE_JPEGLI=OFF \
-DJPEGXL_ENABLE_JPEGLI_LIBJPEG=OFF \
-DJPEGXL_ENABLE_PLUGINS=ON \
..
cmake --build . -- -j$(nproc)
cmake --install .
5 changes: 5 additions & 0 deletions server/bin/build-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
"version": "1.18.2",
"revision": "bf35e9eb25af8f2b7917996ad9ba849d922f8d15"
},
{
"name": "libjxl",
"version": "0.11.0",
"revision": "4df1e9eccdf86b8df4c0c7c08f529263906f9c4f"
},
{
"name": "libraw",
"version": "0.22.0-SNAPSHOT",
Expand Down

0 comments on commit 4f1f4ba

Please sign in to comment.