agl-compositor_git: Add minor fix for DRM lease
[AGL/meta-agl-devel.git] / flutter-apps / flutter-gallery_aglflutter.inc
1 FILESEXTRAPATHS:prepend := "${THISDIR}/flutter-gallery:"
2
3 SRC_URI += " \
4     file://flutter-gallery.service \
5 "
6
7 # To avoid conflicts with the systemd template scheme added via bbappend in
8 # meta-agl-demo, package the standalone systemd unit separately.  This is not
9 # needed when meta-agl-flutter is used without meta-agl-demo, but that is not
10 # going to be the default usecase for most users, so this still allows them to
11 # build working agl-image-flutter images in the same build tree.
12 #
13 # This can be dropped if/when flutter-gallery is no longer packaged as a demo
14 # in meta-agl-demo.
15
16 #SYSTEMD_SERVICE:${PN}-init = "flutter-gallery.service"
17
18 do_install:append() {
19     install -D -m 0644 ${WORKDIR}/flutter-gallery.service ${D}${systemd_user_unitdir}/flutter-gallery.service
20     install -d ${D}${systemd_user_unitdir}/agl-session.target.wants
21     ln -s ../flutter-gallery.service ${D}${systemd_user_unitdir}/agl-session.target.wants/flutter-gallery.service
22 }
23
24 PACKAGE_BEFORE_PN += "${PN}-init"
25
26 FILES:${PN}-init = "${systemd_user_unitdir}"
27
28 RDEPENDS:${PN}-init = "${PN}"