avs-device-sdk/SampleApp/src/CMakeLists.txt

47 lines
1.2 KiB
CMake
Raw Normal View History

add_executable(SampleApp
main.cpp
PortAudioMicrophoneWrapper.cpp
InteractionManager.cpp
UserInputManager.cpp
ConsolePrinter.cpp
Version 1.2.0 alexa-client-sdk Changes in this update * **Enhancements** * Updated MediaPlayer to solve stability issues * All capability agents were refined to work with the updated MediaPlayer * Added the TemplateRuntime capability agent * Added the SpeakerManager capability agent * Added a configuration option ("sampleApp":"endpoint") that allows the endpoint that SampleApp connects to to be specified without changing code or rebuilding * Added very verbose capture of libcurl debug information * Added an observer interface to observer audio state changes from AudioPlayer * Added support for StreamMetadataExtracted Event. Stream tags found in the stream are represented in JSON and sent to AVS * Added to the SampleApp a simple GuiRenderer as an observer to the TemplateRuntime Capability Agent * Moved shared libcurl functionality to AVSCommon/Utils * Added a CMake option to exclude tests from the "make all" build. Use "cmake <absolute-path-to-source> -DACSDK_EXCLUDE_TEST_FROM_ALL=ON" to enable it. When this option is enabled "make unit" and "make integration" still could be used to build and run the tests * **Bug fixes**: * Previously scheduled alerts now play following a restart * General stability fixes * Bug fix for CertifiedSender blocking forever if the network goes down while it's trying to send a message to AVS * Fixes for known issue of Alerts integration tests fail: AlertsTest.UserLongUnrelatedBargeInOnActiveTimer and AlertsTest.handleOneTimerWithVocalStop * Attempting to end a tap-to-talk interaction with the tap-to-talk button wouldn't work * SharedDataStream could encounter a race condition due to a combination of a blocking Reader and a Writer closing before writing any data * Bug-fix for the ordering of notifications within alerts scheduling. This fixes the issue where a local-stop on an alert would also stop a subsequent alert if it were to begin without delay * **Known Issues** * Capability agent for Notifications is not included in this release * Inconsistent playback behavior when resuming content ("Alexa, pause." / "Alexa, resume."). Specifically, handling playback offsets, which causes the content to play from the start. This behavior is also occasionally seen with "Next" / "Previous". * `ACL`'s asynchronous receipt of audio attachments may manage resources poorly in scenarios where attachments are received but not consumed.
2017-10-30 22:14:38 +00:00
GuiRenderer.cpp
UIManager.cpp
KeywordObserver.cpp
ConnectionObserver.cpp
SampleApplication.cpp)
target_include_directories(SampleApp PUBLIC
"${SampleApp_SOURCE_DIR}/include"
"${MediaPlayer_SOURCE_DIR}/include"
"${DefaultClient_SOURCE_DIR}/include"
"${PORTAUDIO_INCLUDE_DIR}")
target_link_libraries(SampleApp
DefaultClient
AuthDelegate
MediaPlayer
"${PORTAUDIO_LIB_PATH}")
if(KITTAI_KEY_WORD_DETECTOR)
target_link_libraries(SampleApp
KITTAI)
endif()
if(SENSORY_KEY_WORD_DETECTOR)
target_link_libraries(SampleApp SENSORY)
endif()
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
target_link_libraries(SampleApp
"-framework CoreAudio"
"-framework AudioToolbox"
"-framework AudioUnit"
"-framework CoreServices"
"-framework Carbon")
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
target_link_libraries(SampleApp
rt m pthread asound)
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
message(FATAL_ERROR "Windows is unsupported at the moment")
endif()