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

57 lines
1.9 KiB
BlitzBasic
Raw Normal View History

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-18 06:20:06 +00:00
EXTRA_OECMAKE = "${S} -DCMAKE_SKIP_RPATH=TRUE \
-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 \
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-18 06:20:06 +00:00
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
}