Skip to content

Commit 9c258f2

Browse files
zboszorRaphael Kubo da Costa
authored andcommitted
chromium: Add PACKAGECONFIG setting to switch to using GTK 4
Kirkstone provides gtk4 4.4.0. Chromium 97 has a commandline option to use GTK4 instead of the default GTK3. Expose this choice in PACKAGECONFIG. Chromium is still built with GTK3. Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
1 parent 882ec3b commit 9c258f2

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

meta-chromium/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ PACKAGECONFIG knobs
9090
* cups: (off by default)
9191
Enables CUPS support in Chromium, and adds a dependency on the "cups" recipe.
9292

93+
* gtk4: (off by default)
94+
Enables GTK4 runtime support in Chromium by adding --gtk-version=4
95+
to the command line. Chromium is still built against GTK3.
96+
9397
* kiosk-mode: (off by default)
9498
Enable this option if you want your browser to start up full-screen, without
9599
any menu bars, without any clutter, and without any initial start-up

meta-chromium/recipes-browser/chromium/chromium-gn.inc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ require chromium.inc
22
require chromium-unbundle.inc
33
require gn-utils.inc
44

5+
GTKIC_VERSION = "${@bb.utils.contains('PACKAGECONFIG', 'gtk4', '4', '3',d)}"
6+
57
inherit features_check gtk-icon-cache qemu
68

79
# The actual directory name in out/ is irrelevant for GN.
@@ -117,6 +119,7 @@ PACKAGECONFIG[use-egl] = ",,virtual/egl virtual/libgles2"
117119
# be necessary but are OK to add).
118120
PACKAGECONFIG[component-build] = ""
119121
PACKAGECONFIG[cups] = "use_cups=true,use_cups=false,cups"
122+
PACKAGECONFIG[gtk4] = ""
120123
PACKAGECONFIG[kiosk-mode] = ""
121124
PACKAGECONFIG[proprietary-codecs] = ' \
122125
ffmpeg_branding="Chrome" proprietary_codecs=true, \
@@ -332,6 +335,7 @@ GN_ARGS:append:libc-musl = ' use_allocator_shim=false use_allocator="none"'
332335
CHROMIUM_EXTRA_ARGS ?= " \
333336
${@bb.utils.contains('PACKAGECONFIG', 'use-egl', '--use-gl=egl', '', d)} \
334337
${@bb.utils.contains('PACKAGECONFIG', 'kiosk-mode', '--kiosk --no-first-run --incognito', '', d)} \
338+
${@bb.utils.contains('PACKAGECONFIG', 'gtk4', '--gtk-version=4', '', d)} \
335339
"
336340

337341
# V8's JIT infrastructure requires binaries such as mksnapshot and

0 commit comments

Comments
 (0)