meta-agl-flutter: mask out libstd-rs bbappend
[AGL/meta-agl-devel.git] / meta-agl-flutter / tools / configs / flutter-engine.json
1 {
2     "id": "flutter-engine",
3     "load": false,
4     "supported_archs": [
5         "x86_64",
6         "arm64"
7     ],
8     "supported_host_types": [
9         "ubuntu",
10         "fedora"
11     ],
12     "type": "generic",
13     "flutter_runtime": "debug",
14     "env": {
15         "DEPOT_TOOLS": "${FLUTTER_WORKSPACE}/app/depot_tools",
16         "ENGINE_ROOT": "${PLATFORM_ID_DIR}/engine",
17         "ENGINE_SRC_DIR_RELATIVE": "src",
18         "ENGINE_SRC_DIR": "${ENGINE_ROOT}/${ENGINE_SRC_DIR_RELATIVE}",
19         "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",
20         "ENGINE_BUILD_DIR": "${ENGINE_SRC_DIR}/out/host_debug",
21         "GN_ARGS_FILE": "${ENGINE_BUILD_DIR}/args.gn",
22         "GN_ARGS_APPEND": ""
23     },
24     "runtime": {
25         "gclient_config": {
26             "path": "${ENGINE_ROOT}",
27             "managed": false,
28             "name": "src/flutter",
29             "url": "https://github.com/flutter/engine.git",
30             "custom_vars": {
31                 "download_android_deps": false,
32                 "download_windows_deps": false,
33                 "download_linux_deps": true,
34                 "download_emsdk": false
35             },
36             "custom_deps": {
37                 "src/third_party/dart/third_party/pkg/tools": "https://dart.googlesource.com/tools.git@545d7e1c73ce21b8c91f638021f9d487d324a501"
38             },
39             "deps_file": "DEPS",
40             "safesync_url": ""
41         },
42         "pre-requisites": {
43             "arm64": {
44                 "ubuntu": {
45                     "cmds": [
46                         "sudo apt install pkg-config libfreetype-dev git"
47                     ]
48                 },
49                 "fedora": {
50                     "cmds": [
51                         "sudo dnf install pkg-config freetype-devel git"
52                     ]
53                 }
54             },
55             "x86_64": {
56                 "ubuntu": {
57                     "cmds": [
58                         "sudo apt install pkg-config libfreetype-dev git"
59                     ]
60                 },
61                 "fedora": {
62                     "cmds": [
63                         "sudo dnf install pkg-config freetype-devel git"
64                     ]
65                 }
66             }
67         },
68         "post_cmds": [
69             {
70                 "env": {
71                     "PATH": "${DEPOT_TOOLS}:$PATH"
72                 },
73                 "cwd": "${ENGINE_ROOT}",
74                 "cmds": [
75                     "gclient sync -D -R --revision ${FLUTTER_ENGINE_VERSION} -v"
76                 ]
77             },
78             {
79                 "env": {
80                     "PATH": "${DEPOT_TOOLS}:$PATH"
81                 },
82                 "cwd": "${ENGINE_SRC_DIR}",
83                 "cmds": [
84                     "./flutter/tools/gn ${ENGINE_BUILD_FLAGS}",
85                     "echo ${GN_ARGS_APPEND} >> ${GN_ARGS_FILE}",
86                     "ninja -C ${ENGINE_BUILD_DIR}"
87                 ]
88             },
89             {
90                 "cwd": "${ENGINE_BUILD_DIR}",
91                 "cmds": [
92                     "bash -c \"rm -rf ${PLATFORM_ID_DIR}/bundle | true\"",
93                     "mkdir -p ${PLATFORM_ID_DIR}/bundle/data/",
94                     "mkdir -p ${PLATFORM_ID_DIR}/bundle/lib/",
95                     "cp ${ENGINE_BUILD_DIR}/icudtl.dat ${PLATFORM_ID_DIR}/bundle/data/",
96                     "cp ${ENGINE_BUILD_DIR}/libflutter_engine.so ${PLATFORM_ID_DIR}/bundle/lib/"
97                 ]
98             }
99         ]
100     }
101 }