xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-gnome/recipes-gnome/gnome-shell/gnome-shell_42.0.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1SUMMARY = "GNOME Shell is the graphical shell of the GNOME desktop environment"
2LICENSE = "GPL-2.0-only"
3LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
4
5GNOMEBASEBUILDCLASS = "meson"
6
7DEPENDS = " \
8    libxml2-native \
9    sassc-native \
10    gtk4 \
11    mutter \
12    evolution-data-server \
13    gcr \
14    gjs \
15    gnome-autoar \
16    polkit \
17    libcroco \
18    startup-notification \
19    ibus \
20    gsettings-desktop-schemas \
21"
22
23inherit gnomebase gsettings gettext gobject-introspection gtk-icon-cache features_check bash-completion
24
25REQUIRED_DISTRO_FEATURES = "x11 polkit systemd pam"
26
27GTKIC_VERSION = "4"
28GTKDOC_MESON_OPTION = "gtk_doc"
29GIR_MESON_OPTION = ""
30
31# gobject-introspection is mandatory and cannot be configured
32REQUIRED_DISTRO_FEATURES += "gobject-introspection-data"
33
34SRC_URI[archive.sha256sum] = "33d404fb3c93b9de42984f0110a2969d6a4a7247c27fe7f5e24c67ecfec75094"
35SRC_URI += "file://0001-Introduce-options-gjs_path-to-optionally-set-path-to.patch"
36
37PACKAGECONFIG ??= "bluetooth nm ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
38PACKAGECONFIG[bluetooth] = ",,gnome-bluetooth"
39PACKAGECONFIG[nm] = "-Dnetworkmanager=true, -Dnetworkmanager=false, networkmanager"
40PACKAGECONFIG[systemd] = "-Dsystemd=true, -Dsystemd=false, systemd"
41
42EXTRA_OEMESON = " \
43    -Dgjs_path=${bindir}/gjs \
44    -Dextensions-app:gjs_path=${bindir}/gjs \
45    -Dtests=false \
46    -Dman=false \
47"
48
49do_install:append() {
50    # fix shebangs
51    for tool in `find ${D}${bindir} -name '*-tool'`; do
52        sed -i 's:#!${PYTHON}:#!${bindir}/${PYTHON_PN}:' $tool
53    done
54}
55
56GSETTINGS_PACKAGE = "${PN}-gsettings"
57
58FILES:${PN} += " \
59    ${datadir}/metainfo \
60    ${datadir}/dbus-1 \
61    ${datadir}/gnome-control-center \
62    ${datadir}/xdg-desktop-portal \
63    ${systemd_user_unitdir} \
64"
65
66RDEPENDS:${PN} += "gnome-desktop gsettings-desktop-schemas gdm-base librsvg-gtk ${PN}-gsettings"
67
68PACKAGES =+ "${PN}-tools ${PN}-gsettings"
69FILES:${PN}-tools = "${bindir}/*-tool"
70RDEPENDS:${PN}-tools = "python3-core"
71
72