From: Carlos Alberto Lopez Perez <clopez@igalia.com>
To: openembedded-devel@lists.openembedded.org
Subject: [meta-browser][PATCH] chromium: install all pak files plus resources and blob.bin files.
Date: Fri, 15 Jul 2016 19:12:54 +0200 [thread overview]
Message-ID: <1468602774-12745-1-git-send-email-clopez@igalia.com> (raw)
* 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
next reply other threads:[~2016-07-15 17:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-15 17:12 Carlos Alberto Lopez Perez [this message]
2016-07-16 0:04 ` [meta-browser][PATCH] chromium: install all pak files plus resources and blob.bin files Khem Raj
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1468602774-12745-1-git-send-email-clopez@igalia.com \
--to=clopez@igalia.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.