All of lore.kernel.org
 help / color / mirror / Atom feed
* [morty/master][PATCH v3 1/3] qtwebbrowser: add QT web browser
@ 2017-06-08 18:54 Eric Ruei
  2017-06-08 18:54 ` [morty/master][PATCH v3 2/3] packagegroup-arago-tisdk-qte: add qtwebbrowser demo application to the list and sort it Eric Ruei
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Eric Ruei @ 2017-06-08 18:54 UTC (permalink / raw)
  To: meta-arago

- This is a touch-friendly web broswer based on qtwebengine and QML

Signed-off-by: Eric Ruei <e-ruei1@ti.com>
---
 .../recipes-qt/examples/qtwebbrowser_1.0.bb        | 34 ++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 meta-arago-extras/recipes-qt/examples/qtwebbrowser_1.0.bb

diff --git a/meta-arago-extras/recipes-qt/examples/qtwebbrowser_1.0.bb b/meta-arago-extras/recipes-qt/examples/qtwebbrowser_1.0.bb
new file mode 100644
index 0000000..c484bd9
--- /dev/null
+++ b/meta-arago-extras/recipes-qt/examples/qtwebbrowser_1.0.bb
@@ -0,0 +1,34 @@
+SUMMARY = "Qt Touch-Friendly WebBroswer"
+HOMEPAGE = "http://blog.qt.io/blog/2016/07/18/qt-webbrowser-1-0/"
+SECTION = "multimedia"
+LICENSE = "GPL-3.0 & GFDL-1.3"
+LIC_FILES_CHKSUM = " \
+    file://LICENSE.GPLv3;md5=a40e2bb02b1ac431f461afd03ff9d1d6 \
+    file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \
+"
+DEPENDS += "qtwebengine"
+
+PR = "r0"
+
+BRANCH = "dev"
+SRCREV = "023733af5523a5ad84359926224fa106001215f4"
+
+SRC_URI = "git://code.qt.io/qt-apps/qtwebbrowser.git;protocol=git;branch=${BRANCH} \
+"
+
+S = "${WORKDIR}/git"
+
+inherit qt-provider
+
+# Install qtwebbrowser under /usr/bin
+do_install() {
+    install -d ${D}${bindir}
+    install -d ${D}${datadir}/qt5/examples/webengine/webbrowser/src
+    install -m 0755 src/qtwebbrowser ${D}${bindir}/qtwebbrowser
+    cp -R --no-dereference --preserve=mode,links ${S}/* ${D}${datadir}/qt5/examples/webengine/webbrowser/.
+}
+
+FILES_${PN} +=  " \
+${bindir}/qtwebbrowser \
+${datadir}/qt5/examples/webengine/webbrowser/* \
+"
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [morty/master][PATCH v3 2/3] packagegroup-arago-tisdk-qte: add qtwebbrowser demo application to the list and sort it
  2017-06-08 18:54 [morty/master][PATCH v3 1/3] qtwebbrowser: add QT web browser Eric Ruei
@ 2017-06-08 18:54 ` Eric Ruei
  2017-06-08 18:54 ` [morty/master][PATCH v3 3/3] qtwebbrowser: disable Fullscreen mode Eric Ruei
  2017-06-12 22:19 ` [morty/master][PATCH v3 1/3] qtwebbrowser: add QT web browser Denys Dmytriyenko
  2 siblings, 0 replies; 4+ messages in thread
From: Eric Ruei @ 2017-06-08 18:54 UTC (permalink / raw)
  To: meta-arago

Signed-off-by: Eric Ruei <e-ruei1@ti.com>
---
 .../recipes-core/packagegroups/packagegroup-arago-tisdk-qte.bb           | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-qte.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-qte.bb
