meta-agl-flutter refactor
[AGL/meta-agl-devel.git] / meta-agl-flutter / recipes-graphics / toyota / flutter-auto_aglflutter.inc
1 # For now disable gstreamer to avoid needing to enable "commercial"
2 # licenses for the stated ffmpeg dependency.
3 PACKAGECONFIG:remove = "gstreamer"
4
5 # Enable verbose logging on runtimedebug image
6 PACKAGECONFIG:append:runtimedebug = "verbose"
7
8
9 USER_SERVICE = "flutter-auto.service"
10
11 FILESEXTRAPATHS:append := "${THISDIR}/files:"
12 SRC_URI += "\
13     file://${USER_SERVICE} \
14     file://gallery_on_bg-debug.json \
15     file://gallery_on_bg-profile.json \
16     file://gallery_on_bg-release.json \
17     file://0002-shell-configuration-Obey-json-configuration-file.patch \
18     file://0003-shell-configuration-Fixes-to-general-options.patch \
19     file://0004-Add-app-id-command-line-argument.patch \
20     "
21
22
23 cmake_do_install:append() {
24
25     install -d ${D}${systemd_user_unitdir}/agl-session.target.wants
26     install -D -m0644 ${WORKDIR}/${USER_SERVICE} ${D}${systemd_user_unitdir}/${USER_SERVICE}
27
28     install -D -m0644 ${WORKDIR}/gallery_on_bg-release.json ${D}${datadir}/flutter/default.json
29 }
30
31 cmake_do_install:append:runtimedebug() {
32
33     # the dev host controls starting/stopping the flutter-auto process when runtime=debug
34     install -D -m0644 ${WORKDIR}/gallery_on_bg-debug.json ${D}${datadir}/flutter/default.json
35 }
36
37 cmake_do_install:append:runtimeprofile() {
38
39     # the dev host controls starting/stopping the flutter-auto process when runtime=profile
40     install -D -m0644 ${WORKDIR}/gallery_on_bg-profile.json ${D}${datadir}/flutter/default.json
41 }
42
43
44 FILES:${PN} += "\
45     ${systemd_user_unitdir} \
46     ${datadir} \
47     "