Qt5Declarative examples
Hello,
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?
If I can come up with anything neat I'll submit a patch.
Regards
Will
Signature · 5 lines
------------------------------------------------------------------------ Will Wagner will_wagner at carallon.com Development Manager Office Tel: +44 (0)20 7471 9224 Carallon Ltd, Studio G20, Shepherds Building, Rockley Rd, London W14 0DA ------------------------------------------------------------------------
Quoted 1 line · On Monday 09 June 2014 19:58:29 Will Wagner wrote:
Hello,
Hi,
Quoted 12 lines
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.
Quoted 5 lines
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