Migrate IVI-Shell backport to Weston 1.8.0 (Yocto 2.0)
[AGL/meta-agl.git] / meta-agl / recipes-graphics / wayland / weston_%.bbappend
1 FILESEXTRAPATHS_append := ":${THISDIR}/${PN}"
2
3 SRC_URI_append = "\
4     file://weston.service \
5     file://weston.ini \
6     "
7
8 inherit systemd
9
10 SYSTEMD_PACKAGES = "${PN}"
11 SYSTEMD_SERVICE_${PN} = "weston.service"
12
13 do_install_append() {
14     # Install systemd unit files
15     if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
16         install -p -D ${WORKDIR}/weston.service ${D}${systemd_system_unitdir}/weston.service
17     fi
18
19     WESTON_INI_CONFIG=${sysconfdir}/xdg/weston
20     install -d ${D}${WESTON_INI_CONFIG}
21     install -m 0644 ${WORKDIR}/weston.ini ${D}${WESTON_INI_CONFIG}/weston.ini
22 }
23
24 FILES_${PN} += " \
25     ${sysconfdir}/xdg/weston/weston.ini \
26     "