1 FILESEXTRAPATHS:prepend := "${THISDIR}/flutter-gallery:"
4 file://flutter-gallery.service \
5 file://gallery_on_bg-debug.json \
6 file://gallery_on_bg-profile.json \
7 file://gallery_on_bg-release.json \
10 APP_CONFIG = "gallery_on_bg-release.json"
11 APP_CONFIG:class-runtimedebug = "gallery_on_bg-debug.json"
12 APP_CONFIG:class-runtimeprofile = "gallery_on_bg-profile.json"
14 # To avoid conflicts with the systemd template scheme added via bbappend in
15 # meta-agl-demo, package the standalone systemd unit separately. This is not
16 # needed when meta-agl-flutter is used without meta-agl-demo, but that is not
17 # going to be the default usecase for most users, so this still allows them to
18 # build working agl-image-flutter images in the same build tree.
20 # This can be dropped if/when flutter-gallery is no longer packaged as a demo
23 #SYSTEMD_SERVICE:${PN}-init = "flutter-gallery.service"
26 install -D -m 0644 ${WORKDIR}/flutter-gallery.service ${D}${systemd_user_unitdir}/flutter-gallery.service
27 install -d ${D}${systemd_user_unitdir}/agl-session.target.wants
28 ln -s ../flutter-gallery.service ${D}${systemd_user_unitdir}/agl-session.target.wants/flutter-gallery.service
30 install -D -m 0644 ${WORKDIR}/${APP_CONFIG} ${D}${datadir}/flutter/default.json
33 PACKAGE_BEFORE_PN += "${PN}-init"
35 FILES:${PN} += "${datadir}"
37 FILES:${PN}-init = "${systemd_user_unitdir}"
39 RDEPENDS:${PN}-init = "${PN}"