Skip to contentSkip to conversation

qtwebengine: build examples by default

PATCH In review Manuel Bachmann 3 participants 6 messages Jan 27, 2016 – Feb 2, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qtwebengine: build examples by default

From: Manuel Bachmann <[email protected]>

Just as we do for qtwebkit, let us have a patch to build qtwebengine examples by default.

Otherwise, the "qtwebengine-examples" package will be empty, and attempting to add it with "IMAGE_INSTALL_append" will result in an error message.

---
 .../0001-examples-enable-building-examples-by-def.patch         |    7 +++++++
 recipes-qt/qt5/qtwebengine_git.bb                               |    1 +
 2 files changed, 8 insertions(+)
 create mode 100644 recipes-qt/qt5/qtwebengine/0001-examples-enable-building-examples-by-def.patch
recipes-qt/qt5/qtwebengine/0001-examples-enable-building-examples-by-def.patch new file +7 -0
new file mode 100644
index 0000000..3b13c02
@@ -0,0 +1,7 @@
+--- a/qtwebengine.pro	2016-01-04 02:08:57.152198023 +0000
++++ b/qtwebengine.pro	2016-01-04 02:09:11.667422022 +0000
+@@ -1,2 +1,4 @@
+ load(qt_build_config)
+ load(qt_parts)
++
++SUBDIRS += examples
recipes-qt/qt5/qtwebengine_git.bb +1 -0
index 7660932..7cdbea8 100644
@@ -115,6 +115,7 @@ SRC_URI += " \
     file://0002-media_capture_devices_dispatcher.h-Include-QCoreApplication-translate.patch \
     file://0003-WebEngine-qquickwebengineview_p_p.h-add-inc-QColor.patch \
     file://0001-chromium-jpeg_codec.cc_Change-false-to-FALSE-and-1-to-TRUE.patch \
+    file://0001-examples-enable-building-examples-by-def.patch \
 "
 
 SRCREV_qtwebengine = "40ef43e0d69c4a86c9430b7f264d2cde6340ee0f"
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 10 lines · Manuel Bachmann

From: Manuel Bachmann <[email protected]>

Just as we do for qtwebkit, let us have a patch to build qtwebengine examples by default.

Otherwise, the "qtwebengine-examples" package will be empty, and attempting to add it with "IMAGE_INSTALL_append" will result in an error message.

This should be a distro option and not enabled for everyone.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#2 lore raw
Quoted 7 lines · Otavio Salvador
Quoted 5 lines · Manuel Bachmann

From: Manuel Bachmann <[email protected]>

Just as we do for qtwebkit, let us have a patch to build qtwebengine examples by default.

Quoted 8 lines
Quoted 5 lines

Otherwise, the "qtwebengine-examples" package will be empty, and attempting to add it with "IMAGE_INSTALL_append" will result in an error message.

This should be a distro option and not enabled for everyone.

Also there is no need to do this with a patch, same result is achieved with:

EXTRA_QMAKEVARS_PRE += "QT_BUILD_PARTS+=examples"

Maybe this could be added to qt5.inc as a PACKAGECONFIG option? This would allow easily enable examples on any qt module.

#3 lore raw
Quoted 20 lines · Samuli Piippo
Quoted 9 lines · Otavio Salvador
Quoted 6 lines · Manuel Bachmann

From: Manuel Bachmann <[email protected]>

Just as we do for qtwebkit, let us have a patch to build qtwebengine examples by default.

Quoted 9 lines
Quoted 5 lines

Otherwise, the "qtwebengine-examples" package will be empty, and attempting to add it with "IMAGE_INSTALL_append" will result in an error message.

This should be a distro option and not enabled for everyone.

Quoted 6 lines

Also there is no need to do this with a patch, same result is achieved with:

EXTRA_QMAKEVARS_PRE += "QT_BUILD_PARTS+=examples"

Maybe this could be added to qt5.inc as a PACKAGECONFIG option? This would allow easily enable examples on any qt module.

It is:

https://github.com/meta-qt5/meta-qt5/blob/master/recipes-qt/qt5/qtbase_git.bb#L67

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#4 lore raw
Quoted 24 lines · Otavio Salvador
Quoted 22 lines · Samuli Piippo
Quoted 9 lines · Otavio Salvador
Quoted 6 lines · Manuel Bachmann

From: Manuel Bachmann <[email protected]>

Just as we do for qtwebkit, let us have a patch to build qtwebengine examples by default.

Quoted 9 lines
Quoted 5 lines

Otherwise, the "qtwebengine-examples" package will be empty, and attempting to add it with "IMAGE_INSTALL_append" will result in an error message.

This should be a distro option and not enabled for everyone.

Also there is no need to do this with a patch, same result is achieved with:

Quoted 9 lines
Quoted 4 lines

EXTRA_QMAKEVARS_PRE += "QT_BUILD_PARTS+=examples"

Maybe this could be added to qt5.inc as a PACKAGECONFIG option? This would allow easily enable examples on any qt module.

It is:

https://github.com/meta-qt5/meta-qt5/blob/master/recipes-qt/qt5/qtbase_git.bb#L67

Enabling the PACKAGECONFIG[examples] from qtbase means that every qt module will build their examples. If added to qt5.inc, it would build examples only from a qt module you bbappend with PACKAGECONFIG += examples.

#5 lore raw
Quoted 40 lines · Samuli Piippo
Quoted 39 lines · Otavio Salvador
Quoted 24 lines · Samuli Piippo
Quoted 15 lines · Otavio Salvador
Quoted 11 lines · Manuel Bachmann

From: Manuel Bachmann <[email protected]>

Just as we do for qtwebkit, let us have a patch to build qtwebengine examples by default.

Otherwise, the "qtwebengine-examples" package will be empty, and attempting to add it with "IMAGE_INSTALL_append" will result in an error message.

Quoted 6 lines
Quoted 1 line

This should be a distro option and not enabled for everyone.

Quoted 7 lines

Also there is no need to do this with a patch, same result is achieved with:

EXTRA_QMAKEVARS_PRE += "QT_BUILD_PARTS+=examples"

Maybe this could be added to qt5.inc as a PACKAGECONFIG option? This would allow easily enable examples on any qt module.

It is:

Quoted 7 lines
Quoted 2 lines

https://github.com/meta-qt5/meta-qt5/blob/master/recipes-qt/qt5/qtbase_git.bb#L67

Enabling the PACKAGECONFIG[examples] from qtbase means that every qt module will build their examples.
If added to qt5.inc, it would build examples only from a qt module you bbappend with PACKAGECONFIG += examples.

Agreed; I support this approach if you are willing to send a patch; otherwise I can do it.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750