index f2f87be..530d93d 100644
--- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-qte.bb
+++ b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-qte.bb
@@ -24,6 +24,7 @@ QT5_DEMOS = "\
     qtscript-examples \
     qtsvg-examples \
     ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'qtwayland-examples', '', d)} \
+    qtwebbrowser \
     qtwebengine-examples \
     qtwebkit-examples-examples \
 "
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [morty/master][PATCH v3 3/3] qtwebbrowser: disable Fullscreen mode
  2017-06-08 18:54 [morty/master][PATCH v3 1/3] qtwebbrowser: add QT web browser Eric Ruei
  2017-06-08 18:54 ` [morty/master][PATCH v3 2/3] packagegroup-arago-tisdk-qte: add qtwebbrowser demo application to the list and sort it Eric Ruei
@ 2017-06-08 18:54 ` Eric Ruei
  2017-06-12 22:19 ` [morty/master][PATCH v3 1/3] qtwebbrowser: add QT web browser Denys Dmytriyenko
  2 siblings, 0 replies; 4+ messages in thread
From: Eric Ruei @ 2017-06-08 18:54 UTC (permalink / raw)
  To: meta-arago

We need to disable full-screen mode because there is no way to exit
when the browser is launched from matrix-gui

Signed-off-by: Eric Ruei <e-ruei1@ti.com>
---
 ...0001-qtwebbrowser-disable-FullScreen-mode.patch | 32 ++++++++++++++++++++++
 .../recipes-qt/examples/qtwebbrowser_1.0.bbappend  |  7 +++++
 2 files changed, 39 insertions(+)
 create mode 100755 meta-arago-distro/recipes-qt/examples/qtwebbrowser/0001-qtwebbrowser-disable-FullScreen-mode.patch
 create mode 100755 meta-arago-distro/recipes-qt/examples/qtwebbrowser_1.0.bbappend

diff --git a/meta-arago-distro/recipes-qt/examples/qtwebbrowser/0001-qtwebbrowser-disable-FullScreen-mode.patch b/meta-arago-distro/recipes-qt/examples/qtwebbrowser/0001-qtwebbrowser-disable-FullScreen-mode.patch
new file mode 100755
index 0000000..fcf768b
--- /dev/null
+++ b/meta-arago-distro/recipes-qt/examples/qtwebbrowser/0001-qtwebbrowser-disable-FullScreen-mode.patch
@@ -0,0 +1,32 @@
+From 720056bbce57184c1f352abb160942dbff2c1cd0 Mon Sep 17 00:00:00 2001
+From: Eric Ruei <e-ruei1@ti.com>
+Date: Tue, 6 Jun 2017 14:40:08 -0400
+Subject: [PATCH] qtwebbrowser: disable FullScreen mode
+
+We need to disable full-screen mode because there is no way to exit
+when the browser is launched from matrix-gui
+
+Upstream-Status: Inappropriate
+It is a TI-specific workaround per matrix-gui operation
+
+Signed-off-by: Eric Ruei <e-ruei1@ti.com>
+---
+ src/main.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/main.cpp b/src/main.cpp
+index 2181f15..5f146b6 100644
+--- a/src/main.cpp
++++ b/src/main.cpp
+@@ -101,7 +101,7 @@ int main(int argc, char **argv)
+     if (view.size().isEmpty())
+         view.setGeometry(0, 0, 800, 600);
+ #else
+-    view.showFullScreen();
++    view.show();
+ #endif
+ 
+     app.exec();
+-- 
+1.9.1
+
diff --git a/meta-arago-distro/recipes-qt/examples/qtwebbrowser_1.0.bbappend b/meta-arago-distro/recipes-qt/examples/qtwebbrowser_1.0.bbappend
new file mode 100755
index 0000000..3b7e80f
--- /dev/null
+++ b/meta-arago-distro/recipes-qt/examples/qtwebbrowser_1.0.bbappend
@@ -0,0 +1,7 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+SRC_URI += " \
+    file://0001-qtwebbrowser-disable-FullScreen-mode.patch \
+"
+
+PR_append = ".arago0"
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [morty/master][PATCH v3 1/3] qtwebbrowser: add QT web browser
  2017-06-08 18:54 [morty/master][PATCH v3 1/3] qtwebbrowser: add QT web browser Eric Ruei
  2017-06-08 18:54 ` [morty/master][PATCH v3 2/3] packagegroup-arago-tisdk-qte: add qtwebbrowser demo application to the list and sort it Eric Ruei
  2017-06-08 18:54 ` [morty/master][PATCH v3 3/3] qtwebbrowser: disable Fullscreen mode Eric Ruei
@ 2017-06-12 22:19 ` Denys Dmytriyenko
  2 siblings, 0 replies; 4+ messages in thread
