[oe] [meta-browser][PATCH] chromium: install all pak files plus resources and blob.bin files.

Khem Raj raj.khem at gmail.com
Sat Jul 16 00:04:23 UTC 2016


On Fri, Jul 15, 2016 at 10:12 AM, Carlos Alberto Lopez Perez
<clopez at 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 at 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 at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel



More information about the Openembedded-devel mailing list