Link call command tests against the camera and codec modules
This commit is contained in:
1 parent
f646a068d8
commit
b7bf9675ae
1 file changed
+3
-3
@@ -532,10 +532,10 @@ endif()
|
||||
add_test(NAME test_message_events COMMAND test_message_events)
|
||||
set_tests_properties(test_message_events PROPERTIES ENVIRONMENT "QT_QPA_PLATFORM=offscreen" TIMEOUT 15)
|
||||
|
||||
add_executable(test_call_commands tests/test_call_commands.cpp src/callwindow.cpp src/call_audio_engine.cpp src/sound_manager.cpp
|
||||
add_executable(test_call_commands tests/test_call_commands.cpp src/callwindow.cpp src/call_video_engine.cpp src/call_audio_engine.cpp src/sound_manager.cpp
|
||||
src/voice_audio_io.cpp src/audio_device.cpp src/connmonitorwindow.cpp transport/gui_bridge_impl.cpp
|
||||
transport/miniaudio_impl.c transport/audio_diagnostics.cpp)
|
||||
target_link_libraries(test_call_commands PRIVATE ${QT_LIBS} ${QT_TEST_LIB} chatgui_stream_publish utun_voice utun pthread ${CMAKE_DL_LIBS})
|
||||
target_link_libraries(test_call_commands PRIVATE ${QT_LIBS} ${QT_TEST_LIB} chatgui_camera chatgui_live_video utun_voice utun pthread ${CMAKE_DL_LIBS})
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
target_compile_definitions(test_call_commands PRIVATE UTUN_TEST_CALL_HOOKS)
|
||||
foreach(symbol u_calloc_impl call_start_trampoline call_accept_trampoline call_decline_trampoline call_hangup_trampoline call_continue_trampoline)
|
||||
@@ -966,7 +966,7 @@ add_test(NAME test_voice_file COMMAND test_voice_file)
|
||||
|
||||
if(WIN32)
|
||||
# AudioDevice закрывает неисправный WASAPI в worker с собственным COM apartment.
|
||||
foreach(audio_target vibechat test_file_drop test_invite_links test_video_engine test_stream_view test_stream_publish
|
||||
foreach(audio_target vibechat test_file_drop test_invite_links test_video_engine test_stream_view test_stream_publish test_call_commands
|
||||
test_voice_file test_sound_settings test_settings_save)
|
||||
target_link_libraries(${audio_target} PRIVATE ole32)
|
||||
endforeach()
|
||||
|
||||
Reference in new issue
Block a user