summaryrefslogtreecommitdiffstats
path: root/meta-agl-flutter/recipes-graphics/flutter-apps/flutter-gallery_aglflutter.inc
blob: 4be748d1aaf41cf1f6805b850cf679d562016906 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FILESEXTRAPATHS:prepend := "${THISDIR}/flutter-gallery:"

# Override SRC_URI to handle branch rename to "main"
SRC_URI = "git://github.com/flutter/gallery.git;lfs=0;branch=main;protocol=https;destsuffix=git"

# Add our desired systemd unit
SRC_URI += "file://flutter-gallery.service"

inherit systemd

do_install:append() {
    install -D -m 0644 ${WORKDIR}/${BPN}.service ${D}${systemd_system_unitdir}/${BPN}.service
}

#FILES:${PN} += "${systemd_system_unitdir}"

RDEPENDS:${PN} += "agl-flutter-env"

SYSTEMD_SERVICE:${PN} = "flutter-gallery.service"
# Explicitly disable auto-start to avoid interferring with Toyota workspace
# tooling usecase.
SYSTEMD_AUTO_ENABLE:${PN} = "disable"