Skip to contentSkip to conversation

qt5webkit-examples: new package

PATCH New Fatih Aşıcı 2 participants 2 messages Jul 11, 2014 – Jul 15, 2014

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 qt5webkit-examples: new package

From: Massimo Callegari <[email protected]>

---
Changes v2 -> v3:
- improved help text
- fixed package name in comments
- added qt5xmlpatterns to _DEPENDENCIES list when selected
- fixed indentation issues (added missing tabs, removed spaces)
- added mkdir for the target examples directory
- passed -dpfr options to cp commands

Changes v1 -> v2:
- formatted?qt5webkit-examples-0001-build.patch as requested

---
 package/qt5/Config.in                              |  1 +
 package/qt5/qt5webkit-examples/Config.in           | 10 +++++
 .../qt5webkit-examples-0001-build.patch            | 30 +++++++++++++
 .../qt5/qt5webkit-examples/qt5webkit-examples.mk   | 51 ++++++++++++++++++++++
 4 files changed, 92 insertions(+)
 create mode 100644 package/qt5/qt5webkit-examples/Config.in
 create mode 100644 package/qt5/qt5webkit-examples/qt5webkit-examples-0001-build.patch
 create mode 100644 package/qt5/qt5webkit-examples/qt5webkit-examples.mk
package/qt5/Config.in +1 -0
index efdd9d4..1f6920a 100644
@@ -40,6 +40,7 @@ source "package/qt5/qt5sensors/Config.in"
 source "package/qt5/qt5serialport/Config.in"
 source "package/qt5/qt5svg/Config.in"
 source "package/qt5/qt5webkit/Config.in"
+source "package/qt5/qt5webkit-examples/Config.in"
 source "package/qt5/qt5websockets/Config.in"
 source "package/qt5/qt5x11extras/Config.in"
 source "package/qt5/qt5xmlpatterns/Config.in"
package/qt5/qt5webkit-examples/Config.in new file +10 -0
new file mode 100644
index 0000000..6260f03
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_QT5WEBKIT_EXAMPLES
+	bool "qt5webkit examples"
+	depends on BR2_PACKAGE_QT5WEBKIT
+	help
+	  Qt is a cross-platform application and UI framework for
+	  developers using C++.
+
+	  This package contains examples for the qt5webkit module.
+
+	  http://qt-project.org
package/qt5/qt5webkit-examples/qt5webkit-examples-0001-build.patch new file +30 -0
new file mode 100644
index 0000000..68964f0
@@ -0,0 +1,30 @@
+This patch improves the qt5webkit examples build for 2 aspects:
+
+# Allows to build even if qt5base examples are not enabled
+# Builds xmlpatterns example only if the qt5xmlpattern package has been built
+
+Signed-off-by: Massimo Callegari <[email protected]>
+
+Index: b/examples/webkitwidgets/webkitwidgets.pro
+===================================================================
+--- /dev/null
++++ b/examples/webkitwidgets/webkitwidgets.pro
+@@ -8,5 +8,6 @@
+             framecapture \
+             browser \
+             embedded \
+-            scroller \
+-            xmlpatterns
++            scroller
++
++qtHaveModule(xmlpatterns): SUBDIRS += xmlpatterns
+Index: b/qtwebkit-examples.pro
+===================================================================
+--- /dev/null
++++ b/qtwebkit-examples.pro
+@@ -3,3 +3,4 @@
+ load(qt_parts)
+ 
+ SUBDIRS += doc
++SUBDIRS += examples
+
package/qt5/qt5webkit-examples/qt5webkit-examples.mk new file +51 -0

51 lines not on this page · raw message

Signature · 1 line
1.9.1
#1 lore raw

PATCH v3 1/1 qt5webkit-examples: new package

Dear Fatih A??c?,

Quoted 4 lines · Fatih A??c?

From: Massimo Callegari <[email protected]>

I've applied your patch, with one change:

Quoted 1 line

+QT5WEBKIT_EXAMPLES_INSTALL_STAGING = YES

This is not needed, since you're only installing examples to the target anyway.

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com