chromium: install all pak files plus resources and blob.bin files.
PATCH 1/1 chromium: install all pak files plus resources and blob.bin files.
* 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 <[email protected]>
--- recipes-browser/chromium/chromium.inc | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-)
recipes-browser/chromium/chromium.inc +20 -8
@@ -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 }
Signature · 1 line
2.1.4
Quoted 6 lines · Carlos Alberto Lopez Perez
* 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 <[email protected]>
this is ok
Quoted 57 lines
--- recipes-browser/chromium/chromium.inc | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-)recipes-browser/chromium/chromium.inc +20
-9@@ -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
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel