Skip to content

Commit d8ca720

Browse files
committed
chromium: build ChromeDriver
This patch enables the build of ChromeDriver. This comes in very handy for test automation. More information can be found here: https://sites.google.com/a/chromium.org/chromedriver/ Signed-off-by: Daniel Díaz <[email protected]>
1 parent a0a78fb commit d8ca720

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

recipes-browser/chromium/chromium-browser.inc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ BPN = "chromium"
8484
# Enable this option if you want to add support for additional proprietary
8585
# codecs, most notably MPEG standards (h.264, h.265, MP4, MP3, AAC, MPEG-2 ..)
8686

87-
PACKAGECONFIG ??= "use-egl"
87+
PACKAGECONFIG ??= "use-egl build-chromedriver"
8888

8989
# this makes sure the dependencies for the EGL mode are present; otherwise, the configure scripts
9090
# automatically and silently fall back to GLX
@@ -100,6 +100,7 @@ PACKAGECONFIG[ignore-lost-context] = ""
100100
PACKAGECONFIG[impl-side-painting] = ""
101101
PACKAGECONFIG[kiosk-mode] = ""
102102
PACKAGECONFIG[proprietary-codecs] = ""
103+
PACKAGECONFIG[build-chromedriver] = ""
103104

104105

105106
# ozone-wayland will be cloned into a directory with this name
@@ -204,7 +205,8 @@ do_configure_append() {
204205

205206
do_compile() {
206207
# build with ninja
207-
ninja -C ${S}/out/${CHROMIUM_BUILD_TYPE} ${PARALLEL_MAKE} chrome chrome_sandbox
208+
ninja -C ${S}/out/${CHROMIUM_BUILD_TYPE} ${PARALLEL_MAKE} chrome chrome_sandbox \
209+
${@bb.utils.contains('PACKAGECONFIG', 'build-chromedriver', 'chromedriver', '', d)}
208210
}
209211

210212
do_install_append() {

recipes-browser/chromium/chromium.inc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ do_install() {
5151
if [ -f "${B}/out/${CHROMIUM_BUILD_TYPE}/chrome" ]; then
5252
install -Dm 0755 ${B}/out/${CHROMIUM_BUILD_TYPE}/chrome ${D}${bindir}/${BPN}/chrome
5353
fi
54+
if [ -f "${B}/out/${CHROMIUM_BUILD_TYPE}/chromedriver" ]; then
55+
install -Dm 0755 ${B}/out/${CHROMIUM_BUILD_TYPE}/chromedriver ${D}${bindir}/${BPN}/chromedriver
56+
fi
5457
if [ -f "${B}/out/${CHROMIUM_BUILD_TYPE}/icudtl.dat" ]; then
5558
install -Dm 0644 ${B}/out/${CHROMIUM_BUILD_TYPE}/icudtl.dat ${D}${bindir}/${BPN}/icudtl.dat
5659
fi
@@ -87,10 +90,11 @@ do_install() {
8790

8891
}
8992

90-
PACKAGES =+ "${PN}-codecs-ffmpeg ${PN}-plugin-pdf"
93+
PACKAGES =+ "${PN}-codecs-ffmpeg ${PN}-plugin-pdf ${PN}-chromedriver"
9194

9295
FILES_${PN}-codecs-ffmpeg = "${libdir}/${BPN}/libffmpegsumo.so"
9396
FILES_${PN}-plugin-pdf = "${libdir}/${BPN}/libpdf.so"
97+
FILES_${PN}-chromedriver = "${bindir}/${BPN}/chromedriver"
9498

9599
FILES_${PN} = "${bindir}/${BPN} ${datadir}/applications ${sbindir}/ ${libdir}/${BPN}/"
96100
FILES_${PN} += "${bindir} ${libdir}"

0 commit comments

Comments
 (0)