1 FILESEXTRAPATHS:prepend := "${THISDIR}/flutter-gallery:"
4 file://flutter-gallery.service \
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.
13 # This can be dropped if/when flutter-gallery is no longer packaged as a demo
16 #SYSTEMD_SERVICE:${PN}-init = "flutter-gallery.service"
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
24 PACKAGE_BEFORE_PN += "${PN}-init"
26 FILES:${PN}-init = "${systemd_user_unitdir}"
28 RDEPENDS:${PN}-init = "${PN}"