package/qt5/qt5virtualkeyboard: install shared library
authorMark Thompson <mark.thompson@starleaf.com>
Fri, 8 Mar 2019 18:33:39 +0000 (18:33 +0000)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 14 Mar 2019 21:23:06 +0000 (22:23 +0100)
Between Qt 5.11 and 5.12 the virtual keyboard package gained a new
top-level library, libQt5VirtualKeyboard.so, which is then used by all
of the plugins it installs. This change makes Buildroot aware of the
new library so that we install it to the target filesystem.

Signed-off-by: Mark Thompson <mark.thompson@starleaf.com>
[Thomas: move the definition of QT5VIRTUALKEYBOARD_INSTALL_TARGET_LIBS
into a separate condition]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/qt5/qt5virtualkeyboard/qt5virtualkeyboard.mk

index 8ce31697744886e0eede60b70576ae3ae20c42ee..3f1ebdbaa4d8aa5bf7ee7d0c7483f3228787b943 100644 (file)
@@ -93,10 +93,17 @@ define QT5VIRTUALKEYBOARD_INSTALL_TARGET_EXAMPLES
 endef
 endif
 
+ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST):$(BR2_STATIC_LIBS),y:)
+define QT5VIRTUALKEYBOARD_INSTALL_TARGET_LIBS
+       cp -dpf $(STAGING_DIR)/usr/lib/libQt5VirtualKeyboard*.so.* $(TARGET_DIR)/usr/lib
+endef
+endif
+
 define QT5VIRTUALKEYBOARD_INSTALL_TARGET_CMDS
        mkdir -p $(TARGET_DIR)/usr/lib/qt/plugins/platforminputcontexts
        cp -dpfr $(STAGING_DIR)/usr/lib/qt/plugins/platforminputcontexts/libqtvirtualkeyboardplugin.so \
                $(TARGET_DIR)/usr/lib/qt/plugins/platforminputcontexts
+       $(QT5VIRTUALKEYBOARD_INSTALL_TARGET_LIBS)
        $(QT5VIRTUALKEYBOARD_INSTALL_TARGET_QML)
        $(QT5VIRTUALKEYBOARD_INSTALL_TARGET_3RDPARTY_PARTS)
        $(QT5VIRTUALKEYBOARD_INSTALL_TARGET_EXAMPLES)