[Buildroot] [PATCH] package/qt5location: handle plugins being conditionally built
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Fri Jul 21 06:26:39 UTC 2017
Hello,
On Thu, 20 Jul 2017 16:33:29 -0700, Joshua Henderson wrote:
> This fixes a build issue where the qt5location plugins are not built, but are
> attempted to be installed.
>
> The qt5location plugins have dependencies that are automatically resolved
> causing plugins to conditionaly be built. This change checks for the existance
> of the plugins prior to trying to install them.
Thanks for the fix. Do you know under which condition the plugins will
be built vs. not built ?
If it's related to one or several dependencies being available, then I
would prefer something like:
ifeq ($(BR2...dependencies needed for plugins),y)
define QT5LOCATION_INSTALL_PLUGINS
cp -dpfr $(STAGING_DIR)/usr/lib/qt/plugins/position $(TARGET_DIR)/usr/lib/qt/plugins/
endef
endif
define QT5LOCATION_INSTALL_TARGET_POSITION
cp -dpf $(STAGING_DIR)/usr/lib/libQt5Positioning.so.* $(TARGET_DIR)/usr/lib
$(QT5LOCATION_INSTALL_PLUGINS)
endef
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
More information about the buildroot
mailing list