| #Basic Configuration |
| DESCRIPTION = "This module is used to provide speech related function." |
| SECTION = "base" |
| LICENSE = "MediaTekProprietary" |
| LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff" |
| MTK_SRC = "${TOPDIR}/../src/bach/build.bach/work/libspeech_drv" |
| MODEMINIT_OUT = "${WORKDIR}/out" |
| CROSS = "${TARGET_PREFIX}" |
| PROJECT = "${PROJ_NAME}" |
| WORKONSRC = "${MTK_SRC}" |
| |
| DEPENDS="platform-libs libxml2 audio-xml-parser" |
| INCLUDE_ADD = "-I${STAGING_DIR_HOST}/usr/include -I${STAGING_DIR_HOST}/usr/include/logger " |
| CFLAGS = "-Os --sysroot ${STAGING_DIR_HOST}" |
| LDFLAGS = "--sysroot ${STAGING_DIR_HOST}" |
| |
| inherit deploy workonsrc |
| |
| FILES_${PN} = "${base_libdir}/libspeech_drv.so \ |
| ${base_libdir}/libspeech_dmn.so \ |
| ${base_libdir}/libspeechparser_vendor.so \ |
| ${base_bindir}/speech_daemon" |
| |
| FILES_${PN}-doc = "/doc" |
| |
| FILES_${PN}-dbg = "${base_libdir}/.debug \ |
| /usr/src/debug \ |
| ${base_bindir}/.debug" |
| |
| FILES_${PN}-dev = "/test \ |
| /test \ |
| ${includedir}" |
| |
| #Skip strip check in QA test. |
| #RDEPENDS_${PN} += "telephonyware-dev" |
| INSANE_SKIP_${PN} += "already-stripped" |
| |
| |
| EXTRA_OEMAKE = "'CROSS=${CROSS}'\ |
| 'CC=${CC}'\ |
| 'ROOT=${STAGING_DIR_HOST}'\ |
| 'PREFIX=${BACH_PREFIX}'\ |
| 'PACKAGE_ARCH=${PACKAGE_ARCH}'\ |
| 'BB_INCLUDE_ADD=${INCLUDE_ADD}'\ |
| 'BB_LDFLAGS_ADD=${LDFLAGS}'\ |
| 'BB_CFLAGS_ADD=${CFLAGS}'\ |
| 'TARGET_PLATFORM=${TARGET_PLATFORM}'" |
| |
| do_install () { |
| oe_runmake install ROOT=${D} |
| |
| if [ -d "${D}/include" ]; then |
| install -d ${D}${includedir} |
| cp -af ${D}/include/* ${D}${includedir} |
| rm -rf ${D}/include |
| fi |
| |
| if [ -d "${WORKONSRC}" ]; then |
| install -d ${D}${includedir}/libspeech_drv/ |
| install -d ${D}${includedir}/speech_drv/ |
| cp -af ${S}/export_include/* ${D}${includedir}/libspeech_drv |
| cp -af ${S}/export_include/* ${D}${includedir}/speech_drv |
| fi |
| } |
| |
| addtask bachclean |
| do_bachclean() { |
| oe_runmake clean |
| } |
| |
| |
| |