All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-browser][PATCH] chromium: install all pak files plus resources and blob.bin files.
@ 2016-07-15 17:12 Carlos Alberto Lopez Perez
  2016-07-16  0:04 ` Khem Raj
  0 siblings, 1 reply; 2+ messages in thread
From: Carlos Alberto Lopez Perez @ 2016-07-15 17:12 UTC (permalink / raw)
  To: openembedded-devel

 * This files contain localized strings and other resources that are
   needed for support of internationalization and localization.

 * Files under the resources directory are needed for the web inspector.

Signed-off-by: Carlos Alberto Lopez Perez <clopez@igalia.com>
---
 recipes-browser/chromium/chromium.inc | 28 ++++++++++++++++++++--------
 1 file changed, 20 insertions(+), 8 deletions(-)

diff --git a/recipes-browser/chromium/chromium.inc b/recipes-browser/chromium/chromium.inc
index e5deac1..0e7250e 100644
--- a/recipes-browser/chromium/chromium.inc
+++ b/recipes-browser/chromium/chromium.inc
@@ -52,20 +52,32 @@ do_install() {
 	if [ -f "${WORKDIR}/google-chrome.desktop" ]; then
 		install -Dm 0644 ${WORKDIR}/google-chrome.desktop ${D}${datadir}/applications/google-chrome.desktop
 	fi
-	#Chromium plugins libs
+	if [ -f "${B}/out/${CHROMIUM_BUILD_TYPE}/product_logo_48.png" ]; then
+		install -Dm 0644 ${B}/out/${CHROMIUM_BUILD_TYPE}/product_logo_48.png ${D}${bindir}/${BPN}/product_logo_48.png
+	fi
+
+	if [ -f "${B}/out/${CHROMIUM_BUILD_TYPE}/natives_blob.bin" ]; then
+		install -Dm 0644 ${B}/out/${CHROMIUM_BUILD_TYPE}/natives_blob.bin ${D}${bindir}/${BPN}/natives_blob.bin
+	fi
+	if [ -f "${B}/out/${CHROMIUM_BUILD_TYPE}/snapshot_blob.bin" ]; then
+		install -Dm 0644 ${B}/out/${CHROMIUM_BUILD_TYPE}/snapshot_blob.bin ${D}${bindir}/${BPN}/snapshot_blob.bin
+	fi
+
+	# Chromium plugins libs
 	for f in libpdf.so libosmesa.so libffmpegsumo.so; do
 		if [ -f "${B}/out/${CHROMIUM_BUILD_TYPE}/$f" ]; then
 			install -Dm 0644 ${B}/out/${CHROMIUM_BUILD_TYPE}/$f ${D}${libdir}/${BPN}/$f
 		fi
 	done
 
-	# Chromium *.pak files and CEF pak files (prefixed with cef_)
-	for f in content_resources.pak keyboard_resources.pak chrome_100_percent.pak product_logo_48.png resources.pak \
-	         cef_100_percent.pak cef_200_percent.pak cef_resources.pak cef.pak \
-		 locales/en-US.pak; do
-		if [ -f "${B}/out/${CHROMIUM_BUILD_TYPE}/$f" ]; then
-			install -Dm 0644 ${B}/out/${CHROMIUM_BUILD_TYPE}/$f ${D}${bindir}/${BPN}/$f
-		fi
+	# Chromium *.pak files and CEF pak files ( prefixed with cef_ )
+	for f in $(cd ${B}/out/${CHROMIUM_BUILD_TYPE}/ && find . -type f -name \*.pak); do
+			install -Dm 0644 "${B}/out/${CHROMIUM_BUILD_TYPE}/${f}" "${D}${bindir}/${BPN}/${f}"
+	done
+
+	# Chromium resource files (for the inspector).
+	for f in $(cd ${B}/out/${CHROMIUM_BUILD_TYPE}/ && test -d resources && find resources -type f); do
+			install -Dm 0644 "${B}/out/${CHROMIUM_BUILD_TYPE}/${f}" "${D}${bindir}/${BPN}/${f}"
 	done
 
 }
-- 
2.1.4



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

* Re: [meta-browser][PATCH] chromium: install all pak files plus resources and blob.bin files.
  2016-07-15 17:12 [meta-browser][PATCH] chromium: install all pak files plus resources and blob.bin files Carlos Alberto Lopez Perez
@ 2016-07-16  0:04 ` Khem Raj
  0 siblings, 0 replies; 2+ messages in thread
