2022-05-18 06:20:06 +00:00
|
|
|
#
|
|
|
|
# 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"
|
|
|
|
|
2022-05-27 16:22:10 +00:00
|
|
|
DEPENDS = "curl nghttp2 sqlite3 openssl gstreamer1.0 gstreamer1.0-plugins-base libopus portaudio libarchive"
|
2022-05-18 06:20:06 +00:00
|
|
|
|
2022-05-27 16:22:10 +00:00
|
|
|
SRC_URI = "git://xajhuang.com:3100/avs/avs-device-sdk.git;protocol=https;branch=master"
|
|
|
|
SRCREV = "${AUTOREV}"
|
2022-05-18 06:20:06 +00:00
|
|
|
|
|
|
|
COMPATIBLE_HOST = "aarch64-poky-linux"
|
|
|
|
|
2022-05-27 16:22:10 +00:00
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
|
2022-05-28 11:02:13 +00:00
|
|
|
EXTRA_OECMAKE = "${S} -DCMAKE_SKIP_RPATH=TRUE -DBUILD_TESTING=OFF \
|
|
|
|
-DGSTREAMER_MEDIA_PLAYER=ON -DASPMIC=ON -DCMAKE_BUILD_TYPE=DEBUG -DPKCS11=OFF \
|
2022-05-18 06:20:06 +00:00
|
|
|
-DCURL_INCLUDE_DIR=${STAGING_DIR_HOST}${includedir}/curl \
|
2022-05-27 16:22:10 +00:00
|
|
|
-DCURL_LIBRARY=${STAGING_DIR_HOST}${libdir}/libcurl.so \
|
|
|
|
-DLibArchive_INCLUDE_DIR=${STAGING_DIR_HOST}${includedir} \
|
|
|
|
-DLibArchive_LIBRARY=${STAGING_DIR_HOST}${libdir}/libarchive.so \
|
2022-05-28 01:57:15 +00:00
|
|
|
-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 \
|
2022-05-28 11:02:13 +00:00
|
|
|
-DASPMIC_INCLUDE_DIR=${S}/extension/mic-asp-sdk/include \
|
2022-05-27 16:22:10 +00:00
|
|
|
"
|
2022-05-18 06:20:06 +00:00
|
|
|
inherit cmake
|
|
|
|
|
2022-05-29 12:41:37 +00:00
|
|
|
FILES_${PN} = "${libdir}"
|
2022-05-18 06:20:06 +00:00
|
|
|
|
|
|
|
do_compile() {
|
2022-05-29 12:41:37 +00:00
|
|
|
make -j8 SampleApp
|
2022-05-18 06:20:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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}
|
2022-05-29 12:41:37 +00:00
|
|
|
install -m 0755 ${B}/extension/mic-asp-sdk/libmic_asp.so ${D}${libdir}
|
2022-05-18 06:20:06 +00:00
|
|
|
install -m 0755 ${B}${libdir}/usr/lib/pkgconfig/AlexaClientSDK.pc ${D}${libdir}/pkgconfig/AlexaClientSDK.pc
|
|
|
|
chrpath -d ${D}${bindir}/SampleApp
|
|
|
|
}
|