Re: [meta-oe][PATCH v2] wxwidgets: enable to use private fonts

Khem Raj

On Wed, May 11, 2022 at 11:23 PM Kai <kai.kang@...> wrote:

On 5/11/22 11:21 PM, Khem Raj wrote:
On Wed, May 11, 2022 at 12:45 AM kai <kai.kang@...> wrote:
From: Kai Kang <kai.kang@...>

Enable option wxUSE_PRIVATE_FONTS of wxwidgets if build with gtk. It
allows application to use the font from the given file even if it is
not globally installed on the system.

Signed-off-by: Kai Kang <kai.kang@...>
* use upper case 'ON' to align with others in oe

meta-oe/recipes-extended/wxwidgets/ | 1 +
1 file changed, 1 insertion(+)

diff --git a/meta-oe/recipes-extended/wxwidgets/ b/meta-oe/recipes-extended/wxwidgets/
index 6b57cb54c..b9b1dcf0d 100644
--- a/meta-oe/recipes-extended/wxwidgets/
+++ b/meta-oe/recipes-extended/wxwidgets/
@@ -39,6 +39,7 @@ EXTRA_OECMAKE += " \
-DwxUSE_REGEX=builtin \
-DwxPLATFORM_LIB_DIR=${@d.getVar('baselib').replace('lib', '')} \
+ ${@bb.utils.contains('PACKAGECONFIG', 'gtk', '-DwxUSE_PRIVATE_FONTS=ON', '', d)} \
why not add it to the packageconfig setting itself ?
It is an useful feature for wxwidgets with gui, so I want it to be
enabled by default. And it requires pango to make it work.

I can see gtk3 depends on pango but qtbase doesn't. So only check 'gtk'
I meant to do something like below instead of this patch.

-DwxUSE_PRIVATE_FONTS=ON,,gtk+3,,,no_gui qt"



EXTRA_OECMAKE:append:libc-musl = " \

Kai Kang
Wind River Linux

Join { to automatically receive all group messages.