avs-device-sdk/build/cmake/Bluetooth.cmake

23 lines
753 B
CMake
Raw Normal View History

Version 1.7.1 alexa-client-sdk Changes in this update: Enhancements * Added the Bluetooth interface, which manages the Bluetooth connection between Alexa-enabled products and peer devices. This release supports A2DP-SINK and AVRCP profiles. Note: Bluetooth is optional and is currently limited to Raspberry Pi and Linux platforms. * Added new Bluetooth dependencies for Linux and Raspberry Pi. * Device Capability Framework (DCF) renamed to Capabilities. * Updated the non-CBL client ID error message to be more specific. * Updated the sample app to enter a limited interaction mode after an unrecoverable error. Bug Fixes * Issue 597 - Fixed a bug where the sample app did not respond to locale change settings. * Fixed issue where GStreamer 1.14 MediaPlayerTest failed on Windows. * Fixed an issue where a segmentation fault was triggered after unrecoverable error handling. Known Issues * The ACL may encounter issues if audio attachments are received but not consumed. * SpeechSynthesizerState currently uses GAINING_FOCUS and LOSING_FOCUS as a workaround for handling intermediate state. These states may be removed in a future release. * The Alexa app doesn't always indicate when a device is successfully connected via Bluetooth. * Connecting a product to streaming media via Bluetooth will sometimes stop media playback within the source application. Resuming playback through the source application or toggling next/previous will correct playback. * When streaming silence via Bluetooth, the Alexa companion app will sometimes indicate that media content is streaming. * The Bluetooth agent assumes that the Bluetooth adapter is always connected to a power source. Disconnecting from a power source during operation is not yet supported. * On some products, interrupted Bluetooth playback may not resume if other content is locally streamed. * When streaming content via Bluetooth, under certain conditions playback will fail to resume and the sample app hangs on exit. This is due to a conflict between the GStreamer pipeline and the Bluetooth agent. * On Raspberry Pi, when streaming audio via Bluetooth, sometimes the audio stream stutters. * On Raspberry Pi, BlueALSA must be terminated each time the device boots. See Raspberry Pi Quick Start Guide for more information.
2018-05-04 22:45:54 +00:00
#
# Setup the Bluetooth compiler options.
#
# To build with Bluetooth capabilties, specify:
# cmake <path-to-source> -DBLUETOOTH_BLUEZ
option(BLUETOOTH_BLUEZ "Enable BlueZ implementation of the Bluetooth" OFF)
if(BLUETOOTH_BLUEZ)
message("Creating ${PROJECT_NAME} with BlueZ implementation of Bluetooth")
find_package(PkgConfig)
pkg_check_modules(GIO REQUIRED gio-2.0>=2.4)
pkg_check_modules(GIO_UNIX REQUIRED gio-unix-2.0>=2.4)
pkg_check_modules(SBC REQUIRED)
add_definitions(-DBLUETOOTH_BLUEZ)
# When we have other implementations, add another definition to represent whether Bluetooth is enabled.
# add_definitions(-DBLUETOOTH_ENABLED)
else()
message ("Bluetooth implementation not supported")
endif()