avs_mtk_voice/meta/meta-mediatek-aud/recipes-avs/avs-device-sdk/avs-device-sdk_1.26.0.bb

57 lines
2.2 KiB
BlitzBasic

#
# Copyright (c) 2019 Amazon.com, Inc.
# Copyright (c) 2019 Luxoft Sweden AB
#
# SPDX-License-Identifier: Apache-2.0
#
SUMMARY = "An SDK for commercial device makers to integrate Alexa directly into connected products."
HOMEPAGE = "https://developer.amazon.com/avs/sdk"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=d92e60ee98664c54f68aa515a6169708"
DEPENDS = "curl nghttp2 sqlite3 openssl gstreamer1.0 gstreamer1.0-plugins-base libopus portaudio libarchive"
SRC_URI = "git://xajhuang.com:3100/avs/avs-device-sdk.git;protocol=https;branch=master"
SRCREV = "${AUTOREV}"
COMPATIBLE_HOST = "aarch64-poky-linux"
S = "${WORKDIR}/git"
EXTRA_OECMAKE = "${S} -DCMAKE_SKIP_RPATH=TRUE -DBUILD_TESTING=OFF \
-DGSTREAMER_MEDIA_PLAYER=ON -DASPMIC=ON -DCMAKE_BUILD_TYPE=DEBUG -DPKCS11=OFF \
-DCURL_INCLUDE_DIR=${STAGING_DIR_HOST}${includedir}/curl \
-DCURL_LIBRARY=${STAGING_DIR_HOST}${libdir}/libcurl.so \
-DLibArchive_INCLUDE_DIR=${STAGING_DIR_HOST}${includedir} \
-DLibArchive_LIBRARY=${STAGING_DIR_HOST}${libdir}/libarchive.so \
-DAMAZONLITE_KEY_WORD_DETECTOR=ON \
-DAMAZONLITE_KEY_WORD_DETECTOR_LIB_PATH=${S}/extension/avs-weakup-sdk/aarch64-tuya-mt8516/PRL2000/libpryon_lite-PRL2000.a \
-DAMAZONLITE_KEY_WORD_DETECTOR_INCLUDE_DIR=${S}/extension/avs-weakup-sdk/aarch64-tuya-mt8516 \
-DEXTENSION_PATH=${S}/extension/avs-cpp-sdk/KWD \
-DASPMIC_INCLUDE_DIR=${S}/extension/mic-asp-sdk/include \
"
inherit cmake
FILES_${PN} = "${libdir}"
do_compile() {
make -j8 SampleApp
}
do_install() {
install -d ${B}${libdir}
make install DESTDIR=${B}${libdir}
}
do_install_append() {
# Install Sample application to test Alexa Voice Service
install -d ${D}${bindir}
install -d ${D}${libdir}
install -d ${D}${libdir}/pkgconfig
install -m 0755 ${B}/SampleApp/src/SampleApp ${D}${bindir}
install -m 0755 ${B}${libdir}/usr/lib/*.so ${D}${libdir}
install -m 0755 ${B}/extension/mic-asp-sdk/libmic_asp.so ${D}${libdir}
install -m 0755 ${B}${libdir}/usr/lib/pkgconfig/AlexaClientSDK.pc ${D}${libdir}/pkgconfig/AlexaClientSDK.pc
chrpath -d ${D}${bindir}/SampleApp
}