From: Khem Raj @ 2016-07-16  0:04 UTC (permalink / raw)
  To: openembeded-devel

On Fri, Jul 15, 2016 at 10:12 AM, Carlos Alberto Lopez Perez
<clopez@igalia.com> wrote:
>  * This files contain localized strings and other resources that are
>    needed for support of internationalization and localization.
>
>  * Files under the resources directory are needed for the web inspector.
>
> Signed-off-by: Carlos Alberto Lopez Perez <clopez@igalia.com>

this is ok

> ---
>  recipes-browser/chromium/chromium.inc | 28 ++++++++++++++++++++--------
>  1 file changed, 20 insertions(+), 8 deletions(-)
>
> diff --git a/recipes-browser/chromium/chromium.inc b/recipes-browser/chromium/chromium.inc
> index e5deac1..0e7250e 100644
> --- a/recipes-browser/chromium/chromium.inc
> +++ b/recipes-browser/chromium/chromium.inc
> @@ -52,20 +52,32 @@ do_install() {
>         if [ -f "${WORKDIR}/google-chrome.desktop" ]; then
>                 install -Dm 0644 ${WORKDIR}/google-chrome.desktop ${D}${datadir}/applications/google-chrome.desktop
>         fi
> -       #Chromium plugins libs
> +       if [ -f "${B}/out/${CHROMIUM_BUILD_TYPE}/product_logo_48.png" ]; then
> +               install -Dm 0644 ${B}/out/${CHROMIUM_BUILD_TYPE}/product_logo_48.png ${D}${bindir}/${BPN}/product_logo_48.png
> +       fi
> +
> +       if [ -f "${B}/out/${CHROMIUM_BUILD_TYPE}/natives_blob.bin" ]; then
> +               install -Dm 0644 ${B}/out/${CHROMIUM_BUILD_TYPE}/natives_blob.bin ${D}${bindir}/${BPN}/natives_blob.bin
> +       fi
> +       if [ -f "${B}/out/${CHROMIUM_BUILD_TYPE}/snapshot_blob.bin" ]; then
> +               install -Dm 0644 ${B}/out/${CHROMIUM_BUILD_TYPE}/snapshot_blob.bin ${D}${bindir}/${BPN}/snapshot_blob.bin
> +       fi
> +
> +       # Chromium plugins libs
>         for f in libpdf.so libosmesa.so libffmpegsumo.so; do
>                 if [ -f "${B}/out/${CHROMIUM_BUILD_TYPE}/$f" ]; then
>                         install -Dm 0644 ${B}/out/${CHROMIUM_BUILD_TYPE}/$f ${D}${libdir}/${BPN}/$f
>                 fi
>         done
>
> -       # Chromium *.pak files and CEF pak files (prefixed with cef_)
> -       for f in content_resources.pak keyboard_resources.pak chrome_100_percent.pak product_logo_48.png resources.pak \
> -                cef_100_percent.pak cef_200_percent.pak cef_resources.pak cef.pak \
> -                locales/en-US.pak; do
> -               if [ -f "${B}/out/${CHROMIUM_BUILD_TYPE}/$f" ]; then
> -                       install -Dm 0644 ${B}/out/${CHROMIUM_BUILD_TYPE}/$f ${D}${bindir}/${BPN}/$f
> -               fi
> +       # Chromium *.pak files and CEF pak files ( prefixed with cef_ )
> +       for f in $(cd ${B}/out/${CHROMIUM_BUILD_TYPE}/ && find . -type f -name \*.pak); do
> +                       install -Dm 0644 "${B}/out/${CHROMIUM_BUILD_TYPE}/${f}" "${D}${bindir}/${BPN}/${f}"
> +       done
> +
> +       # Chromium resource files (for the inspector).
> +       for f in $(cd ${B}/out/${CHROMIUM_BUILD_TYPE}/ && test -d resources && find resources -type f); do
> +                       install -Dm 0644 "${B}/out/${CHROMIUM_BUILD_TYPE}/${f}" "${D}${bindir}/${BPN}/${f}"
>         done
>
>  }
> --
> 2.1.4
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


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

end of thread, other threads:[~2016-07-16  0:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-15 17:12 [meta-browser][PATCH] chromium: install all pak files plus resources and blob.bin files Carlos Alberto Lopez Perez
2016-07-16  0:04 ` Khem Raj

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.