From ca158abcb64e70d7bb7d5bcdc0c87c8cf760a2e3 Mon Sep 17 00:00:00 2001 From: BearOso Date: Tue, 28 Nov 2023 18:31:55 -0600 Subject: [PATCH] Qt: Add scripts used for building minimal binary Qt. --- qt/scripts/cmake-qt-base.sh | 3 +++ qt/scripts/cmake-qt-other.sh | 2 ++ qt/scripts/cmake-qt-tools.sh | 4 ++++ 3 files changed, 9 insertions(+) create mode 100644 qt/scripts/cmake-qt-base.sh create mode 100644 qt/scripts/cmake-qt-other.sh create mode 100644 qt/scripts/cmake-qt-tools.sh diff --git a/qt/scripts/cmake-qt-base.sh b/qt/scripts/cmake-qt-base.sh new file mode 100644 index 00000000..6484c833 --- /dev/null +++ b/qt/scripts/cmake-qt-base.sh @@ -0,0 +1,3 @@ +#!/bin/sh +PARAMS="-DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=C:/Qt -DFEATURE_androiddeployqt=OFF -DFEATURE_brotli=OFF -DFEATURE_dbus=OFF -DFEATURE_freetype=OFF -DFEATURE_harfbuzz=OFF -DFEATURE_imageformat_ppm=OFF -DFEATURE_islamiccivilcalendar=OFF -DFEATURE_jalalicalendar=OFF -DFEATURE_lcdnumber=OFF -DFEATURE_movie=OFF -DFEATURE_openssl_linked=OFF -DFEATURE_openssl_runtime=OFF -DFEATURE_optimize_size=ON -DFEATURE_pdf=ON -DFEATURE_printsupport=ON -DFEATURE_printer=ON -DFEATURE_shani=OFF -DFEATURE_sql=OFF -DFEATURE_static=ON -DFEATURE_system_doubleconversion=OFF -DFEATURE_system_freetype=OFF -DFEATURE_system_harfbuzz=OFF -DFEATURE_system_jpeg=OFF -DFEATURE_system_libb2=OFF -DFEATURE_system_pcre2=OFF -DFEATURE_system_png=OFF -DFEATURE_system_proxies=OFF -DFEATURE_system_textmarkdownreader=OFF -DFEATURE_system_zlib=OFF -DFEATURE_testlib=OFF -DFEATURE_textodfwriter=OFF -DFEATURE_vkgen=OFF -DFEATURE_vulkan=OFF -DFEATURE_zstd=OFF -DQT_BUILD_EXAMPLES_BY_DEFAULT=OFF -DQT_BUILD_TESTS_BY_DEFAULT=OFF" +cmake .. -G Ninja $PARAMS diff --git a/qt/scripts/cmake-qt-other.sh b/qt/scripts/cmake-qt-other.sh new file mode 100644 index 00000000..6f0e88dd --- /dev/null +++ b/qt/scripts/cmake-qt-other.sh @@ -0,0 +1,2 @@ +#!/bin/sh +CMAKE_PREFIX_PATH=../../../qt/lib/cmake cmake .. -G Ninja $PARAMS diff --git a/qt/scripts/cmake-qt-tools.sh b/qt/scripts/cmake-qt-tools.sh new file mode 100644 index 00000000..ccdd6b4f --- /dev/null +++ b/qt/scripts/cmake-qt-tools.sh @@ -0,0 +1,4 @@ +#!/bin/sh +PARAMS="-DFEATURE_clang=OFF -DFEATURE_clangcpp=OFF -DFEATURE_designer=off -DFEATURE_kmap2qmap=OFF -DFEATURE_pixeltool=OFF -DFEATURE_qev=OFF -DFEATURE_qtattributionsscanner=OFF -DFEATURE_qtdiag=OFF -DFEATURE_qtplugininfo=OFF -DFEATURE_qdoc=OFF" + +CMAKE_PREFIX_PATH=../../../qt/lib/cmake cmake .. -G Ninja $PARAMS