aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2022-12-07 17:53:51 +0900
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2022-12-08 05:54:41 +0000
commitd605ba0db2af7ba7f9c51674b3f79b027c40299f (patch)
tree60bba4d2edf30bad0c6024c7de8766b392bf5fec
parent7e9939ba84d9a0c571e768f3f3e4f41178d0252b (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/+/28216 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
-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"