summaryrefslogtreecommitdiffstats
path: root/meta-agl-flutter/tools/configs/flutter-engine.json
diff options
context:
space:
mode:
authorJoel Winarske <joel.winarske@gmail.com>2023-10-17 10:35:36 -0700
committerScott Murray <scott.murray@konsulko.com>2023-10-18 16:33:26 -0400
commit15df7f399d57729b6583d24cecf0e9d7add75a03 (patch)
tree64102eeea404a326558d497dd7208328cc22b69f /meta-agl-flutter/tools/configs/flutter-engine.json
parentd9670d5543f8a9444ab01d39ad8a95bc1aee3df3 (diff)
Flutter 3.13.2 update
-README update -workspace-automation configs * _global.json - move to 3.13.2 * _repos.json - remove wonderous, update commits, add depot_tools * flutter-engine.json - flutter engine local build (optional) * desktop-auto.json - remove clang from desktop-auto config -flutter-engine recipe * remove bbappend patches -flutter-auto * update agl-shell PACKAGECONFIG addition * remove patches upstream picked up 0001-shell-wayland-display-Handle-flags-as-bitfield-entri.patch dropped 0001-Add-optional-agl_shell-plugin.patch Bug-AGL: SPEC-4936 Signed-off-by: Joel Winarske <joel.winarske@gmail.com> Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: Iddd7c0f735abb4d114ba89a8bf0e49977b469150
Diffstat (limited to 'meta-agl-flutter/tools/configs/flutter-engine.json')
-rw-r--r--meta-agl-flutter/tools/configs/flutter-engine.json101
1 files changed, 101 insertions, 0 deletions
diff --git a/meta-agl-flutter/tools/configs/flutter-engine.json b/meta-agl-flutter/tools/configs/flutter-engine.json
new file mode 100644
index 00000000..cf0a6a16
--- /dev/null
+++ b/meta-agl-flutter/tools/configs/flutter-engine.json
@@ -0,0 +1,101 @@
+{
+ "id": "flutter-engine",
+ "load": false,
+ "supported_archs": [
+ "x86_64",
+ "arm64"
+ ],
+ "supported_host_types": [
+ "ubuntu",
+ "fedora"
+ ],
+ "type": "generic",
+ "flutter_runtime": "debug",
+ "env": {
+ "DEPOT_TOOLS": "${FLUTTER_WORKSPACE}/app/depot_tools",
+ "ENGINE_ROOT": "${PLATFORM_ID_DIR}/engine",
+ "ENGINE_SRC_DIR_RELATIVE": "src",
+ "ENGINE_SRC_DIR": "${ENGINE_ROOT}/${ENGINE_SRC_DIR_RELATIVE}",
+ "ENGINE_BUILD_FLAGS": "--runtime-mode=debug --embedder-for-target --enable-fontconfig --disable-desktop-embeddings --no-build-embedder-examples --enable-impeller-3d --enable-impeller-opengles --no-lto --no-goma",
+ "ENGINE_BUILD_DIR": "${ENGINE_SRC_DIR}/out/host_debug",
+ "GN_ARGS_FILE": "${ENGINE_BUILD_DIR}/args.gn",
+ "GN_ARGS_APPEND": ""
+ },
+ "runtime": {
+ "gclient_config": {
+ "path": "${ENGINE_ROOT}",
+ "managed": false,
+ "name": "src/flutter",
+ "url": "https://github.com/flutter/engine.git",
+ "custom_vars": {
+ "download_android_deps": false,
+ "download_windows_deps": false,
+ "download_linux_deps": true,
+ "download_emsdk": false
+ },
+ "custom_deps": {
+ "src/third_party/dart/third_party/pkg/tools": "https://dart.googlesource.com/tools.git@545d7e1c73ce21b8c91f638021f9d487d324a501"
+ },
+ "deps_file": "DEPS",
+ "safesync_url": ""
+ },
+ "pre-requisites": {
+ "arm64": {
+ "ubuntu": {
+ "cmds": [
+ "sudo apt install pkg-config libfreetype-dev git"
+ ]
+ },
+ "fedora": {
+ "cmds": [
+ "sudo dnf install pkg-config freetype-devel git"
+ ]
+ }
+ },
+ "x86_64": {
+ "ubuntu": {
+ "cmds": [
+ "sudo apt install pkg-config libfreetype-dev git"
+ ]
+ },
+ "fedora": {
+ "cmds": [
+ "sudo dnf install pkg-config freetype-devel git"
+ ]
+ }
+ }
+ },
+ "post_cmds": [
+ {
+ "env": {
+ "PATH": "${DEPOT_TOOLS}:$PATH"
+ },
+ "cwd": "${ENGINE_ROOT}",
+ "cmds": [
+ "gclient sync -D -R --revision ${FLUTTER_ENGINE_VERSION} -v"
+ ]
+ },
+ {
+ "env": {
+ "PATH": "${DEPOT_TOOLS}:$PATH"
+ },
+ "cwd": "${ENGINE_SRC_DIR}",
+ "cmds": [
+ "./flutter/tools/gn ${ENGINE_BUILD_FLAGS}",
+ "echo ${GN_ARGS_APPEND} >> ${GN_ARGS_FILE}",
+ "ninja -C ${ENGINE_BUILD_DIR}"
+ ]
+ },
+ {
+ "cwd": "${ENGINE_BUILD_DIR}",
+ "cmds": [
+ "bash -c \"rm -rf ${PLATFORM_ID_DIR}/bundle | true\"",
+ "mkdir -p ${PLATFORM_ID_DIR}/bundle/data/",
+ "mkdir -p ${PLATFORM_ID_DIR}/bundle/lib/",
+ "cp ${ENGINE_BUILD_DIR}/icudtl.dat ${PLATFORM_ID_DIR}/bundle/data/",
+ "cp ${ENGINE_BUILD_DIR}/libflutter_engine.so ${PLATFORM_ID_DIR}/bundle/lib/"
+ ]
+ }
+ ]
+ }
+} \ No newline at end of file