aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-wam/chromium
diff options
context:
space:
mode:
authorRoger Zanoni <rzanoni@igalia.com>2021-06-15 07:47:11 +0000
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2021-06-23 19:38:48 +0000
commitcae1c2f734a437262dfeba0f2fb9086eae52dc83 (patch)
tree78583c0a8185e0d0df103397bbfaa00b6376abac /recipes-wam/chromium
parent39c3ae23a452272dbec96fb95b5928856eb05c42 (diff)
chromium84: Fix externalsrc build/install
Bug-AGL: SPEC-3856 Signed-off-by: Roger Zanoni <rzanoni@igalia.com> Change-Id: I1be5b766072cfae162e4514b33b7b9fd3aab5476
Diffstat (limited to 'recipes-wam/chromium')
-rw-r--r--recipes-wam/chromium/chromium.inc40
1 files changed, 19 insertions, 21 deletions
diff --git a/recipes-wam/chromium/chromium.inc b/recipes-wam/chromium/chromium.inc
index 69c9b438f..b76ed7b67 100644
--- a/recipes-wam/chromium/chromium.inc
+++ b/recipes-wam/chromium/chromium.inc
@@ -27,12 +27,10 @@ SRCREV_FORMAT = "main_v8"
S = "${WORKDIR}/git"
SRC_DIR = "${S}/src"
-OUT_DIR = "${WORKDIR}/build"
BUILD_TYPE = "Release"
-B = "${OUT_DIR}/${BUILD_TYPE}"
-
-OUT_IMAGE_DIR = "${B}/image"
+B = "${WORKDIR}/build"
+OUT_DIR = "${B}/${BUILD_TYPE}"
WEBRUNTIME_BUILD_TARGET = "webos:weboswebruntime"
BROWSER_APP_BUILD_TARGET = "chrome"
@@ -207,12 +205,12 @@ INSANE_SKIP_${PN} = "textrel ldflags"
do_compile[progress] = "outof:^\[(\d+)/(\d+)\]\s+"
do_compile() {
- if [ ! -f ${OUT_DIR}/${BUILD_TYPE}/build.ninja ]; then
+ if [ ! -f ${OUT_DIR}/build.ninja ]; then
do_configure
fi
export PATH="${S}/depot_tools:$PATH"
- ${S}/depot_tools/ninja ${PARALLEL_MAKE} -v -C ${OUT_DIR}/${BUILD_TYPE} ${TARGET}
+ ${S}/depot_tools/ninja ${PARALLEL_MAKE} -v -C ${OUT_DIR} ${TARGET}
}
do_configure() {
@@ -227,7 +225,7 @@ configure_env() {
echo GN_ARGS is ${GN_ARGS}
echo BUILD_TARGETS are ${TARGET}
cd ${SRC_DIR}
- gn gen ${OUT_DIR}/${BUILD_TYPE} --args="${GN_ARGS}"
+ gn gen ${OUT_DIR} --args="${GN_ARGS}"
}
WINDOW_SIZE ?= "1920,1080"
@@ -241,14 +239,14 @@ configure_browser_settings() {
install_chromium_browser() {
# Install browser files
- ${S}/depot_tools/ninja ${PARALLEL_MAKE} -C ${OUT_DIR}/${BUILD_TYPE} webos/install/default_browser
+ ${S}/depot_tools/ninja ${PARALLEL_MAKE} -C ${OUT_DIR} webos/install/default_browser
D_DIR=${D}${BROWSER_APPLICATION_DIR}
L_DIR=${D}${CBE_DATA_PATH}
install -d ${D_DIR}
install -d ${L_DIR}
- cp -R --no-dereference --preserve=mode,links -v ${OUT_IMAGE_DIR}/${BROWSER_APPLICATION_DIR}/* ${D_DIR}
+ cp -R --no-dereference --preserve=mode,links -v ${OUT_DIR}/image/${BROWSER_APPLICATION_DIR}/* ${D_DIR}
# AGL does not have PMLOG
sed -i.bak s/PmLogCtl.*// ${D_DIR}/run_webbrowser
@@ -265,17 +263,17 @@ install_chromium_browser() {
install_webruntime() {
# # Generate install webos webview files
- # ${S}/depot_tools/ninja ${PARALLEL_MAKE} -C ${OUT_DIR}/${BUILD_TYPE} webos/install/weboswebruntime
+ # ${S}/depot_tools/ninja ${PARALLEL_MAKE} -C ${OUT_DIR} webos/install/weboswebruntime
# # Move installation files to D directory
- # mv ${OUT_DIR}/${BUILD_TYPE}/image/* ${D}
+ # mv ${OUT_DIR}/image/* ${D}
# # Rename include and locale directories
# mv ${D}${includedir}/webruntime ${D}${includedir}/${BPN}
# mv ${D}${CBE_DATA_PATH}/neva_locales ${D}${CBE_DATA_LOCALES_PATH}
# # move this to separate mksnapshot-cross recipe once we figure out how to build just cross mksnapshot from chromium repository
# install -d ${D}${bindir_cross}
- # gzip -c ${OUT_DIR}/${BUILD_TYPE}/${MKSNAPSHOT_PATH}mksnapshot > ${D}${bindir_cross}/${HOST_SYS}-mksnapshot.gz
+ # gzip -c ${OUT_DIR}/${MKSNAPSHOT_PATH}mksnapshot > ${D}${bindir_cross}/${HOST_SYS}-mksnapshot.gz
install -d ${D}${libdir}
install -d ${D}${libdir}/swiftshader
@@ -284,19 +282,19 @@ install_webruntime() {
install -d ${D}${CBE_DATA_LOCALES_PATH}
# Install webos webview files
- ${S}/depot_tools/ninja ${PARALLEL_MAKE} -C ${OUT_DIR}/${BUILD_TYPE} webos/install/weboswebruntime
+ ${S}/depot_tools/ninja ${PARALLEL_MAKE} -C ${OUT_DIR} webos/install/weboswebruntime
- install -v -m 0644 ${OUT_DIR}/${BUILD_TYPE}/swiftshader/*.so ${D}${libdir}/swiftshader
+ install -v -m 0644 ${OUT_DIR}/swiftshader/*.so ${D}${libdir}/swiftshader
- cp -R --no-dereference --preserve=mode,links -v ${OUT_IMAGE_DIR}/${includedir}/${BPN}/* ${D}${includedir}/${BPN}/
- install -v -m 0644 ${OUT_IMAGE_DIR}/${libdir}/*.so ${D}${libdir}
+ cp -R --no-dereference --preserve=mode,links -v ${OUT_DIR}/image/${includedir}/${BPN}/* ${D}${includedir}/${BPN}/
+ install -v -m 0644 ${OUT_DIR}/image/${libdir}/*.so ${D}${libdir}
- install -v -m 0644 ${OUT_IMAGE_DIR}/${CBE_DATA_PATH}/icudtl.dat ${D}${CBE_DATA_PATH}
- install -v -m 0644 ${OUT_IMAGE_DIR}/${CBE_DATA_PATH}/snapshot_blob.bin ${D}${CBE_DATA_PATH}
+ install -v -m 0644 ${OUT_DIR}/image/${CBE_DATA_PATH}/icudtl.dat ${D}${CBE_DATA_PATH}
+ install -v -m 0644 ${OUT_DIR}/image/${CBE_DATA_PATH}/snapshot_blob.bin ${D}${CBE_DATA_PATH}
# app_runtime_content.pak, webos_content.pak, extensions_shell_and_test.pak
- install -v -m 0644 ${OUT_IMAGE_DIR}/${CBE_DATA_PATH}/*.pak ${D}${CBE_DATA_PATH}
+ install -v -m 0644 ${OUT_DIR}/image/${CBE_DATA_PATH}/*.pak ${D}${CBE_DATA_PATH}
- cp -R --no-dereference --preserve=mode,links -v ${OUT_IMAGE_DIR}/${CBE_DATA_LOCALES_PATH}/*.pak ${D}${CBE_DATA_LOCALES_PATH}
+ cp -R --no-dereference --preserve=mode,links -v ${OUT_DIR}/image/${CBE_DATA_LOCALES_PATH}/*.pak ${D}${CBE_DATA_LOCALES_PATH}
chown root:root -R ${D}${libdir}
chown root:root -R ${D}${includedir}
@@ -304,7 +302,7 @@ install_webruntime() {
# move this to separate mksnapshot-cross recipe once we figure out how to build just cross mksnapshot from chromium repository
install -d ${D}${base_bindir}
- gzip -c ${OUT_DIR}/${BUILD_TYPE}/${MKSNAPSHOT_PATH}mksnapshot > ${D}${base_bindir}/${HOST_SYS}-mksnapshot.gz
+ gzip -c ${OUT_DIR}/${MKSNAPSHOT_PATH}mksnapshot > ${D}${base_bindir}/${HOST_SYS}-mksnapshot.gz
}