package: add qt5virtualkeyboard
PATCH v6 1/1 package: add qt5virtualkeyboard
This patch adds the Qt virtualkeyboard package.
---
Changes since v5:
- Fix LICENSE information.
- Fix missing QT5VIRTUALKEYBOARD_ prefix for QMAKEFLAGS.
- Set QT5VIRTUALKEYBOARD_3RDPARTY_PARTS to YES instead of appending a list of mudules.
Changes since v4:
- Prefix local variables to avoid potential naming collisions.
Changes since v3:
- Fix another build issue when installing to target in case of zh_TW (or other layout) is not set.
- Add licenses files when using 3rd-part modules.
- Add support for handwriting module.
Changes since v2:
- Fix build issue when installing libqtvirtualkeyboardplugin.so library in case of some other qt5 package installs something to plugins/platforminputcontexts.
Changes since v1:
- Add missing hash file
- Add license approval statement
- Add support for languages layouts
Note: Chinese, Japanese and Korean does not display properly (font?)
- Install sample if is compiled (BR2_PACKAGE_QT5BASE_EXAMPLES=y)
- Apply reviews from Peter:
Add version constraint: message and dependency (needs at least qt 5.8) Update help to mention GPLv3 license
package/qt5/Config.in | 1 + package/qt5/qt5virtualkeyboard/Config.in | 52 +++++++++++++ .../qt5/qt5virtualkeyboard/qt5virtualkeyboard.hash | 2 + .../qt5/qt5virtualkeyboard/qt5virtualkeyboard.mk | 86 ++++++++++++++++++++++ 4 files changed, 141 insertions(+) create mode 100644 package/qt5/qt5virtualkeyboard/Config.in create mode 100644 package/qt5/qt5virtualkeyboard/qt5virtualkeyboard.hash create mode 100644 package/qt5/qt5virtualkeyboard/qt5virtualkeyboard.mk
package/qt5/Config.in +1 -0
@@ -76,6 +76,7 @@ source "package/qt5/qt5serialbus/Config.in" source "package/qt5/qt5serialport/Config.in" source "package/qt5/qt5svg/Config.in" source "package/qt5/qt5tools/Config.in" +source "package/qt5/qt5virtualkeyboard/Config.in" source "package/qt5/qt5webchannel/Config.in" source "package/qt5/qt5webkit/Config.in" source "package/qt5/qt5websockets/Config.in"
package/qt5/qt5virtualkeyboard/Config.in new file +52 -0
52 lines not on this page · raw message
package/qt5/qt5virtualkeyboard/qt5virtualkeyboard.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Hash from: http://download.qt.io/official_releases/qt/5.8/5.8.0/submodules/qtvirtualkeyboard-opensource-src-5.8.0.tar.xz +sha256 35fdf5b39d930935b6299ac59f347bea89b983e16bd7961fee3f1b8e16f4e21c qtvirtualkeyboard-opensource-src-5.8.0.tar.xz
package/qt5/qt5virtualkeyboard/qt5virtualkeyboard.mk new file +86 -0
86 lines not on this page · raw message
Signature · 1 line
2.12.1
PATCH v6 1/1 package: add qt5virtualkeyboard
Hello,
Quoted 4 lines · Ga?l PORTAY
This patch adds the Qt virtualkeyboard package.
Signed-off-by Ga?l PORTAY <[email protected]>Reviewed-by Peter Seiderer <[email protected]>
I was about to apply this, but there's still one thing unclear to me. I'll be making some minor suggestions along the way (but those I would have fixed myself when applying if I didn't had the doubt I'm referring to). See below.
package/qt5/qt5virtualkeyboard/Config.in line 14
Quoted 11 lines
package/qt5/qt5virtualkeyboard/Config.in new file +11
-0+config BR2_PACKAGE_QT5VIRTUALKEYBOARD + bool "qt5virtualkeyboard" + depends on BR2_PACKAGE_QT5_VERSION_LATEST + depends on BR2_PACKAGE_QT5DECLARATIVE_QUICK + select BR2_PACKAGE_QT5SVG + help + Qt Virtual Keyboard is a virtual keyboard framework that consists of a + C++ backend supporting custom input methods as well as a UI frontend + implemented in QML. + + This module is licensed under GPLv3.
You can remove this part, it is incorrect (can be a commercial license), and already documented in the package itself.
Quoted 1 line
+if
BR2_PACKAGE_QT5VIRTUALKEYBOARD
One empty line should be added here.
Quoted 17 lines
package/qt5/qt5virtualkeyboard/Config.in new file +17
-0+config BR2_PACKAGE_QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS + string "language layouts" + default "en_GB" + help + The Virtual Keyboard supports the following languages: + - Arabic (ar_AR) + - Danish (da_DK) + - English (en_GB) + - Finnish (fi_FI) + - French (fr_FR) + - German (de_DE) + - Hindi (hi_IN) + - Italian (it_IT) + - Japanese (ja_JP) + - Korean (ko_KR) + - Norwegian (nb_NO) + - Persian/Farsi (fa_FA)
package/qt5/qt5virtualkeyboard/Config.in line 43
Quoted 10 lines
package/qt5/qt5virtualkeyboard/Config.in new file +10
-0+ - Polish (pl_PL) + - Portugese (pt_PT) + - Romanian (ro_RO) + - Russian (ru_RU) + - Simplified Chinese (zh_CN) + - Traditional Chinese (zh_TW) + - Spanish (es_ES) + - Swedish (sv_SE) + + Note: all is a flag for activating all languages.
I believe something like this would be clearer:
Note: the special value "all" can be used to install support for all supported languages.
package/qt5/qt5virtualkeyboard/Config.in line 51
Quoted 8 lines
package/qt5/qt5virtualkeyboard/Config.in new file +8
-0+ +config BR2_PACKAGE_QT5VIRTUALKEYBOARD_HANDWRITING + bool "handwriting" + help + Handwriting support, with gestures for fullscreen input. + + Lipi Toolkit (LipiTk) is an open source toolkit for online Handwriting + Recognition.
One empty line should be added here.
package/qt5/qt5virtualkeyboard/qt5virtualkeyboard.mk line 24
Quoted 4 lines
package/qt5/qt5virtualkeyboard/qt5virtualkeyboard.mk new file +4
-0+QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS = $(call qstrip,$(BR2_PACKAGE_QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS)) +QT5VIRTUALKEYBOARD_ALL_LAYOUTS = $(findstring all,$(QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS)) +ifneq ($(strip $(QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS)),) +QT5VIRTUALKEYBOARD_QMAKEFLAGS += CONFIG+="$(foreach lang,$(QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS),lang-$(lang))"
I don't understand how this will behave when the "all" flag is used. You will have:
CONFIG+=lang-all
is this actually working?
package/qt5/qt5virtualkeyboard/qt5virtualkeyboard.mk line 27
Quoted 2 lines
package/qt5/qt5virtualkeyboard/qt5virtualkeyboard.mk new file +2
-0+QT5VIRTUALKEYBOARD_OPENWNN = $(findstring ja_JP,$(QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS)) +ifneq ($(strip $(QT5VIRTUALKEYBOARD_OPENWNN)$(QT5VIRTUALKEYBOARD_ALL_LAYOUTS)),)
Is the strip really needed in this condition (and the similar ones below) ?
Perhaps we could do:
ifneq ($(findstring zh_CN,$(QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS)),) QT5VIRTUALKEYBOARD_INSTALL_PINYIN = YES
endif
ifneq ($(findstring ja_JP,$(QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS)),) QT5VIRTUALKEYBOARD_INSTALL_OPENWNN = YES
endif
...
ifneq ($(findstring all,$(QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS)),) QT5VIRTUALKEYBOARD_INSTALL_PINYIN = YES QT5VIRTUALKEYBOARD_INSTALL_OPENWNN = YES
...
endif
And then use the QT5VIRTUALKEYBOARD_INSTALL_<foo> variables to know what should be installed.
Quoted 1 line
+ifneq ($(strip $(QT5VIRTUALKEYBOARD_3RDPARTY_PARTS)),)
strip really needed?
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH v6 1/1 package: add qt5virtualkeyboard
Quoted 2 lines · Thomas Petazzoni
Hello,
[snip]
Quoted 3 lines
Perhaps we could do:
ifneq ($(findstring zh_CN,$(QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS)),)
Or just the pattern we use everywhere else:
ifneq ($(filter zh_CN all,$(QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS)),)
Regards,
Arnout
Quoted 26 lines
QT5VIRTUALKEYBOARD_INSTALL_PINYIN= YES
endififneq ($(findstring ja_JP,$(QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS)),)
QT5VIRTUALKEYBOARD_INSTALL_OPENWNN= YES
endif...
ifneq ($(findstring all,$(QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS)),)
QT5VIRTUALKEYBOARD_INSTALL_PINYIN= YESQT5VIRTUALKEYBOARD_INSTALL_OPENWNN= YES
...
endifAnd then use the QT5VIRTUALKEYBOARD_INSTALL_<foo> variables to know what should be installed.
Quoted 1 line
+ifneq ($(strip $(QT5VIRTUALKEYBOARD_3RDPARTY_PARTS)),)
strip really needed?
Thanks,
Thomas
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
PATCH v6 1/1 package: add qt5virtualkeyboard
Hi Arnout,
Quoted 5 lines · Vandecappelle
Quoted 2 lines · Thomas Petazzoni
Hello,
Quoted 9 lines
[snip]
Quoted 3 lines
Perhaps we could do:
ifneq ($(findstring zh_CN,$(QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS)),)
Or just the pattern we use everywhere else:
ifneq ($(filter
zh_CNall,$(QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS)),)
Thanks! it was the solution I wanted.
Quoted 21 lines
Regards,
ArnoutQuoted 18 lines
QT5VIRTUALKEYBOARD_INSTALL_PINYIN= YES
endififneq ($(findstring ja_JP,$(QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS)),)
QT5VIRTUALKEYBOARD_INSTALL_OPENWNN= YES
endif...
ifneq ($(findstring all,$(QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS)),)
QT5VIRTUALKEYBOARD_INSTALL_PINYIN= YESQT5VIRTUALKEYBOARD_INSTALL_OPENWNN= YES
...
endifAnd then use the QT5VIRTUALKEYBOARD_INSTALL_<foo> variables to know what should be installed.
Quoted 16 lines
Quoted 8 lines
Quoted 1 line
+ifneq ($(strip $(QT5VIRTUALKEYBOARD_3RDPARTY_PARTS)),)
strip really needed?
Thanks,
Thomas
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
Regards,
Gael
PATCH v6 1/1 package: add qt5virtualkeyboard
In reply to Thomas PetazzoniHello Thomas,
Quoted 13 lines · Thomas Petazzoni
Hello,
Quoted 4 lines · Ga?l PORTAY
This patch adds the Qt virtualkeyboard package.
Signed-off-by Ga?l PORTAY <[email protected]>Reviewed-by Peter Seiderer <[email protected]>I was about to apply this, but there's still one thing unclear to me. I'll be making some minor suggestions along the way (but those I would have fixed myself when applying if I didn't had the doubt I'm referring to). See below.
Quoted 14 lines
package/qt5/qt5virtualkeyboard/Config.in line 14
Quoted 11 lines
package/qt5/qt5virtualkeyboard/Config.in new file +11
-0+config BR2_PACKAGE_QT5VIRTUALKEYBOARD + bool "qt5virtualkeyboard" + depends on BR2_PACKAGE_QT5_VERSION_LATEST + depends on BR2_PACKAGE_QT5DECLARATIVE_QUICK + select BR2_PACKAGE_QT5SVG + help + Qt Virtual Keyboard is a virtual keyboard framework that consists of a + C++ backend supporting custom input methods as well as a UI frontend + implemented in QML. + + This module is licensed under GPLv3.You can remove this part, it is incorrect (can be a commercial license), and already documented in the package itself.
Done.
Quoted 5 lines
Quoted 2 lines
+if
BR2_PACKAGE_QT5VIRTUALKEYBOARDOne empty line should be added here.
Done.
Quoted 30 lines
Quoted 17 lines
package/qt5/qt5virtualkeyboard/Config.in new file +17
-0+config BR2_PACKAGE_QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS + string "language layouts" + default "en_GB" + help + The Virtual Keyboard supports the following languages: + - Arabic (ar_AR) + - Danish (da_DK) + - English (en_GB) + - Finnish (fi_FI) + - French (fr_FR) + - German (de_DE) + - Hindi (hi_IN) + - Italian (it_IT) + - Japanese (ja_JP) + - Korean (ko_KR) + - Norwegian (nb_NO) + - Persian/Farsi (fa_FA)package/qt5/qt5virtualkeyboard/Config.in line 43
Quoted 10 lines
package/qt5/qt5virtualkeyboard/Config.in new file +10
-0+ - Polish (pl_PL) + - Portugese (pt_PT) + - Romanian (ro_RO) + - Russian (ru_RU) + - Simplified Chinese (zh_CN) + - Traditional Chinese (zh_TW) + - Spanish (es_ES) + - Swedish (sv_SE) + + Note: all is a flag for activating all languages.I believe something like this would be clearer:
Quoted 3 lines
Note: the special value "all" can be used to install support for all supported languages.
Done.
Quoted 11 lines
package/qt5/qt5virtualkeyboard/Config.in line 51
Quoted 8 lines
package/qt5/qt5virtualkeyboard/Config.in new file +8
-0+ +config BR2_PACKAGE_QT5VIRTUALKEYBOARD_HANDWRITING + bool "handwriting" + help + Handwriting support, with gestures for fullscreen input. + + Lipi Toolkit (LipiTk) is an open source toolkit for online Handwriting + Recognition.One empty line should be added here.
Done.
Quoted 9 lines
package/qt5/qt5virtualkeyboard/qt5virtualkeyboard.mk line 24
Quoted 5 lines
package/qt5/qt5virtualkeyboard/qt5virtualkeyboard.mk new file +4
-0+QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS = $(call qstrip,$(BR2_PACKAGE_QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS)) +QT5VIRTUALKEYBOARD_ALL_LAYOUTS = $(findstring all,$(QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS)) +ifneq ($(strip $(QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS)),) +QT5VIRTUALKEYBOARD_QMAKEFLAGS += CONFIG+="$(foreach lang,$(QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS),lang-$(lang))"I don't understand how this will behave when the "all" flag is used. You will have:
Quoted 4 lines
CONFIG+=lang-allis this actually working?
Yes.
The Makefile will call qmake with CONFIG+=lang-all.
I tested it and it works fine. CONFIG+=lang-all acts as an alias for all languages. You can have a look to [1] & [2].
Quoted 18 lines
package/qt5/qt5virtualkeyboard/qt5virtualkeyboard.mk line 27
Quoted 2 lines
package/qt5/qt5virtualkeyboard/qt5virtualkeyboard.mk new file +2
-0+QT5VIRTUALKEYBOARD_OPENWNN = $(findstring ja_JP,$(QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS)) +ifneq ($(strip $(QT5VIRTUALKEYBOARD_OPENWNN)$(QT5VIRTUALKEYBOARD_ALL_LAYOUTS)),)Is the strip really needed in this condition (and the similar ones below) ?
Perhaps we could do:
ifneq ($(findstring zh_CN,$(QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS)),)
QT5VIRTUALKEYBOARD_INSTALL_PINYIN= YES
endififneq ($(findstring ja_JP,$(QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS)),)
QT5VIRTUALKEYBOARD_INSTALL_OPENWNN= YES
endif...
Quoted 8 lines
ifneq ($(findstring all,$(QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS)),)
QT5VIRTUALKEYBOARD_INSTALL_PINYIN= YESQT5VIRTUALKEYBOARD_INSTALL_OPENWNN= YES
...
endifAnd then use the QT5VIRTUALKEYBOARD_INSTALL_<foo> variables to know what should be installed.
It is another solution; which is much more nice.
Done.
Quoted 4 lines
Quoted 2 lines
+ifneq ($(strip $(QT5VIRTUALKEYBOARD_3RDPARTY_PARTS)),)
strip really needed?
Indeed, the strip here is definelty not needed.
Quoted 12 lines
Thanks,
Thomas
Signature · 7 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Thanks!
I will resend a new version.
Regards,
Gael
[1] https://github.com/qt/qtvirtualkeyboard/blob/5.8/src/config.pri#L23-L44
[2] https://doc.qt.io/qt-5/qtvirtualkeyboard-build.html