mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-11 11:47:09 +02:00
Add lcms2 dependency for Qt6 on Windows
This commit is contained in:
parent
19d7dd7aa3
commit
7d30e3913c
2 changed files with 17 additions and 4 deletions
|
@ -1148,10 +1148,19 @@ depends:yasm/yasm
|
||||||
""")
|
""")
|
||||||
|
|
||||||
stage('liblcms2', """
|
stage('liblcms2', """
|
||||||
mac:
|
|
||||||
git clone -b lcms2.16 https://github.com/mm2/Little-CMS.git liblcms2
|
git clone -b lcms2.16 https://github.com/mm2/Little-CMS.git liblcms2
|
||||||
cd liblcms2
|
cd liblcms2
|
||||||
|
win:
|
||||||
|
depends:python/Scripts/activate.bat
|
||||||
|
%THIRDPARTY_DIR%\\python\\Scripts\\activate.bat
|
||||||
|
meson setup --default-library=static --buildtype=debug -Db_vscrt=mtd out/Debug
|
||||||
|
meson compile -C out/Debug
|
||||||
|
release:
|
||||||
|
meson setup --default-library=static --buildtype=release -Db_vscrt=mt out/Release
|
||||||
|
meson compile -C out/Release
|
||||||
|
win:
|
||||||
|
deactivate
|
||||||
|
mac:
|
||||||
buildOneArch() {
|
buildOneArch() {
|
||||||
arch=$1
|
arch=$1
|
||||||
folder=`pwd`/$2
|
folder=`pwd`/$2
|
||||||
|
@ -1689,6 +1698,7 @@ win:
|
||||||
SET OPENSSL_LIBS_DIR=%OPENSSL_DIR%\\out
|
SET OPENSSL_LIBS_DIR=%OPENSSL_DIR%\\out
|
||||||
SET ZLIB_LIBS_DIR=%LIBS_DIR%\\zlib
|
SET ZLIB_LIBS_DIR=%LIBS_DIR%\\zlib
|
||||||
SET WEBP_DIR=%LIBS_DIR%\\libwebp
|
SET WEBP_DIR=%LIBS_DIR%\\libwebp
|
||||||
|
SET LCMS2_DIR=%LIBS_DIR%\\liblcms2
|
||||||
configure -prefix "%LIBS_DIR%\\Qt-%QT%" ^
|
configure -prefix "%LIBS_DIR%\\Qt-%QT%" ^
|
||||||
%CONFIGURATIONS% ^
|
%CONFIGURATIONS% ^
|
||||||
-force-debug-info ^
|
-force-debug-info ^
|
||||||
|
@ -1726,7 +1736,10 @@ win:
|
||||||
-D WebP_mux_INCLUDE_DIR="%WEBP_DIR%\\src" ^
|
-D WebP_mux_INCLUDE_DIR="%WEBP_DIR%\\src" ^
|
||||||
-D WebP_LIBRARY="%WEBP_DIR%\\out\\release-static\\$X8664\\lib\\webp.lib" ^
|
-D WebP_LIBRARY="%WEBP_DIR%\\out\\release-static\\$X8664\\lib\\webp.lib" ^
|
||||||
-D WebP_demux_LIBRARY="%WEBP_DIR%\\out\\release-static\\$X8664\\lib\\webpdemux.lib" ^
|
-D WebP_demux_LIBRARY="%WEBP_DIR%\\out\\release-static\\$X8664\\lib\\webpdemux.lib" ^
|
||||||
-D WebP_mux_LIBRARY="%WEBP_DIR%\\out\\release-static\\$X8664\\lib\\webpmux.lib"
|
-D WebP_mux_LIBRARY="%WEBP_DIR%\\out\\release-static\\$X8664\\lib\\webpmux.lib" ^
|
||||||
|
-D LCMS2_FOUND=1 ^
|
||||||
|
-D LCMS2_INCLUDE_DIR="%LCMS2_DIR%\\include" ^
|
||||||
|
-D LCMS2_LIBRARIES="%LCMS2_DIR%\\out\Release\\src\\liblcms2.a"
|
||||||
|
|
||||||
cmake --build . --config Debug --parallel
|
cmake --build . --config Debug --parallel
|
||||||
cmake --install . --config Debug
|
cmake --install . --config Debug
|
||||||
|
|
2
cmake
2
cmake
|
@ -1 +1 @@
|
||||||
Subproject commit 8c146a3ec6f4475e5083eee84d126960495a7e1d
|
Subproject commit 90e6d73100a9fd2dc4c30a270c3bbc1d35924f32
|
Loading…
Add table
Reference in a new issue