summaryrefslogtreecommitdiffstats
path: root/recipes-demo-hmi/navigation/mapviewer_%.bbappend
blob: 4e89af064fd96b596047d1f01ef2e6bdbad5d54b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FILESEXTRAPATHS_append := ":${THISDIR}/${PN}"

SRC_URI_append = "\
    file://mapviewer-settings.sh \
    file://mapviewer.service \
    "

inherit systemd

SYSTEMD_PACKAGES = "${PN}"

do_install_append() {
    install -d ${D}/usr/AGL/${PN}
    install -m 0755 ${WORKDIR}/mapviewer-settings.sh ${D}/usr/AGL/${PN}/

    # Install systemd unit files
    if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
        install -d ${D}${systemd_user_unitdir}
        install -m 644 -p -D ${WORKDIR}/mapviewer.service ${D}${systemd_user_unitdir}/mapviewer.service
    fi
}

## DO NOT ENABLE 'weston-mapviewer-demo.service' BY DEFAULT
##
## This should be enabled/disabled by 'switch_on_mapviewer-demo.sh'/'switch_off_mapviewer-demo.sh'.
##
#SYSTEMD_SERVICE_${PN} = "mapviewer.service"

FILES_${PN} += " \
    ${systemd_user_unitdir}/mapviewer.service \
    /usr/AGL/mapviewer/ \
    "
n> = "MIT" inherit packagegroup PROVIDES = "${PACKAGES}" PACKAGES = "\ packagegroup-agl-demo-platform-html5 \ packagegroup-agl-demo-platform-html5-devel \ " ALLOW_EMPTY:${PN} = "1" RDEPENDS:${PN} += "\ packagegroup-agl-image-ivi \ " RDEPENDS:${PN} += "\ packagegroup-hmi-framework \ packagegroup-agl-profile-graphical-html5 \ packagegroup-agl-demo \ " RDEPENDS:${PN}:append = " \ weston-ini-conf \ ${@bb.utils.contains('DISTRO_FEATURES', 'agl-devel', 'unzip' , '', d)} \ " # NOTE: Currently no coverage versions for the application widgets, # they should be added here when available. # Also, the navigation and mixer debug widgets are currently # specified explicitly, as there's no simple way to derive their # names from the virtual/ RPROVIDES at present. RDEPENDS:${PN}-devel = " \ packagegroup-hmi-framework-devel \ " # TODO(jdapena): replace this with HTML5 apps. AGL_APPS = " \ dashboard \ html5-hvac \ hvac \ ondemandnavi \ settings \ " # TODO(jdapena): review if we still need the demo-i2c stuff. # Hook for demo platform configuration # ATM used for: # 1) Adding udev configuration and scripts for supporting USB attached # I2C devices for RTC and HVAC LED support. DEMO_UNIT_CONF ?= "demo-i2c-udev-conf" # Preload only if agl-demo-preload is set DEMO_PRELOAD = "${@bb.utils.contains("AGL_FEATURES", "agl-demo-preload", "${DEMO_UNIT_CONF}", "",d)}" # TODO(jdapena): eventually qtquickcontrols2 components, and launcher # (with an HTML5 replacement) RDEPENDS:${PN}:append = " \ launcher \ qtquickcontrols2-agl \ qtquickcontrols2-agl-style \ ${@bb.utils.contains('DISTRO_FEATURES', 'agl-devel', 'unzip' , '', d)} \ ${AGL_APPS} \ ${DEMO_PRELOAD} \ "