971756ad71923f3a6107412f1101ec0bab1d7557
[AGL/meta-agl.git] /
1 FILESEXTRAPATHS:prepend := "${THISDIR}/flutter-samples-material-3-demo:"
2
3 SRC_URI += "file://flutter-samples-material-3-demo.service"
4
5 APP_CONFIG = "flutter-samples-material-3-demo.toml"
6
7 inherit systemd
8
9 do_install:append() {
10     install -D -m 0644 ${WORKDIR}/${BPN}.service ${D}${systemd_system_unitdir}/${BPN}.service
11
12     # determine build type based on what flutter-engine installed.
13     for runtime_mode in ${FLUTTER_RUNTIME_MODES}
14     do
15         install -D -m 0644 ${WORKDIR}/${APP_CONFIG} \
16             ${D}${datadir}/flutter/${PUBSPEC_APPNAME}/${FLUTTER_SDK_VERSION}/${runtime_mode}/config.toml
17     done
18 }
19
20 RDEPENDS:${PN} += "agl-flutter-env"
21
22 SYSTEMD_SERVICE:${PN} = "flutter-samples-material-3-demo.service"