aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2022-12-07 17:53:51 +0900
committerScott Murray <scott.murray@konsulko.com>2022-12-10 07:50:07 +0000
commit5e3a4f5fa0e9adeae54a2a47d1daa80c64c7363a (patch)
tree6402ddac071d685a4ad660225d0ccbb729e76809
parentfc0a352f6815b9629bb3fb97b0487396bd13ced0 (diff)
meta-app-framework: Add Flutter app icon installation
Add logic to agl-app.bbclass to install an icon for Flutter apps if there is one present as ${AGL_APP_ID}.svg in a "package" directory in their source repository. Bug-AGL: SPEC-4634 Change-Id: If48cb5b085f74a713e293d6554c45d265f69f686 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28155 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account
-rw-r--r--meta-app-framework/classes/agl-app.bbclass8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta-app-framework/classes/agl-app.bbclass b/meta-app-framework/classes/agl-app.bbclass
index 6565fdfae..491a36e02 100644
--- a/meta-app-framework/classes/agl-app.bbclass
+++ b/meta-app-framework/classes/agl-app.bbclass
@@ -68,6 +68,14 @@ do_install:append () {
Environment=AGL_APP_WAM_DIR=${AGL_APP_WAM_DIR}
EOF
fi
+
+ if [ "${AGL_APP_TEMPLATE}" = "agl-app-flutter" ]; then
+ # Install icon if present
+ if [ -f ${S}/package/${AGL_APP_ID}.svg ]; then
+ install -d ${D}${datadir}/icons/hicolor/scalable
+ install -m 0644 ${S}/package/${AGL_APP_ID}.svg ${D}${datadir}/icons/hicolor/scalable/
+ fi
+ fi
}
FILES:${PN}:append = " ${systemd_system_unitdir} ${datadir}/icons"