From: Jesse Van Gavere <jesseevg@gmail.com>
To: buildroot@buildroot.org
Cc: Jesse Van Gavere <jesseevg@gmail.com>,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Subject: [Buildroot] [PATCH v4 22/29] package/qt6/qt6base: add support for gui module fontconfig/harfbuzz
Date: Fri, 26 Aug 2022 15:54:56 +0200 [thread overview]
Message-ID: <20220826135503.20612-23-jesseevg@gmail.com> (raw)
In-Reply-To: <20220826135503.20612-1-jesseevg@gmail.com>
Additionally the harfbuzz license file is added and the hash for this is
also added to the hash file
Signed-off-by: Jesse Van Gavere <jesseevg@gmail.com>
---
package/qt6/qt6base/Config.in | 21 +++++++++++++++++++++
package/qt6/qt6base/qt6base.hash | 1 +
package/qt6/qt6base/qt6base.mk | 23 +++++++++++++++++++++++
3 files changed, 45 insertions(+)
diff --git a/package/qt6/qt6base/Config.in b/package/qt6/qt6base/Config.in
index 710e027602..db510989ca 100644
--- a/package/qt6/qt6base/Config.in
+++ b/package/qt6/qt6base/Config.in
@@ -46,6 +46,27 @@ config BR2_PACKAGE_QT6BASE_GUI
help
This option enables the Qt6Gui library.
+if BR2_PACKAGE_QT6BASE_GUI
+
+config BR2_PACKAGE_QT6BASE_FONTCONFIG
+ bool "fontconfig support"
+ select BR2_PACKAGE_FONTCONFIG
+ help
+ This option enables Fontconfig and Freetype support using
+ the system fontconfig and freetype2 libraries.
+
+config BR2_PACKAGE_QT6BASE_HARFBUZZ
+ bool "harfbuzz support"
+ select BR2_PACKAGE_HARFBUZZ if \
+ BR2_TOOLCHAIN_HAS_SYNC_4 && \
+ BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
+ help
+ This option enables HarfBuzz support (either system harfbuzz
+ if the toolchain supports __sync for 4 bytes, or the qt
+ provided one which avoids this dependency by using QAtomic).
+
+endif
+
config BR2_PACKAGE_QT6BASE_ICU
bool "Enable ICU support"
depends on !BR2_BINFMT_FLAT # icu
diff --git a/package/qt6/qt6base/qt6base.hash b/package/qt6/qt6base/qt6base.hash
index 5efc5c2815..0f845ce38b 100644
--- a/package/qt6/qt6base/qt6base.hash
+++ b/package/qt6/qt6base/qt6base.hash
@@ -6,3 +6,4 @@ sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 LICENS
sha256 0dbe024961f6ab5c52689cbd036c977975d0d0f6a67ff97762d96cb819dd5652 LICENSE.GPL3-EXCEPT
sha256 88ec689407cf2df9b2eb5c45952564d51ce73c129a3bdffb15c0d2d161ad7558 LICENSE.LGPLv3
sha256 ed8742a95cb9db653a09b050e27ccff5e67ba69c14aa2c3137f2a4e1892f6c0d LICENSE.FDL
+sha256 2a886915de4f296cdae5ed67064f86dba01d0c55286d86e8487f2a5caaf40216 src/3rdparty/harfbuzz-ng/COPYING
diff --git a/package/qt6/qt6base/qt6base.mk b/package/qt6/qt6base/qt6base.mk
index 2e63d0b4f3..ae6c482197 100644
--- a/package/qt6/qt6base/qt6base.mk
+++ b/package/qt6/qt6base/qt6base.mk
@@ -139,6 +139,29 @@ ifeq ($(BR2_PACKAGE_QT6BASE_GUI),y)
QT6BASE_CONF_OPTS += -DFEATURE_gui=ON -DFEATURE_freetype=ON -DINPUT_opengl=no -DFEATURE_vulkan=OFF
QT6BASE_DEPENDENCIES += freetype
+ifeq ($(BR2_PACKAGE_QT6BASE_HARFBUZZ),y)
+QT6BASE_CONF_OPTS += -DFEATURE_harfbuzz=ON
+ifeq ($(BR2_TOOLCHAIN_HAS_SYNC_4),y)
+# system harfbuzz in case __sync for 4 bytes is supported
+QT6BASE_CONF_OPTS += -DQT_USE_BUNDLED_BundledHarfbuzz=OFF
+QT6BASE_DEPENDENCIES += harfbuzz
+else #BR2_TOOLCHAIN_HAS_SYNC_4
+# qt harfbuzz otherwise (using QAtomic instead)
+QT6BASE_CONF_OPTS += -DQT_USE_BUNDLED_BundledHarfbuzz=ON
+QT6BASE_LICENSE += , MIT (harfbuzz)
+QT6BASE_LICENSE_FILES += src/3rdparty/harfbuzz-ng/COPYING
+endif
+else
+QT6BASE_CONF_OPTS += -DFEATURE_harfbuzz=OFF
+endif
+
+ifeq ($(BR2_PACKAGE_QT6BASE_FONTCONFIG),y)
+QT6BASE_CONF_OPTS += -DFEATURE_fontconfig=ON
+QT6BASE_DEPENDENCIES += fontconfig
+else
+QT6BASE_CONF_OPTS += -DFEATURE_fontconfig=OFF
+endif
+
else
QT6BASE_CONF_OPTS += -DFEATURE_gui=OFF
endif
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2022-08-26 14:00 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-26 13:54 [Buildroot] [PATCH v4 00/29] Extend Qt6 configuration Jesse Van Gavere
2022-08-26 13:54 ` [Buildroot] [PATCH v4 01/29] package/qt6/qt6base: Add qt6base hash file Jesse Van Gavere
2022-08-27 21:12 ` Arnout Vandecappelle
2022-08-26 13:54 ` [Buildroot] [PATCH v4 02/29] package/qt6/qt6base: Add license information Jesse Van Gavere
2022-08-27 21:15 ` Arnout Vandecappelle
2022-08-26 13:54 ` [Buildroot] [PATCH v4 03/29] package/qt6/qt6base: add support for network module Jesse Van Gavere
2022-08-29 20:07 ` Thomas Petazzoni via buildroot
2022-08-26 13:54 ` [Buildroot] [PATCH v4 04/29] package/qt6/qt6base: add support for concurrent module Jesse Van Gavere
2022-08-29 20:07 ` Thomas Petazzoni via buildroot
2022-08-26 13:54 ` [Buildroot] [PATCH v4 05/29] package/qt6/qt6base: add support for xml module Jesse Van Gavere
2022-08-29 20:07 ` Thomas Petazzoni via buildroot
2022-08-26 13:54 ` [Buildroot] [PATCH v4 06/29] package/qt6/qt6base: add support for test module Jesse Van Gavere
2022-08-29 20:07 ` Thomas Petazzoni via buildroot
2022-08-26 13:54 ` [Buildroot] [PATCH v4 07/29] package/qt6/qt6base: add support for dbus module Jesse Van Gavere
2022-08-29 20:07 ` Thomas Petazzoni via buildroot
2022-08-26 13:54 ` [Buildroot] [PATCH v4 08/29] package/qt6/qt6base: add support for syslog backend Jesse Van Gavere
2022-08-29 20:07 ` Thomas Petazzoni via buildroot
2022-08-26 13:54 ` [Buildroot] [PATCH v4 09/29] package/qt6/qt6base: add qt support for journald when using systemd Jesse Van Gavere
2022-09-18 8:50 ` Thomas Petazzoni via buildroot
2022-08-26 13:54 ` [Buildroot] [PATCH v4 10/29] package/qt6/qt6base: add qt support for zstd when using the package Jesse Van Gavere
2022-09-18 8:56 ` Thomas Petazzoni
2022-08-26 13:54 ` [Buildroot] [PATCH v4 11/29] package/qt6/qt6base: add qt support for SSE/AVX SIMD extensions Jesse Van Gavere
2022-09-18 9:57 ` Thomas Petazzoni
2022-09-18 14:13 ` Jesse Van Gavere
2022-08-26 13:54 ` [Buildroot] [PATCH v4 12/29] package/qt6/qt6base: add linking to libatomic Jesse Van Gavere
2022-09-18 10:03 ` Thomas Petazzoni
2022-08-26 13:54 ` [Buildroot] [PATCH v4 13/29] package/qt6/qt6base: add support to link qt to openssl Jesse Van Gavere
2022-09-18 10:19 ` Thomas Petazzoni
2022-08-26 13:54 ` [Buildroot] [PATCH v4 14/29] package/qt6/qt6base: add qt icu support Jesse Van Gavere
2022-09-18 10:35 ` Thomas Petazzoni
2022-08-26 13:54 ` [Buildroot] [PATCH v4 15/29] package/qt6/qt6base: add qt libudev support Jesse Van Gavere
2022-09-18 10:38 ` Thomas Petazzoni
2022-08-26 13:54 ` [Buildroot] [PATCH v4 16/29] package/qt6/qt6base: add qt libglib2 support Jesse Van Gavere
2022-09-18 10:40 ` Thomas Petazzoni
2022-08-26 13:54 ` [Buildroot] [PATCH v4 17/29] package/qt6/qt6base: add support for passing custom options Jesse Van Gavere
2022-09-18 10:41 ` Thomas Petazzoni
2022-09-18 14:36 ` Jesse Van Gavere
2022-08-26 13:54 ` [Buildroot] [PATCH v4 18/29] package/qt6/qt6base: add support for sql module w/ mysql Jesse Van Gavere
2022-09-20 6:38 ` Thomas Petazzoni
2022-08-26 13:54 ` [Buildroot] [PATCH v4 19/29] package/qt6/qt6base: add support for sql module w/ postgresql Jesse Van Gavere
2022-09-20 6:38 ` Thomas Petazzoni
2022-08-26 13:54 ` [Buildroot] [PATCH v4 20/29] package/qt6/qt6base: add support for sql module w/ sqlite Jesse Van Gavere
2022-09-20 6:39 ` Thomas Petazzoni
2022-08-26 13:54 ` [Buildroot] [PATCH v4 21/29] package/qt6/qt6base: add support for gui module Jesse Van Gavere
2022-08-26 13:54 ` Jesse Van Gavere [this message]
2022-08-26 13:54 ` [Buildroot] [PATCH v4 23/29] package/qt6/qt6base: Add support for gui module jpeg/png/gif image format Jesse Van Gavere
2022-08-26 13:54 ` [Buildroot] [PATCH v4 24/29] package/qt6/qt6base: add support for gui module widgets/opengl/graphics backends Jesse Van Gavere
2022-08-26 13:54 ` [Buildroot] [PATCH v4 25/29] package/qt6/qt6base: add support for gui module tslib Jesse Van Gavere
2022-08-26 13:55 ` [Buildroot] [PATCH v4 26/29] package/qt6/qt6base: add support for gui module libinput Jesse Van Gavere
2022-08-26 13:55 ` [Buildroot] [PATCH v4 27/29] package/qt6/qt6base: add support for gui module kms Jesse Van Gavere
2022-08-26 13:55 ` [Buildroot] [PATCH v4 28/29] package/qt6/qt6base: add support for gui module printsupport/cups Jesse Van Gavere
2022-08-26 13:55 ` [Buildroot] [PATCH v4 29/29] package/qt6/qt6base: add support for building examples Jesse Van Gavere
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220826135503.20612-23-jesseevg@gmail.com \
--to=jesseevg@gmail.com \
--cc=buildroot@buildroot.org \
--cc=thomas.petazzoni@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox