hc
2023-02-13 e440ec23c5a540cdd3f7464e8779219be6fd3d95
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
require chromium-gn.inc
 
REQUIRED_DISTRO_FEATURES = "wayland"
 
DEPENDS += "\
        at-spi2-atk \
        virtual/egl \
        wayland \
        wayland-native \
"
 
SRC_URI += "\
        file://chromium-wayland/0001-ozone-add-va-api-support-to-wayland.patch \
        file://chromium-wayland/0001-ozone-wayland-fix-re-initialization-of-WBMG.patch \
        file://chromium-wayland/0001-ozone-wayland-fixed-terminate-caused-by-binding-to-wrong-version.patch \
"
 
GN_ARGS += "\
        ${PACKAGECONFIG_CONFARGS} \
        use_ozone=true \
        ozone_auto_platforms=false \
        ozone_platform_headless=true \
        ozone_platform_wayland=true \
        ozone_platform_x11=false \
        system_wayland_scanner_path="${STAGING_BINDIR_NATIVE}/wayland-scanner" \
        use_system_wayland_scanner=true \
        use_xkbcommon=true \
        use_system_libwayland=true \
        use_system_minigbm=true \
        use_system_libdrm=true \
        use_gtk=false \
"
 
# The chromium binary must always be started with those arguments.
CHROMIUM_EXTRA_ARGS:append = " --ozone-platform=wayland"