[Buildroot] Qt5Declarative examples
Fatih Aşıcı
fatih.asici at gmail.com
Fri Jun 13 08:54:48 UTC 2014
On Monday 09 June 2014 19:58:29 Will Wagner wrote:
> Hello,
Hi,
> Just started taking a look at Qt5Declarative and noticed that examples
> aren't being built/installed.
>
> Having looked at the .mk files it is easy to conditionally build the
> examples depending on qt5base config option about examples, but I'm
> unsure how best to do the install target step.
>
> In Qt5Base it just does:
> cp -dpfr $(STAGING_DIR)/usr/lib/qt/examples/*
> $(TARGET_DIR)/usr/lib/qt/examples
> to install examples from staging.
>
> This would also work for Qt5Declarative but it seems like a poor
> solution to just copy and paste the same code.
>
> Can anyone think of a better way of doing this? Perhaps define something
> in qt5.mk and use that in both qt5base and qt5declarative?
You can have a look at qt5enginio and qt5websockets packages. They are
installing their examples if BR2_PACKAGE_QT5BASE_EXAMPLES.
There are 3 directories you need to copy for qt5declarative. Following lines will be enough
to copy all of them:
cp -dpfr $(STAGING_DIR)/usr/lib/qt/examples/qml* $(TARGET_DIR)/usr/lib/qt/examples/
cp -dpfr $(STAGING_DIR)/usr/lib/qt/examples/quick $(TARGET_DIR)/usr/lib/qt/examples/
Regards,
Fatih
More information about the buildroot
mailing list