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"
|
|
|
|
|
|
|
|
DEPENDS = "curl nghttp2 sqlite3 openssl gstreamer1.0 gstreamer1.0-plugins-base libopus portaudio"
|
|
|
|
|
|
|
|
SRC_URI = "https://xajhuang.com:888/dl/avs-device-adk.${PV}.tar.gz"
|
|
|
|
|
|
|
|
SRC_URI[md5sum] = "7b0f84c6e416d7a5d8a30f7a78fdf099"
|
|
|
|
SRC_URI[sha256sum] = "9ede179ae47e8ee3380316b7a3dc43fc31d7eb02f350f47ea70c4bc21c4d053e"
|
|
|
|
|
|
|
|
COMPATIBLE_HOST = "aarch64-poky-linux"
|
|
|
|
|
|
|
|
EXTRA_OECMAKE = "${S} -DCMAKE_SKIP_RPATH=TRUE \
|
2022-05-20 03:39:40 +00:00
|
|
|
-DGSTREAMER_MEDIA_PLAYER=ON -DPORTAUDIO=ON -DCMAKE_BUILD_TYPE=DEBUG -DPKCS11=OFF \
|
2022-05-18 06:20:06 +00:00
|
|
|
-DPORTAUDIO_LIB_PATH=${STAGING_DIR_HOST}${libdir}/libportaudio.so \
|
|
|
|
-DPORTAUDIO_INCLUDE_DIR=${STAGING_DIR_HOST}${includedir} \
|
|
|
|
-DCURL_INCLUDE_DIR=${STAGING_DIR_HOST}${includedir}/curl \
|
|
|
|
-DCURL_LIBRARY=${STAGING_DIR_HOST}${libdir}/libcurl.so"
|
|
|
|
|
|
|
|
inherit cmake
|
|
|
|
|
|
|
|
FILES_${PN}-sampleapp = "${bindir}/SampleApp"
|
|
|
|
|
|
|
|
BBCLASSEXTEND = "native"
|
|
|
|
|
|
|
|
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}${libdir}/usr/lib/pkgconfig/AlexaClientSDK.pc ${D}${libdir}/pkgconfig/AlexaClientSDK.pc
|
|
|
|
chrpath -d ${D}${bindir}/SampleApp
|
|
|
|
}
|