aboutsummaryrefslogtreecommitdiffstats
path: root/meta-agl-flutter/recipes-graphics/toyota
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2022-07-20 19:40:25 +0300
committerMarius Vlad <marius.vlad@collabora.com>2022-07-20 19:43:07 +0300
commitf76a4e381d478a4bcad69909587d25f99051d24f (patch)
treee2072b2e77aea094ed23f4cad0cd0dcdf1bd9228 /meta-agl-flutter/recipes-graphics/toyota
parenta401ff69d9fce660b7dce85e1d9c07a37641240f (diff)
ivi-homescreen_aglflutter.inc: Add a config.json for the shell client
Since the last update to ivi-homescreen it requires a JSON configuration file. This one brings it to be able to bind to the agl-shell interface and use the app gallery as the background surface. Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I7ec2c64308f028d7d25b3604bbe0cde32199aab9
Diffstat (limited to 'meta-agl-flutter/recipes-graphics/toyota')
-rw-r--r--meta-agl-flutter/recipes-graphics/toyota/files/config.json9
-rw-r--r--meta-agl-flutter/recipes-graphics/toyota/ivi-homescreen_aglflutter.inc8
2 files changed, 15 insertions, 2 deletions
diff --git a/meta-agl-flutter/recipes-graphics/toyota/files/config.json b/meta-agl-flutter/recipes-graphics/toyota/files/config.json
new file mode 100644
index 00000000..90dec21b
--- /dev/null
+++ b/meta-agl-flutter/recipes-graphics/toyota/files/config.json
@@ -0,0 +1,9 @@
+{
+ "view" : [ {
+ "window_type" : "BG",
+ "bundle_path" : "/usr/share/flutter/gallery",
+ "width" : 1920,
+ "height": 1080
+ }
+ ]
+}
diff --git a/meta-agl-flutter/recipes-graphics/toyota/ivi-homescreen_aglflutter.inc b/meta-agl-flutter/recipes-graphics/toyota/ivi-homescreen_aglflutter.inc
index a2ad49fa..48ba9d1d 100644
--- a/meta-agl-flutter/recipes-graphics/toyota/ivi-homescreen_aglflutter.inc
+++ b/meta-agl-flutter/recipes-graphics/toyota/ivi-homescreen_aglflutter.inc
@@ -5,8 +5,11 @@
# licenses for the stated ffmpeg dependency.
PACKAGECONFIG:remove = "gstreamer"
+FILESEXTRAPATHS:append := "${THISDIR}/files:"
+SRC_URI += "file://config.json"
+
# AGL specifics
-IVI_HOMESCREEN_APP_OVERRIDE = "--b=/usr/share/flutter/gallery"
+IVI_HOMESCREEN_APP_OVERRIDE = "--b=/usr/share/flutter/gallery --j=/usr/share/flutter/config.json"
SERVICE_UNIT = "Requires=agl-compositor.service\nAfter=agl-compositor.service"
SERVICE_INSTALL = "WantedBy=agl-session.target"
@@ -18,8 +21,9 @@ SERVICE_RESTART = "Restart=on-failure"
# we need to install as user session, not root.
do_install:append() {
install -d ${D}${systemd_user_unitdir}/agl-session.target.wants
+ install -D -m 0644 ${WORKDIR}/config.json ${D}${datadir}/flutter/config.json
install -m0644 ${WORKDIR}/homescreen.service ${D}${systemd_user_unitdir}/homescreen.service
ln -s ../homescreen.service ${D}${systemd_user_unitdir}/agl-session.target.wants/homescreen.service
}
-FILES:${PN} += " ${systemd_user_unitdir}"
+FILES:${PN} += " ${systemd_user_unitdir} ${datadir}/flutter/config.json"