Enable cve-check in CI jobs for additional cve log files
[AGL/meta-agl.git] / meta-agl-flutter / tools / configs / desktop-auto.json
1 {
2   "id": "desktop-auto",
3   "load": true,
4   "supported_archs": [
5     "x86_64"
6   ],
7   "supported_host_types": [
8     "ubuntu",
9     "fedora"
10   ],
11   "flutter_runtime": "debug",
12   "type": "host",
13   "env": {
14     "HOMESCREEN_SRC_DIR": "${FLUTTER_WORKSPACE}/app/ivi-homescreen",
15     "HOMESCREEN_BUILD_DIR": "${FLUTTER_WORKSPACE}/app/ivi-homescreen/build",
16     "HOMESCREEN_CMAKE_ARGS": "-DCMAKE_BUILD_TYPE=Debug -DENABLE_DLT=OFF",
17     "HOMESCREEN_EXE": "${HOMESCREEN_BUILD_DIR}/shell/homescreen --j=${PLATFORM_ID_DIR_RELATIVE}/default_config.json --b=${PLATFORM_ID_DIR_RELATIVE}",
18     "PING_CMD": "loginctl show-session $(awk '/tty/ {print $1}' <(loginctl)) -p Type",
19     "CREATE_BUNDLE_FOLDER": "mkdir -p ${PLATFORM_ID_DIR_RELATIVE}/data",
20     "COPY_PLATFORM_ID_TO_BUNDLE_FOLDER": "cp -r ${PLATFORM_ID_DIR}/default_config.json ${PLATFORM_ID_DIR_RELATIVE}/",
21     "COPY_BUNDLE_FOLDER_TO_PLATOFRM_ID": "cp -r ${BUNDLE_FOLDER}/* ${PLATFORM_ID_DIR_RELATIVE}/",
22     "CREATE_ASSET_SYMLINK": "ln -rsf build/flutter_assets ${PLATFORM_ID_DIR_RELATIVE}/data/flutter_assets",
23     "STAGE_BUNDLE_FOLDER": "${CREATE_BUNDLE_FOLDER} && ${COPY_PLATFORM_ID_TO_BUNDLE_FOLDER} && ${COPY_BUNDLE_FOLDER_TO_PLATOFRM_ID} && ${CREATE_ASSET_SYMLINK}"
24   },
25   "runtime": {
26     "config": {
27       "view": [
28         {
29           "width": 1920,
30           "height": 1080,
31           "cursor_theme": "DMZ-White",
32           "fullscreen": false
33         }
34       ]
35     },
36     "pre-requisites": {
37       "x86_64": {
38         "ubuntu": {
39           "cmds": [
40             "sudo snap install cmake --classic",
41             "sudo add-apt-repository -y ppa:kisak/kisak-mesa",
42             "sudo apt update -y",
43             "sudo apt install lsb-release wget software-properties-common gnupg apt-file",
44             "sudo apt-file update",
45             "sudo apt install -y libwayland-dev wayland-protocols mesa-common-dev libegl1-mesa-dev libgles2-mesa-dev mesa-utils libxkbcommon-dev ninja-build",
46             "sudo apt install -y build-essential libvulkan-dev vulkan-tools vulkan-validationlayers vulkan-utils libtool",
47             "sudo apt autoremove -y",
48             "sudo apt clean -y",
49             "cmake --version",
50             "apt-file search cmake"
51           ]
52         },
53         "fedora": {
54           "cmds": [
55             "sudo dnf -y update",
56             "sudo dnf -y upgrade",
57             "sudo dnf -y install wayland-devel wayland-protocols-devel libxkbcommon-devel cmake ninja-build mesa-dri-drivers mesa-filesystem mesa-libEGL-devel mesa-libGL-devel mesa-libGLU-devel mesa-libgbm-devel mesa-libglapi mesa-libxatracker mesa-vulkan-drivers vulkan-tools libunwind-devel gstreamer1-devel gstreamer1-plugins-base-devel gstreamer1-plugins-bad-free-devel gstreamer1-plugins-bad-free-extras gstreamer1-plugins-base-tools gstreamer1-plugins-good gstreamer1-plugins-good-extras gstreamer1-plugins-ugly-free libtool",
58             "sudo dnf -y autoremove",
59             "cmake --version",
60             "dnf provides cmake"
61           ]
62         }
63       }
64     },
65     "post_cmds": [
66       {
67         "cwd": "${HOMESCREEN_BUILD_DIR}",
68         "cmds": [
69           "cmake ${HOMESCREEN_SRC_DIR}  ${HOMESCREEN_CMAKE_ARGS}",
70           "make homescreen -j"
71         ]
72       }
73     ]
74   },
75   "overwrite-existing": true,
76   "custom-device": {
77     "id": "desktop-auto",
78     "label": "Toyota Homescreen for AGL",
79     "sdkNameAndVersion": "flutter-auto x86_64",
80     "platform": "linux-x64",
81     "enabled": true,
82     "ping": "bash -c \"${PING_CMD}\"",
83     "pingSuccessRegex": "Type=wayland",
84     "postBuild": "bash -c \"rm -rf ${PLATFORM_ID_DIR_RELATIVE}\"",
85     "install": "bash -c \"${STAGE_BUNDLE_FOLDER}\"",
86     "uninstall": "bash -c \"rm -rf ${PLATFORM_ID_DIR_RELATIVE}\"",
87     "runDebug": "bash -c \"${HOMESCREEN_EXE}\"",
88     "forwardPort": null,
89     "forwardPortSuccessRegex": null,
90     "screenshot": null
91   }
92 }