aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Winarske <joel.winarske@gmail.com>2021-11-15 09:32:07 -0800
committerJoel Winarske <joel.winarske@gmail.com>2021-12-09 05:44:17 +0000
commit11def03ba2ed03580729a2077de82e090cf58ca2 (patch)
treeec9f44b21f6467729d1cc581347b7599b43cbdbb
parentcfd0c5768ad0fb69810f3c067cbd60c116428f05 (diff)
Add meta-agl-flutter layer
- agl-image-flutter baseline agl-compositor based image that includes: ivi-homescreen - Toyota Flutter Embedder flutter gallery - Flutter Demo Application flutter_homescreen - Igalia Demo Application - flutter-app-homescreen - Igalia flutter_homescreen app - ivi-homescreen bbappend to lock SRCREV Bug-AGL: SPEC-3852 Signed-off-by: Joel Winarske <joel.winarske@gmail.com> Change-Id: I58779ab093e9d23a88005e60ef28b9133eca2479
-rw-r--r--meta-agl-flutter/conf/include/agl-flutter.inc1
-rw-r--r--meta-agl-flutter/conf/layer.conf14
-rw-r--r--meta-agl-flutter/recipes-graphics/flutter-apps/flutter-app-homescreen_git.bb19
-rw-r--r--meta-agl-flutter/recipes-graphics/toyota/ivi-homescreen-debug_%.bbappend1
-rw-r--r--meta-agl-flutter/recipes-graphics/toyota/ivi-homescreen-profile_%.bbappend1
-rw-r--r--meta-agl-flutter/recipes-graphics/toyota/ivi-homescreen-release_%.bbappend1
-rw-r--r--meta-agl-flutter/recipes-graphics/toyota/ivi-homescreen_aglflutter.inc2
-rw-r--r--meta-agl-flutter/recipes-platform/images/agl-image-flutter-debug.bb12
-rw-r--r--meta-agl-flutter/recipes-platform/images/agl-image-flutter-profile.bb12
-rw-r--r--meta-agl-flutter/recipes-platform/images/agl-image-flutter.bb12
-rw-r--r--meta-agl-flutter/recipes-platform/images/agl-image-flutter.inc8
-rw-r--r--templates/feature/agl-flutter/50_bblayers.conf.inc4
-rw-r--r--templates/feature/agl-flutter/50_local.conf.inc8
13 files changed, 95 insertions, 0 deletions
diff --git a/meta-agl-flutter/conf/include/agl-flutter.inc b/meta-agl-flutter/conf/include/agl-flutter.inc
new file mode 100644
index 00000000..fc7ad35e
--- /dev/null
+++ b/meta-agl-flutter/conf/include/agl-flutter.inc
@@ -0,0 +1 @@
+AGL_FEATURES += "agl-flutter"
diff --git a/meta-agl-flutter/conf/layer.conf b/meta-agl-flutter/conf/layer.conf
new file mode 100644
index 00000000..f7c437d3
--- /dev/null
+++ b/meta-agl-flutter/conf/layer.conf
@@ -0,0 +1,14 @@
+# We have a conf and classes directory, add to BBPATH
+BBPATH .= ":${LAYERDIR}"
+
+# We have recipes-* directories, add to BBFILES
+BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
+ ${LAYERDIR}/recipes-*/*/*.bbappend"
+
+BBFILE_COLLECTIONS += "meta-agl-flutter"
+BBFILE_PATTERN_meta-agl-flutter = "^${LAYERDIR}/"
+BBFILE_PRIORITY_meta-agl-flutter = "61"
+
+LAYERVERSION_meta-agl-flutter = "1"
+LAYERDEPENDS_meta-agl-flutter = "core meta-flutter"
+LAYERSERIES_COMPAT_meta-agl-flutter = "dunfell"
diff --git a/meta-agl-flutter/recipes-graphics/flutter-apps/flutter-app-homescreen_git.bb b/meta-agl-flutter/recipes-graphics/flutter-apps/flutter-app-homescreen_git.bb
new file mode 100644
index 00000000..1f57cd7e
--- /dev/null
+++ b/meta-agl-flutter/recipes-graphics/flutter-apps/flutter-app-homescreen_git.bb
@@ -0,0 +1,19 @@
+SUMMARY = "Igalia Flutter Homescreen"
+DESCRIPTION = "Flutter Gallery Application"
+AUTHOR = "Igalia"
+HOMEPAGE = "https://github.com/felipeerias/flutter_homescreen"
+BUGTRACKER = "https://github.com/felipeerias/flutter_homescreen/issues"
+SECTION = "graphics"
+
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
+
+SRC_URI = "git://github.com/felipeerias/flutter_homescreen.git;protocol=https;branch=main"
+
+SRCREV = "283f915354dcc81410b30534c1eda063d0e78888"
+
+S = "${WORKDIR}/git"
+
+PUBSPEC_APPNAME = "flutter_homescreen"
+
+inherit flutter-app
diff --git a/meta-agl-flutter/recipes-graphics/toyota/ivi-homescreen-debug_%.bbappend b/meta-agl-flutter/recipes-graphics/toyota/ivi-homescreen-debug_%.bbappend
new file mode 100644
index 00000000..9727092c
--- /dev/null
+++ b/meta-agl-flutter/recipes-graphics/toyota/ivi-homescreen-debug_%.bbappend
@@ -0,0 +1 @@
+require ${@bb.utils.contains('AGL_FEATURES', 'agl-flutter', '${BPN}_aglflutter.inc', '', d)}
diff --git a/meta-agl-flutter/recipes-graphics/toyota/ivi-homescreen-profile_%.bbappend b/meta-agl-flutter/recipes-graphics/toyota/ivi-homescreen-profile_%.bbappend
new file mode 100644
index 00000000..9727092c
--- /dev/null
+++ b/meta-agl-flutter/recipes-graphics/toyota/ivi-homescreen-profile_%.bbappend
@@ -0,0 +1 @@
+require ${@bb.utils.contains('AGL_FEATURES', 'agl-flutter', '${BPN}_aglflutter.inc', '', d)}
diff --git a/meta-agl-flutter/recipes-graphics/toyota/ivi-homescreen-release_%.bbappend b/meta-agl-flutter/recipes-graphics/toyota/ivi-homescreen-release_%.bbappend
new file mode 100644
index 00000000..9727092c
--- /dev/null
+++ b/meta-agl-flutter/recipes-graphics/toyota/ivi-homescreen-release_%.bbappend
@@ -0,0 +1 @@
+require ${@bb.utils.contains('AGL_FEATURES', 'agl-flutter', '${BPN}_aglflutter.inc', '', d)}
diff --git a/meta-agl-flutter/recipes-graphics/toyota/ivi-homescreen_aglflutter.inc b/meta-agl-flutter/recipes-graphics/toyota/ivi-homescreen_aglflutter.inc
new file mode 100644
index 00000000..233e911c
--- /dev/null
+++ b/meta-agl-flutter/recipes-graphics/toyota/ivi-homescreen_aglflutter.inc
@@ -0,0 +1,2 @@
+
+SRCREV = "08f074ccc42c1129cf8587f48970bdfbd154693a"
diff --git a/meta-agl-flutter/recipes-platform/images/agl-image-flutter-debug.bb b/meta-agl-flutter/recipes-platform/images/agl-image-flutter-debug.bb
new file mode 100644
index 00000000..ef1b70e7
--- /dev/null
+++ b/meta-agl-flutter/recipes-platform/images/agl-image-flutter-debug.bb
@@ -0,0 +1,12 @@
+SUMMARY = "Baseline Flutter Image for Development"
+
+LICENSE = "MIT"
+
+require agl-image-flutter.inc
+
+IMAGE_INSTALL:append = "\
+ weston-ini-conf-landscape \
+ ivi-homescreen-debug \
+ flutter-gallery-debug \
+ flutter-engine-debug \
+ "
diff --git a/meta-agl-flutter/recipes-platform/images/agl-image-flutter-profile.bb b/meta-agl-flutter/recipes-platform/images/agl-image-flutter-profile.bb
new file mode 100644
index 00000000..1ec164b0
--- /dev/null
+++ b/meta-agl-flutter/recipes-platform/images/agl-image-flutter-profile.bb
@@ -0,0 +1,12 @@
+SUMMARY = "Baseline Flutter Image for Profiling"
+
+LICENSE = "MIT"
+
+require agl-image-flutter.inc
+
+IMAGE_INSTALL:append = "\
+ weston-ini-conf-landscape \
+ ivi-homescreen-profile \
+ flutter-gallery-profile \
+ flutter-engine-profile \
+ "
diff --git a/meta-agl-flutter/recipes-platform/images/agl-image-flutter.bb b/meta-agl-flutter/recipes-platform/images/agl-image-flutter.bb
new file mode 100644
index 00000000..8f85e25a
--- /dev/null
+++ b/meta-agl-flutter/recipes-platform/images/agl-image-flutter.bb
@@ -0,0 +1,12 @@
+SUMMARY = "Baseline Flutter Image for Release"
+
+LICENSE = "MIT"
+
+require agl-image-flutter.inc
+
+IMAGE_INSTALL:append = "\
+ weston-ini-conf-landscape \
+ ivi-homescreen-release \
+ flutter-gallery-release \
+ flutter-engine-release \
+ "
diff --git a/meta-agl-flutter/recipes-platform/images/agl-image-flutter.inc b/meta-agl-flutter/recipes-platform/images/agl-image-flutter.inc
new file mode 100644
index 00000000..84bd9e99
--- /dev/null
+++ b/meta-agl-flutter/recipes-platform/images/agl-image-flutter.inc
@@ -0,0 +1,8 @@
+require recipes-platform/images/agl-image-weston.inc
+
+IMAGE_INSTALL:append = "\
+ agl-compositor \
+ packagegroup-agl-profile-graphical \
+ "
+
+CLANGSDK = "1"
diff --git a/templates/feature/agl-flutter/50_bblayers.conf.inc b/templates/feature/agl-flutter/50_bblayers.conf.inc
new file mode 100644
index 00000000..baafd005
--- /dev/null
+++ b/templates/feature/agl-flutter/50_bblayers.conf.inc
@@ -0,0 +1,4 @@
+BBLAYERS =+ " \
+ ${METADIR}/meta-agl-devel/meta-agl-flutter \
+ ${METADIR}/external/meta-flutter \
+"
diff --git a/templates/feature/agl-flutter/50_local.conf.inc b/templates/feature/agl-flutter/50_local.conf.inc
new file mode 100644
index 00000000..23bb0ebc
--- /dev/null
+++ b/templates/feature/agl-flutter/50_local.conf.inc
@@ -0,0 +1,8 @@
+# Set Flutter Channel
+FLUTTER_CHANNEL = "dev"
+
+# Build engine with runtime=release
+PACKAGECONFIG:pn-flutter-engine = "embedder-for-target disable-desktop-embeddings fontconfig mode-release"
+
+# Include Flutter SDK in SDK
+TOOLCHAIN_HOST_TASK:append = " nativesdk-flutter-sdk"