aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-demo-hmi
diff options
context:
space:
mode:
authorNaoto Yamaguchi <i33399_YAMAGUCHI@aisin-aw.co.jp>2016-12-15 19:30:50 +0900
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2016-12-19 17:34:59 +0000
commita97637834e33eefd2e381347db03c1233393380a (patch)
treea932c24d6ef9768c448eb85eaa811848af33143c /recipes-demo-hmi
parent49931c57cb1a7f7d2c74fb7e2ad1591acf465b48 (diff)
Add navigation recipe for home screen adaptated
Navigation will be able to work with AGLDistro 3.0 by this patch. This recipe refers to the staging version repository. Change-Id: I4b8bb5f020a316194f049f06a6391d9457540de6 Signed-off-by: Naoto Yamaguchi <i33399_YAMAGUCHI@aisin-aw.co.jp>
Diffstat (limited to 'recipes-demo-hmi')
-rwxr-xr-xrecipes-demo-hmi/navigation/navigation/config.xml9
-rwxr-xr-xrecipes-demo-hmi/navigation/navigation/flite.in6
-rwxr-xr-xrecipes-demo-hmi/navigation/navigation/jtalk.in6
-rwxr-xr-xrecipes-demo-hmi/navigation/navigation_git.bb44
4 files changed, 65 insertions, 0 deletions
diff --git a/recipes-demo-hmi/navigation/navigation/config.xml b/recipes-demo-hmi/navigation/navigation/config.xml
new file mode 100755
index 000000000..954974db2
--- /dev/null
+++ b/recipes-demo-hmi/navigation/navigation/config.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<widget xmlns="http://www.w3.org/ns/widgets" id="navigation" version="0.1">
+ <name>Navigation</name>
+ <icon src="navigation.png"/>
+ <content src="navi" type="application/x-executable"/>
+ <description>NAVIGATION App</description>
+ <author>AISIN AW</author>
+ <license>GPL</license>
+</widget>
diff --git a/recipes-demo-hmi/navigation/navigation/flite.in b/recipes-demo-hmi/navigation/navigation/flite.in
new file mode 100755
index 000000000..fee0c1c24
--- /dev/null
+++ b/recipes-demo-hmi/navigation/navigation/flite.in
@@ -0,0 +1,6 @@
+#!/bin/sh
+TMP=/tmp/navi.wav
+echo "$1" | flite_hts_engine -m @datadir@/Voice/us/cmu_us_arctic_slt.htsvoice -o $TMP
+paplay --property='media.name=Navi' $TMP
+rm -f $TMP
+
diff --git a/recipes-demo-hmi/navigation/navigation/jtalk.in b/recipes-demo-hmi/navigation/navigation/jtalk.in
new file mode 100755
index 000000000..c0670f7e6
--- /dev/null
+++ b/recipes-demo-hmi/navigation/navigation/jtalk.in
@@ -0,0 +1,6 @@
+#!/bin/sh
+TMP=/tmp/navi.wav
+echo "$1" | open_jtalk -ow $TMP -m @exec_prefix@/share/Voice/mei/mei_normal.htsvoice -x @exec_prefix@/share/dic/
+paplay --property='media.name=Navi' $TMP
+rm -f $TMP
+
diff --git a/recipes-demo-hmi/navigation/navigation_git.bb b/recipes-demo-hmi/navigation/navigation_git.bb
new file mode 100755
index 000000000..89bf4d0bc
--- /dev/null
+++ b/recipes-demo-hmi/navigation/navigation_git.bb
@@ -0,0 +1,44 @@
+LICENSE="GPLv2"
+LIC_FILES_CHKSUM="file://LICENSE;md5=3595e9c703a847d990664d2b396a9df0 \
+ file://COPYING;md5=947b2d60ca3872e172034438e9801200"
+
+DEPENDS = " \
+ glib-2.0 freetype sqlite3 wayland zlib expat openssl virtual/libgles2 virtual/libgl virtual/egl \
+ wayland \
+ "
+
+RDEPENDS_${PN} = " flite openjtalk "
+
+SRCREV="153f9d7ecb652732b1acc1cb00919c6a6af5556e"
+SRC_URI="git://github.com/AGLExport/gpsnavi.git \
+ file://flite.in \
+ file://jtalk.in \
+ file://config.xml \
+"
+
+# To avoid C++ library link failure
+SECURITY_CFLAGS = ""
+
+inherit autotools pkgconfig
+
+S = "${WORKDIR}/git"
+
+do_compile_prepend() {
+ cp ${WORKDIR}/flite.in ${S}/
+ cp ${WORKDIR}/jtalk.in ${S}/
+}
+
+do_install_append() {
+ mkdir -p ${WORKDIR}/widget
+ install -m 0644 ${WORKDIR}/config.xml ${WORKDIR}/widget
+ install -m 0755 ${D}/usr/bin/navi ${WORKDIR}/widget
+ zip -ju ${WORKDIR}/widget/navigation.wgt ${WORKDIR}/widget/navi ${WORKDIR}/widget/config.xml
+
+ install -d ${D}/usr/AGL/ces2017-demo
+ install -m 0644 ${WORKDIR}/widget/navigation.wgt ${D}/usr/AGL/ces2017-demo/
+ install -d ${D}/usr/AGL/ces2017-demo
+
+ install -d ${D}/usr/share/mapdata
+}
+
+FILES_${PN} += " /usr/AGL/ces2017-demo/navigation.wgt /usr/share/mapdata "