summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2022-07-27 19:41:59 -0400
committerScott Murray <scott.murray@konsulko.com>2022-07-27 19:46:37 -0400
commit7e0e397f3c6c91f3cdaae237f9e0d37046cabbd8 (patch)
tree76259d74a9fc2cc4ab625fd7534b0162238a2edc
parent731adc93b2fed74bc4410dff510fb019d10f253f (diff)
Add agl-ivi-demo-platform-flutter image
Add an image for testing Flutter applications. At present it uses the Qt demo homescreen and launcher until they can be replaced with a Flutter homescreen with equivalent functionality. To allow testing agl-compositor behavior, the packagegroup for the image includes the demo Qt HVAC and dashboard apps in addition to the Flutter "gallery" demo application packaged for launching with applaunchd. The "agl-flutter" build feature has been added as a dependency of "agl-demo" in order for the above to be buildable by default. Bug-AGL: SPEC-4485 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: Idf2daa189a15e9cc4bfe2030ac6aa3f5b0331c0c
-rw-r--r--recipes-demo/flutter-gallery/flutter-gallery-release_agldemo.inc5
-rw-r--r--recipes-demo/flutter-gallery/flutter-gallery-release_git.bbappend1
-rw-r--r--recipes-platform/images/agl-ivi-demo-platform-flutter.bb9
-rw-r--r--recipes-platform/packagegroups/packagegroup-agl-demo-platform-flutter.bb34
-rw-r--r--templates/feature/agl-demo/included.dep2
5 files changed, 50 insertions, 1 deletions
diff --git a/recipes-demo/flutter-gallery/flutter-gallery-release_agldemo.inc b/recipes-demo/flutter-gallery/flutter-gallery-release_agldemo.inc
new file mode 100644
index 000000000..4a7d3652a
--- /dev/null
+++ b/recipes-demo/flutter-gallery/flutter-gallery-release_agldemo.inc
@@ -0,0 +1,5 @@
+inherit agl-app
+
+AGL_APP_TEMPLATE = "agl-app-flutter"
+AGL_APP_ID = "gallery"
+AGL_APP_NAME = "Gallery"
diff --git a/recipes-demo/flutter-gallery/flutter-gallery-release_git.bbappend b/recipes-demo/flutter-gallery/flutter-gallery-release_git.bbappend
new file mode 100644
index 000000000..6a9edecd0
--- /dev/null
+++ b/recipes-demo/flutter-gallery/flutter-gallery-release_git.bbappend
@@ -0,0 +1 @@
+require ${@bb.utils.contains('AGL_FEATURES', 'agldemo', 'flutter-gallery-release_agldemo.inc', '', d)}
diff --git a/recipes-platform/images/agl-ivi-demo-platform-flutter.bb b/recipes-platform/images/agl-ivi-demo-platform-flutter.bb
new file mode 100644
index 000000000..7884a2d0b
--- /dev/null
+++ b/recipes-platform/images/agl-ivi-demo-platform-flutter.bb
@@ -0,0 +1,9 @@
+require agl-image-ivi.bb
+
+DESCRIPTION = "AGL Flutter based Demo Platform image"
+
+# add packages for demo platform (include demo apps) here
+IMAGE_INSTALL:append = " \
+ packagegroup-agl-demo-platform-flutter \
+"
+
diff --git a/recipes-platform/packagegroups/packagegroup-agl-demo-platform-flutter.bb b/recipes-platform/packagegroups/packagegroup-agl-demo-platform-flutter.bb
new file mode 100644
index 000000000..4eaeb062c
--- /dev/null
+++ b/recipes-platform/packagegroups/packagegroup-agl-demo-platform-flutter.bb
@@ -0,0 +1,34 @@
+SUMMARY = "The software for Flutter Demo platform of AGL IVI profile"
+DESCRIPTION = "A set of packages for AGL Flutter Demo Platform"
+
+LICENSE = "MIT"
+
+inherit packagegroup
+
+PROVIDES = "${PACKAGES}"
+PACKAGES = "\
+ packagegroup-agl-demo-platform-flutter \
+ "
+
+RDEPENDS:${PN} += "\
+ packagegroup-agl-image-ivi \
+ packagegroup-agl-profile-graphical-qt5 \
+ packagegroup-hmi-framework \
+ packagegroup-agl-demo \
+ "
+
+AGL_APPS = " \
+ hvac \
+ dashboard \
+ flutter-gallery-release \
+ "
+
+RDEPENDS:${PN}:append = " \
+ flutter-embedder-release \
+ launcher \
+ qtquickcontrols2-agl \
+ qtquickcontrols2-agl-style \
+ ${@bb.utils.contains('DISTRO_FEATURES', 'agl-devel', 'unzip mpc' , '', d)} \
+ ${AGL_APPS} \
+ psplash-portrait-config \
+ "
diff --git a/templates/feature/agl-demo/included.dep b/templates/feature/agl-demo/included.dep
index a96ab796f..e94759e39 100644
--- a/templates/feature/agl-demo/included.dep
+++ b/templates/feature/agl-demo/included.dep
@@ -1 +1 @@
-agl-pipewire agl-app-framework agl-selinux
+agl-pipewire agl-app-framework agl-selinux agl-flutter