[gimp] build: compile libjxl under 32bit MSYS2 too
- From: Daniel Novomeský <dnovomesky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] build: compile libjxl under 32bit MSYS2 too
- Date: Wed, 20 Oct 2021 19:36:27 +0000 (UTC)
commit 0d5a4f50aae09c6f4303f3df4c8f91dab84946c1
Author: Daniel Novomesky <dnovomesky gmail com>
Date: Wed Oct 20 16:27:04 2021 +0200
build: compile libjxl under 32bit MSYS2 too
Previously only 64bit libjxl was built
build/windows/gitlab-ci/build-deps-msys2.sh | 86 ++++++++++++++---------------
1 file changed, 42 insertions(+), 44 deletions(-)
---
diff --git a/build/windows/gitlab-ci/build-deps-msys2.sh b/build/windows/gitlab-ci/build-deps-msys2.sh
index 15b9d80833..d04745c4e0 100644
--- a/build/windows/gitlab-ci/build-deps-msys2.sh
+++ b/build/windows/gitlab-ci/build-deps-msys2.sh
@@ -128,48 +128,46 @@ ninja install
cd ../..
## libjxl ##
-if [[ "$MSYS2_ARCH" == "x86_64" ]]; then
- pacman --noconfirm -S --needed \
- mingw64/mingw-w64-x86_64-brotli \
- mingw64/mingw-w64-x86_64-highway \
- mingw64/mingw-w64-x86_64-cmake
-
- git clone --depth=${GIT_DEPTH} --branch v0.6.x --recursive https://github.com/libjxl/libjxl.git _libjxl
-
- mkdir _libjxl/_build
- cd _libjxl/_build
- cmake -G Ninja \
- -DCMAKE_INSTALL_PREFIX=${GIMP_PREFIX} \
- -DCMAKE_BUILD_TYPE=Release \
- -DJPEGXL_ENABLE_PLUGINS=OFF \
- -DBUILD_TESTING=OFF \
- -DJPEGXL_WARNINGS_AS_ERRORS=OFF \
- -DJPEGXL_ENABLE_SJPEG=OFF \
- -DJPEGXL_ENABLE_BENCHMARK=OFF \
- -DJPEGXL_ENABLE_EXAMPLES=OFF \
- -DJPEGXL_ENABLE_MANPAGES=OFF \
- -DJPEGXL_ENABLE_SKCMS=ON \
- -DJPEGXL_FORCE_SYSTEM_BROTLI=ON \
- -DJPEGXL_FORCE_SYSTEM_HWY=ON \
- -DJPEGXL_ENABLE_JNI=OFF \
- -DJPEGXL_ENABLE_TCMALLOC=OFF \
- -DJPEGXL_ENABLE_TOOLS=OFF \
- -DCMAKE_CXX_FLAGS="-DHWY_COMPILE_ONLY_SCALAR" ..
- ninja
- ninja install
-
- # move DLLs into correct location
- if [ -f ${GIMP_PREFIX}/lib/libjxl.dll ]; then
- mv --target-directory=${GIMP_PREFIX}/bin ${GIMP_PREFIX}/lib/libjxl.dll
- fi
-
- if [ -f ${GIMP_PREFIX}/lib/libjxl_threads.dll ]; then
- mv --target-directory=${GIMP_PREFIX}/bin ${GIMP_PREFIX}/lib/libjxl_threads.dll
- fi
-
- # install image/jxl mime type
- mkdir -p ${GIMP_PREFIX}/share/mime/packages
- cp --target-directory=${GIMP_PREFIX}/share/mime/packages ../plugins/mime/image-jxl.xml
-
- cd ../..
+pacman --noconfirm -S --needed \
+ mingw-w64-$MSYS2_ARCH-brotli \
+ mingw-w64-$MSYS2_ARCH-highway \
+ mingw-w64-$MSYS2_ARCH-cmake
+
+git clone --depth=${GIT_DEPTH} --branch v0.6 --recursive https://github.com/libjxl/libjxl.git _libjxl
+
+mkdir _libjxl/_build
+cd _libjxl/_build
+cmake -G Ninja \
+ -DCMAKE_INSTALL_PREFIX=${GIMP_PREFIX} \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DJPEGXL_ENABLE_PLUGINS=OFF \
+ -DBUILD_TESTING=OFF \
+ -DJPEGXL_WARNINGS_AS_ERRORS=OFF \
+ -DJPEGXL_ENABLE_SJPEG=OFF \
+ -DJPEGXL_ENABLE_BENCHMARK=OFF \
+ -DJPEGXL_ENABLE_EXAMPLES=OFF \
+ -DJPEGXL_ENABLE_MANPAGES=OFF \
+ -DJPEGXL_ENABLE_SKCMS=ON \
+ -DJPEGXL_FORCE_SYSTEM_BROTLI=ON \
+ -DJPEGXL_FORCE_SYSTEM_HWY=ON \
+ -DJPEGXL_ENABLE_JNI=OFF \
+ -DJPEGXL_ENABLE_TCMALLOC=OFF \
+ -DJPEGXL_ENABLE_TOOLS=OFF \
+ -DCMAKE_CXX_FLAGS="-DHWY_COMPILE_ONLY_SCALAR" ..
+ninja
+ninja install
+
+# move DLLs into correct location
+if [ -f ${GIMP_PREFIX}/lib/libjxl.dll ]; then
+ mv --target-directory=${GIMP_PREFIX}/bin ${GIMP_PREFIX}/lib/libjxl.dll
fi
+
+if [ -f ${GIMP_PREFIX}/lib/libjxl_threads.dll ]; then
+ mv --target-directory=${GIMP_PREFIX}/bin ${GIMP_PREFIX}/lib/libjxl_threads.dll
+fi
+
+# install image/jxl mime type
+mkdir -p ${GIMP_PREFIX}/share/mime/packages
+cp --target-directory=${GIMP_PREFIX}/share/mime/packages ../plugins/mime/image-jxl.xml
+
+cd ../..
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]