From: Denys Dmytriyenko @ 2017-06-12 22:19 UTC (permalink / raw)
  To: Eric Ruei; +Cc: meta-arago

Thanks, Eric, looks good. Please see below for a small comment.

On Thu, Jun 08, 2017 at 02:54:22PM -0400, Eric Ruei wrote:
> - This is a touch-friendly web broswer based on qtwebengine and QML
> 
> Signed-off-by: Eric Ruei <e-ruei1@ti.com>
> ---
>  .../recipes-qt/examples/qtwebbrowser_1.0.bb        | 34 ++++++++++++++++++++++
>  1 file changed, 34 insertions(+)
>  create mode 100644 meta-arago-extras/recipes-qt/examples/qtwebbrowser_1.0.bb
> 
> diff --git a/meta-arago-extras/recipes-qt/examples/qtwebbrowser_1.0.bb b/meta-arago-extras/recipes-qt/examples/qtwebbrowser_1.0.bb
> new file mode 100644
> index 0000000..c484bd9
> --- /dev/null
> +++ b/meta-arago-extras/recipes-qt/examples/qtwebbrowser_1.0.bb
> @@ -0,0 +1,34 @@
> +SUMMARY = "Qt Touch-Friendly WebBroswer"
> +HOMEPAGE = "http://blog.qt.io/blog/2016/07/18/qt-webbrowser-1-0/"
> +SECTION = "multimedia"
> +LICENSE = "GPL-3.0 & GFDL-1.3"
> +LIC_FILES_CHKSUM = " \
> +    file://LICENSE.GPLv3;md5=a40e2bb02b1ac431f461afd03ff9d1d6 \
> +    file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \
> +"
> +DEPENDS += "qtwebengine"
> +
> +PR = "r0"
> +
> +BRANCH = "dev"
> +SRCREV = "023733af5523a5ad84359926224fa106001215f4"
> +
> +SRC_URI = "git://code.qt.io/qt-apps/qtwebbrowser.git;protocol=git;branch=${BRANCH} \
> +"
> +
> +S = "${WORKDIR}/git"
> +
> +inherit qt-provider
> +
> +# Install qtwebbrowser under /usr/bin
> +do_install() {
> +    install -d ${D}${bindir}
> +    install -d ${D}${datadir}/qt5/examples/webengine/webbrowser/src
> +    install -m 0755 src/qtwebbrowser ${D}${bindir}/qtwebbrowser
> +    cp -R --no-dereference --preserve=mode,links ${S}/* ${D}${datadir}/qt5/examples/webengine/webbrowser/.
> +}
> +
> +FILES_${PN} +=  " \
> +${bindir}/qtwebbrowser \
> +${datadir}/qt5/examples/webengine/webbrowser/* \
> +"

Can you please split the resulting package into ${PN} with only the binary and 
${PN}-examples with the sources? All you need to change is the FILES_ 
statements above. You can pull both into the packagegroup in patch #2. Thanks.


> -- 
> 1.9.1
> 
> _______________________________________________
> meta-arago mailing list
> meta-arago@arago-project.org
> http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-06-12 22:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-08 18:54 [morty/master][PATCH v3 1/3] qtwebbrowser: add QT web browser Eric Ruei
2017-06-08 18:54 ` [morty/master][PATCH v3 2/3] packagegroup-arago-tisdk-qte: add qtwebbrowser demo application to the list and sort it Eric Ruei
2017-06-08 18:54 ` [morty/master][PATCH v3 3/3] qtwebbrowser: disable Fullscreen mode Eric Ruei
2017-06-12 22:19 ` [morty/master][PATCH v3 1/3] qtwebbrowser: add QT web browser Denys Dmytriyenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.