Commit 7d2e5506 authored by Ming Rui Zhang's avatar Ming Rui Zhang Committed by Andreas Traczyk

project: use cmake to generate ring-daemon vcxproj

Change-Id: Ib1d736c241849415eaef957c9e6565e78cda45f1
parent 4ad78be5
################################################################################
# Command for variable_watch. This command issues error message, if a variable
# is changed. If variable PROPERTY_READER_GUARD_DISABLED is TRUE nothing happens
# variable_watch(<variable> property_reader_guard)
################################################################################
function(property_reader_guard VARIABLE ACCESS VALUE CURRENT_LIST_FILE STACK)
if("${PROPERTY_READER_GUARD_DISABLED}")
return()
endif()
if("${ACCESS}" STREQUAL "MODIFIED_ACCESS")
message(FATAL_ERROR
" Variable ${VARIABLE} is not supposed to be changed.\n"
" It is used only for reading target property ${VARIABLE}.\n"
" Use\n"
" set_target_properties(\"<target>\" PROPERTIES \"${VARIABLE}\" \"<value>\")\n"
" or\n"
" set_target_properties(\"<target>\" PROPERTIES \"${VARIABLE}_<CONFIG>\" \"<value>\")\n"
" instead.\n")
endif()
endfunction()
################################################################################
# Create variable <name> with generator expression that expands to value of
# target property <name>_<CONFIG>. If property is empty or not set then property
# <name> is used instead. Variable <name> has watcher property_reader_guard that
# doesn't allow to edit it.
# create_property_reader(<name>)
# Input:
# name - Name of watched property and output variable
################################################################################
function(create_property_reader NAME)
set(PROPERTY_READER_GUARD_DISABLED TRUE)
set(CONFIG_VALUE "$<TARGET_GENEX_EVAL:${PROPS_TARGET},$<TARGET_PROPERTY:${PROPS_TARGET},${NAME}_$<UPPER_CASE:$<CONFIG>>>>")
set(IS_CONFIG_VALUE_EMPTY "$<STREQUAL:${CONFIG_VALUE},>")
set(GENERAL_VALUE "$<TARGET_GENEX_EVAL:${PROPS_TARGET},$<TARGET_PROPERTY:${PROPS_TARGET},${NAME}>>")
set("${NAME}" "$<IF:${IS_CONFIG_VALUE_EMPTY},${GENERAL_VALUE},${CONFIG_VALUE}>" PARENT_SCOPE)
variable_watch("${NAME}" property_reader_guard)
endfunction()
################################################################################
# Set property $<name>_${PROPS_CONFIG_U} of ${PROPS_TARGET} to <value>
# set_config_specific_property(<name> <value>)
# Input:
# name - Prefix of property name
# value - New value
################################################################################
function(set_config_specific_property NAME VALUE)
set_target_properties("${PROPS_TARGET}" PROPERTIES "${NAME}_${PROPS_CONFIG_U}" "${VALUE}")
endfunction()
################################################################################
create_property_reader("TARGET_NAME")
create_property_reader("OUTPUT_DIRECTORY")
set_config_specific_property("TARGET_NAME" "${PROPS_TARGET}")
set_config_specific_property("OUTPUT_NAME" "${TARGET_NAME}")
set_config_specific_property("ARCHIVE_OUTPUT_NAME" "${TARGET_NAME}")
set_config_specific_property("LIBRARY_OUTPUT_NAME" "${TARGET_NAME}")
set_config_specific_property("RUNTIME_OUTPUT_NAME" "${TARGET_NAME}")
set_config_specific_property("ARCHIVE_OUTPUT_DIRECTORY" "${OUTPUT_DIRECTORY}")
set_config_specific_property("LIBRARY_OUTPUT_DIRECTORY" "${OUTPUT_DIRECTORY}")
set_config_specific_property("RUNTIME_OUTPUT_DIRECTORY" "${OUTPUT_DIRECTORY}")
\ No newline at end of file
include("${CMAKE_CURRENT_LIST_DIR}/Default.cmake")
set_config_specific_property("OUTPUT_DIRECTORY" "${CMAKE_SOURCE_DIR}$<$<NOT:$<STREQUAL:${CMAKE_VS_PLATFORM_NAME},Win32>>:/${CMAKE_VS_PLATFORM_NAME}>/${PROPS_CONFIG}")
if(MSVC)
create_property_reader("DEFAULT_CXX_DEBUG_RUNTIME_LIBRARY")
create_property_reader("DEFAULT_CXX_RUNTIME_LIBRARY")
create_property_reader("DEFAULT_CXX_EXCEPTION_HANDLING")
create_property_reader("DEFAULT_CXX_DEBUG_INFORMATION_FORMAT")
set_config_specific_property("DEFAULT_CXX_DEBUG_RUNTIME_LIBRARY" "/MDd")
set_config_specific_property("DEFAULT_CXX_RUNTIME_LIBRARY" "/MD")
set_config_specific_property("DEFAULT_CXX_EXCEPTION_HANDLING" "/EHsc")
set_config_specific_property("DEFAULT_CXX_DEBUG_INFORMATION_FORMAT" "/Zi")
endif()
This diff is collapsed.
This diff is collapsed.
################################################################################
# Source groups - MSVC
################################################################################
if(MSVC)
list (APPEND Source_Files
"${CMAKE_CURRENT_SOURCE_DIR}/config.h"
"${CMAKE_CURRENT_SOURCE_DIR}/dlfcn.c"
"${CMAKE_CURRENT_SOURCE_DIR}/dlfcn.h"
)
endif()
set (Source_Files ${Source_Files} PARENT_SCOPE)
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
################################################################################
# Source groups - src
################################################################################
# client|config|dring|hooks|im|jamidht|media|security|sip|transport|upnp
list (APPEND Source_Files
"${CMAKE_CURRENT_SOURCE_DIR}/account.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/account.h"
"${CMAKE_CURRENT_SOURCE_DIR}/account_factory.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/account_factory.h"
"${CMAKE_CURRENT_SOURCE_DIR}/account_schema.h"
"${CMAKE_CURRENT_SOURCE_DIR}/archiver.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/archiver.h"
"${CMAKE_CURRENT_SOURCE_DIR}/array_size.h"
"${CMAKE_CURRENT_SOURCE_DIR}/base64.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/base64.h"
"${CMAKE_CURRENT_SOURCE_DIR}/buildinfo.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/call.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/call.h"
"${CMAKE_CURRENT_SOURCE_DIR}/call_factory.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/call_factory.h"
"${CMAKE_CURRENT_SOURCE_DIR}/channel.h"
"${CMAKE_CURRENT_SOURCE_DIR}/compiler_intrinsics.h"
"${CMAKE_CURRENT_SOURCE_DIR}/conference.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/conference.h"
"${CMAKE_CURRENT_SOURCE_DIR}/data_transfer.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/data_transfer.h"
"${CMAKE_CURRENT_SOURCE_DIR}/enumclass_utils.h"
"${CMAKE_CURRENT_SOURCE_DIR}/fileutils.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/fileutils.h"
"${CMAKE_CURRENT_SOURCE_DIR}/ftp_server.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/ftp_server.h"
"${CMAKE_CURRENT_SOURCE_DIR}/generic_io.h"
"${CMAKE_CURRENT_SOURCE_DIR}/ice_socket.h"
"${CMAKE_CURRENT_SOURCE_DIR}/ice_transport.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/ice_transport.h"
"${CMAKE_CURRENT_SOURCE_DIR}/ip_utils.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/ip_utils.h"
"${CMAKE_CURRENT_SOURCE_DIR}/logger.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/logger.h"
"${CMAKE_CURRENT_SOURCE_DIR}/manager.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/manager.h"
"${CMAKE_CURRENT_SOURCE_DIR}/map_utils.h"
"${CMAKE_CURRENT_SOURCE_DIR}/noncopyable.h"
"${CMAKE_CURRENT_SOURCE_DIR}/peer_connection.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/peer_connection.h"
"${CMAKE_CURRENT_SOURCE_DIR}/preferences.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/preferences.h"
"${CMAKE_CURRENT_SOURCE_DIR}/rational.h"
"${CMAKE_CURRENT_SOURCE_DIR}/registration_states.h"
"${CMAKE_CURRENT_SOURCE_DIR}/ring_api.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/ring_types.h"
"${CMAKE_CURRENT_SOURCE_DIR}/rw_mutex.h"
"${CMAKE_CURRENT_SOURCE_DIR}/scheduled_executor.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/scheduled_executor.h"
"${CMAKE_CURRENT_SOURCE_DIR}/smartools.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/smartools.h"
"${CMAKE_CURRENT_SOURCE_DIR}/string_utils.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/string_utils.h"
"${CMAKE_CURRENT_SOURCE_DIR}/threadloop.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/threadloop.h"
"${CMAKE_CURRENT_SOURCE_DIR}/turn_transport.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/turn_transport.h"
"${CMAKE_CURRENT_SOURCE_DIR}/utf8_utils.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/utf8_utils.h"
)
if(MSVC)
list (APPEND Source_Files
"${CMAKE_CURRENT_SOURCE_DIR}/windirent.h"
"${CMAKE_CURRENT_SOURCE_DIR}/winsyslog.c"
"${CMAKE_CURRENT_SOURCE_DIR}/winsyslog.h"
)
endif()
set (Source_Files ${Source_Files} PARENT_SCOPE)
add_subdirectory(client)
add_subdirectory(config)
add_subdirectory(dring)
add_subdirectory(hooks)
add_subdirectory(im)
add_subdirectory(jamidht)
add_subdirectory(media)
add_subdirectory(security)
add_subdirectory(sip)
add_subdirectory(upnp)
set (Source_Files__client ${Source_Files__client} PARENT_SCOPE)
set (Source_Files__config ${Source_Files__config} PARENT_SCOPE)
set (Source_Files__dring ${Source_Files__dring} PARENT_SCOPE)
set (Source_Files__hooks ${Source_Files__hooks} PARENT_SCOPE)
set (Source_Files__im ${Source_Files__im} PARENT_SCOPE)
set (Source_Files__jamidht ${Source_Files__jamidht} PARENT_SCOPE)
set (Source_Files__jamidht__eth__libdevcore ${Source_Files__jamidht__eth__libdevcore} PARENT_SCOPE)
set (Source_Files__jamidht__eth__libdevcrypto ${Source_Files__jamidht__eth__libdevcrypto} PARENT_SCOPE)
set (Source_Files__media ${Source_Files__media} PARENT_SCOPE)
set (Source_Files__media__audio ${Source_Files__media__audio} PARENT_SCOPE)
set (Source_Files__media__audio__sound ${Source_Files__media__audio__sound} PARENT_SCOPE)
set (Source_Files__media__video ${Source_Files__media__video} PARENT_SCOPE)
if(MSVC)
if(WINDOWS_STORE)
set (Source_Files__media__video__uwpvideo ${Source_Files__media__video__uwpvideo} PARENT_SCOPE)
endif()
set (Source_Files__media__audio__portaudio ${Source_Files__media__audio__portaudio} PARENT_SCOPE)
set (Source_Files__media__video__winvideo ${Source_Files__media__video__winvideo} PARENT_SCOPE)
endif()
set (Source_Files__security ${Source_Files__security} PARENT_SCOPE)
set (Source_Files__sip ${Source_Files__sip} PARENT_SCOPE)
set (Source_Files__upnp ${Source_Files__upnp} PARENT_SCOPE)
set (Source_Files__upnp__protocol ${Source_Files__upnp__protocol} PARENT_SCOPE)
set (Source_Files__upnp__protocol__pupnp ${Source_Files__upnp__protocol__pupnp} PARENT_SCOPE)
set (Source_Files__upnp__protocol__natpmp ${Source_Files__upnp__protocol__natpmp} PARENT_SCOPE)
\ No newline at end of file
################################################################################
# Source groups - client
################################################################################
list (APPEND Source_Files__client
"${CMAKE_CURRENT_SOURCE_DIR}/callmanager.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/configurationmanager.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/datatransfer.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/presencemanager.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/ring_signal.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/ring_signal.h"
"${CMAKE_CURRENT_SOURCE_DIR}/videomanager.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/videomanager.h"
)
set (Source_Files__client ${Source_Files__client} PARENT_SCOPE)
\ No newline at end of file
################################################################################
# Source groups - config
################################################################################
list (APPEND Source_Files__config
"${CMAKE_CURRENT_SOURCE_DIR}/serializable.h"
"${CMAKE_CURRENT_SOURCE_DIR}/yamlparser.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/yamlparser.h"
)
set (Source_Files__config ${Source_Files__config} PARENT_SCOPE)
\ No newline at end of file
################################################################################
# Source groups - dring
################################################################################
list (APPEND Source_Files__dring
"${CMAKE_CURRENT_SOURCE_DIR}/account_const.h"
"${CMAKE_CURRENT_SOURCE_DIR}/call_const.h"
"${CMAKE_CURRENT_SOURCE_DIR}/callmanager_interface.h"
"${CMAKE_CURRENT_SOURCE_DIR}/configurationmanager_interface.h"
"${CMAKE_CURRENT_SOURCE_DIR}/datatransfer_interface.h"
"${CMAKE_CURRENT_SOURCE_DIR}/dring.h"
"${CMAKE_CURRENT_SOURCE_DIR}/media_const.h"
"${CMAKE_CURRENT_SOURCE_DIR}/presence_const.h"
"${CMAKE_CURRENT_SOURCE_DIR}/presencemanager_interface.h"
"${CMAKE_CURRENT_SOURCE_DIR}/security_const.h"
"${CMAKE_CURRENT_SOURCE_DIR}/videomanager_interface.h"
)
set (Source_Files__dring ${Source_Files__dring} PARENT_SCOPE)
\ No newline at end of file
################################################################################
# Source groups - hooks
################################################################################
list (APPEND Source_Files__hooks
"${CMAKE_CURRENT_SOURCE_DIR}/urlhook.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/urlhook.h"
)
set (Source_Files__hooks ${Source_Files__hooks} PARENT_SCOPE)
\ No newline at end of file
################################################################################
# Source groups - im
################################################################################
list (APPEND Source_Files__im
"${CMAKE_CURRENT_SOURCE_DIR}/instant_messaging.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/instant_messaging.h"
"${CMAKE_CURRENT_SOURCE_DIR}/message_engine.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/message_engine.h"
)
set (Source_Files__im ${Source_Files__im} PARENT_SCOPE)
\ No newline at end of file
################################################################################
# Source groups - jamidht
################################################################################
# eth/libdevcore|eth/libdevcrypto
list (APPEND Source_Files__jamidht
"${CMAKE_CURRENT_SOURCE_DIR}/account_manager.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/account_manager.h"
"${CMAKE_CURRENT_SOURCE_DIR}/accountarchive.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/accountarchive.h"
"${CMAKE_CURRENT_SOURCE_DIR}/archive_account_manager.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/archive_account_manager.h"
"${CMAKE_CURRENT_SOURCE_DIR}/configkeys.h"
"${CMAKE_CURRENT_SOURCE_DIR}/contact_list.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/contact_list.h"
"${CMAKE_CURRENT_SOURCE_DIR}/jami_contact.h"
"${CMAKE_CURRENT_SOURCE_DIR}/jamiaccount.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/jamiaccount.h"
"${CMAKE_CURRENT_SOURCE_DIR}/namedirectory.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/namedirectory.h"
"${CMAKE_CURRENT_SOURCE_DIR}/p2p.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/p2p.h"
"${CMAKE_CURRENT_SOURCE_DIR}/jami_contact.h"
"${CMAKE_CURRENT_SOURCE_DIR}/server_account_manager.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/server_account_manager.h"
"${CMAKE_CURRENT_SOURCE_DIR}/sips_transport_ice.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/sips_transport_ice.h"
)
set (Source_Files__jamidht ${Source_Files__jamidht} PARENT_SCOPE)
add_subdirectory("eth/libdevcore")
add_subdirectory("eth/libdevcrypto")
set (Source_Files__jamidht__eth__libdevcore ${Source_Files__jamidht__eth__libdevcore} PARENT_SCOPE)
set (Source_Files__jamidht__eth__libdevcrypto ${Source_Files__jamidht__eth__libdevcrypto} PARENT_SCOPE)
\ No newline at end of file
################################################################################
# Source groups - libdevcore
################################################################################
list (APPEND Source_Files__jamidht__eth__libdevcore
"${CMAKE_CURRENT_SOURCE_DIR}/Address.h"
"${CMAKE_CURRENT_SOURCE_DIR}/Common.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/Common.h"
"${CMAKE_CURRENT_SOURCE_DIR}/CommonData.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/CommonData.h"
"${CMAKE_CURRENT_SOURCE_DIR}/FixedHash.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/FixedHash.h"
"${CMAKE_CURRENT_SOURCE_DIR}/Makefile.am"
"${CMAKE_CURRENT_SOURCE_DIR}/SHA3.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/SHA3.h"
"${CMAKE_CURRENT_SOURCE_DIR}/vector_ref.h"
)
set (Source_Files__jamidht__eth__libdevcore ${Source_Files__jamidht__eth__libdevcore} PARENT_SCOPE)
\ No newline at end of file
################################################################################
# Source groups - libdevcrypto
################################################################################
list (APPEND Source_Files__jamidht__eth__libdevcrypto
"${CMAKE_CURRENT_SOURCE_DIR}/Common.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/Common.h"
)
set (Source_Files__jamidht__eth__libdevcrypto ${Source_Files__jamidht__eth__libdevcrypto} PARENT_SCOPE)
\ No newline at end of file
################################################################################
# Source groups - media
################################################################################
# audio|video
list (APPEND Source_Files__media
"${CMAKE_CURRENT_SOURCE_DIR}/congestion_control.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/congestion_control.h"
"${CMAKE_CURRENT_SOURCE_DIR}/decoder_finder.h"
"${CMAKE_CURRENT_SOURCE_DIR}/libav_deps.h"
"${CMAKE_CURRENT_SOURCE_DIR}/libav_utils.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/libav_utils.h"
"${CMAKE_CURRENT_SOURCE_DIR}/localrecorder.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/localrecorder.h"
"${CMAKE_CURRENT_SOURCE_DIR}/localrecordermanager.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/localrecordermanager.h"
"${CMAKE_CURRENT_SOURCE_DIR}/media_buffer.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/media_buffer.h"
"${CMAKE_CURRENT_SOURCE_DIR}/media_codec.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/media_codec.h"
"${CMAKE_CURRENT_SOURCE_DIR}/media_decoder.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/media_decoder.h"
"${CMAKE_CURRENT_SOURCE_DIR}/media_device.h"
"${CMAKE_CURRENT_SOURCE_DIR}/media_encoder.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/media_encoder.h"
"${CMAKE_CURRENT_SOURCE_DIR}/media_filter.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/media_filter.h"
"${CMAKE_CURRENT_SOURCE_DIR}/media_io_handle.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/media_io_handle.h"
"${CMAKE_CURRENT_SOURCE_DIR}/media_recorder.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/media_recorder.h"
"${CMAKE_CURRENT_SOURCE_DIR}/media_stream.h"
"${CMAKE_CURRENT_SOURCE_DIR}/recordable.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/recordable.h"
"${CMAKE_CURRENT_SOURCE_DIR}/rtp_session.h"
"${CMAKE_CURRENT_SOURCE_DIR}/socket_pair.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/socket_pair.h"
"${CMAKE_CURRENT_SOURCE_DIR}/srtp.c"
"${CMAKE_CURRENT_SOURCE_DIR}/srtp.h"
"${CMAKE_CURRENT_SOURCE_DIR}/system_codec_container.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/system_codec_container.h"
)
set (Source_Files__media ${Source_Files__media} PARENT_SCOPE)
add_subdirectory(audio)
add_subdirectory(video)
set (Source_Files__media__audio ${Source_Files__media__audio} PARENT_SCOPE)
if(MSVC)
set (Source_Files__media__audio__portaudio ${Source_Files__media__audio__portaudio} PARENT_SCOPE)
endif()
set (Source_Files__media__audio__sound ${Source_Files__media__audio__sound} PARENT_SCOPE)
set (Source_Files__media__video ${Source_Files__media__video} PARENT_SCOPE)
if(MSVC)
if(WINDOWS_STORE)
set (Source_Files__media__video__uwpvideo ${Source_Files__media__video__uwpvideo} PARENT_SCOPE)
endif()
set (Source_Files__media__video__winvideo ${Source_Files__media__video__winvideo} PARENT_SCOPE)
endif()
################################################################################
# Source groups - audio
################################################################################
# alsa|coreaudio|jack|opensl|portaudio|pulseaudio|sound
list (APPEND Source_Files__media__audio
"${CMAKE_CURRENT_SOURCE_DIR}/audio_frame_resizer.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/audio_frame_resizer.h"
"${CMAKE_CURRENT_SOURCE_DIR}/audio_input.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/audio_input.h"
"${CMAKE_CURRENT_SOURCE_DIR}/audio_receive_thread.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/audio_receive_thread.h"
"${CMAKE_CURRENT_SOURCE_DIR}/audio_rtp_session.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/audio_rtp_session.h"
"${CMAKE_CURRENT_SOURCE_DIR}/audio_sender.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/audio_sender.h"
"${CMAKE_CURRENT_SOURCE_DIR}/audiobuffer.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/audiobuffer.h"
"${CMAKE_CURRENT_SOURCE_DIR}/audiolayer.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/audiolayer.h"
"${CMAKE_CURRENT_SOURCE_DIR}/audioloop.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/audioloop.h"
"${CMAKE_CURRENT_SOURCE_DIR}/dcblocker.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/dcblocker.h"
"${CMAKE_CURRENT_SOURCE_DIR}/resampler.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/resampler.h"
"${CMAKE_CURRENT_SOURCE_DIR}/ringbuffer.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/ringbuffer.h"
"${CMAKE_CURRENT_SOURCE_DIR}/ringbufferpool.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/ringbufferpool.h"
"${CMAKE_CURRENT_SOURCE_DIR}/tonecontrol.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/tonecontrol.h"
)
if(NOT MSVC)
list (APPEND Source_Files__media__audio
"${CMAKE_CURRENT_SOURCE_DIR}/dsp.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/dsp.h"
)
endif()
set (Source_Files__media__audio ${Source_Files__media__audio} PARENT_SCOPE)
if(MSVC)
add_subdirectory(portaudio)
set (Source_Files__media__audio__portaudio ${Source_Files__media__audio__portaudio} PARENT_SCOPE)
endif()
add_subdirectory(sound)
set (Source_Files__media__audio__sound ${Source_Files__media__audio__sound} PARENT_SCOPE)
\ No newline at end of file
################################################################################
# Source groups - portaudio
################################################################################
list (APPEND Source_Files__media__audio__portaudio
"${CMAKE_CURRENT_SOURCE_DIR}/portaudiolayer.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/portaudiolayer.h"
)
set (Source_Files__media__audio__portaudio ${Source_Files__media__audio__portaudio} PARENT_SCOPE)
\ No newline at end of file
################################################################################
# Source groups - sound
################################################################################
list (APPEND Source_Files__media__audio__sound
"${CMAKE_CURRENT_SOURCE_DIR}/audiofile.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/audiofile.h"
"${CMAKE_CURRENT_SOURCE_DIR}/dtmf.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/dtmf.h"
"${CMAKE_CURRENT_SOURCE_DIR}/dtmfgenerator.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/dtmfgenerator.h"
"${CMAKE_CURRENT_SOURCE_DIR}/tone.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/tone.h"
"${CMAKE_CURRENT_SOURCE_DIR}/tonelist.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/tonelist.h"
)
set (Source_Files__media__audio__sound ${Source_Files__media__audio__sound} PARENT_SCOPE)
\ No newline at end of file
################################################################################
# Source groups - video
################################################################################
# androidvideo|iosvideo|osxvideo|uwpvideo|v4l2|winvideo
list (APPEND Source_Files__media__video
"${CMAKE_CURRENT_SOURCE_DIR}/accel.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/accel.h"
"${CMAKE_CURRENT_SOURCE_DIR}/filter_transpose.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/filter_transpose.h"
"${CMAKE_CURRENT_SOURCE_DIR}/shm_header.h"
"${CMAKE_CURRENT_SOURCE_DIR}/sinkclient.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/sinkclient.h"
"${CMAKE_CURRENT_SOURCE_DIR}/video_base.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/video_base.h"
"${CMAKE_CURRENT_SOURCE_DIR}/video_device.h"
"${CMAKE_CURRENT_SOURCE_DIR}/video_device_monitor.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/video_device_monitor.h"
"${CMAKE_CURRENT_SOURCE_DIR}/video_input.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/video_input.h"
"${CMAKE_CURRENT_SOURCE_DIR}/video_mixer.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/video_mixer.h"
"${CMAKE_CURRENT_SOURCE_DIR}/video_receive_thread.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/video_receive_thread.h"
"${CMAKE_CURRENT_SOURCE_DIR}/video_rtp_session.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/video_rtp_session.h"
"${CMAKE_CURRENT_SOURCE_DIR}/video_scaler.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/video_scaler.h"
"${CMAKE_CURRENT_SOURCE_DIR}/video_sender.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/video_sender.h"
)
set (Source_Files__media__video ${Source_Files__media__video} PARENT_SCOPE)
if(MSVC)
if(WINDOWS_STORE)
add_subdirectory(uwpvideo)
set (Source_Files__media__video__uwpvideo ${Source_Files__media__video__uwpvideo} PARENT_SCOPE)
endif()
add_subdirectory(winvideo)
set (Source_Files__media__video__winvideo ${Source_Files__media__video__winvideo} PARENT_SCOPE)
endif()
################################################################################
# Source groups - uwpvideo
################################################################################
list (APPEND Source_Files__media__video__uwpvideo
"${CMAKE_CURRENT_SOURCE_DIR}/video_device_impl.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/video_device_monitor_impl.cpp"
)
set (Source_Files__media__video__uwpvideo ${Source_Files__media__video__uwpvideo} PARENT_SCOPE)
################################################################################
# Source groups - winvideo
################################################################################
list (APPEND Source_Files__media__video__winvideo
"src/media/video/winvideo/capture_graph_interfaces.h"
"src/media/video/winvideo/video_device_impl.cpp"
"src/media/video/winvideo/video_device_monitor_impl.cpp"
)
set (Source_Files__media__video__winvideo ${Source_Files__media__video__winvideo} PARENT_SCOPE)
################################################################################
# Source groups - security
################################################################################
list (APPEND Source_Files__security
"${CMAKE_CURRENT_SOURCE_DIR}/certstore.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/certstore.h"
"${CMAKE_CURRENT_SOURCE_DIR}/diffie-hellman.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/diffie-hellman.h"
"${CMAKE_CURRENT_SOURCE_DIR}/memory.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/memory.h"
"${CMAKE_CURRENT_SOURCE_DIR}/tls_session.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/tls_session.h"
"${CMAKE_CURRENT_SOURCE_DIR}/tlsvalidator.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/tlsvalidator.h"
)
set (Source_Files__security ${Source_Files__security} PARENT_SCOPE)
\ No newline at end of file
################################################################################
# Source groups - sip
################################################################################
list (APPEND Source_Files__sip
"${CMAKE_CURRENT_SOURCE_DIR}/pres_sub_client.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/pres_sub_client.h"
"${CMAKE_CURRENT_SOURCE_DIR}/pres_sub_server.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/pres_sub_server.h"
"${CMAKE_CURRENT_SOURCE_DIR}/sdes_negotiator.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/sdes_negotiator.h"
"${CMAKE_CURRENT_SOURCE_DIR}/sdp.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/sdp.h"
"${CMAKE_CURRENT_SOURCE_DIR}/sip_utils.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/sip_utils.h"
"${CMAKE_CURRENT_SOURCE_DIR}/sipaccount.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/sipaccount.h"
"${CMAKE_CURRENT_SOURCE_DIR}/sipaccountbase.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/sipaccountbase.h"
"${CMAKE_CURRENT_SOURCE_DIR}/sipcall.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/sipcall.h"
"${CMAKE_CURRENT_SOURCE_DIR}/sippresence.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/sippresence.h"
"${CMAKE_CURRENT_SOURCE_DIR}/siptransport.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/siptransport.h"
"${CMAKE_CURRENT_SOURCE_DIR}/sipvoiplink.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/sipvoiplink.h"
)
set (Source_Files__sip ${Source_Files__sip} PARENT_SCOPE)
\ No newline at end of file
################################################################################
# Source groups - upnp
################################################################################
# protocol
list (APPEND Source_Files__upnp
"${CMAKE_CURRENT_SOURCE_DIR}/upnp_context.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/upnp_context.h"
"${CMAKE_CURRENT_SOURCE_DIR}/upnp_control.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/upnp_control.h"
)
set (Source_Files__upnp ${Source_Files__upnp} PARENT_SCOPE)
add_subdirectory(protocol)
set (Source_Files__upnp__protocol ${Source_Files__upnp__protocol} PARENT_SCOPE)
set (Source_Files__upnp__protocol__pupnp ${Source_Files__upnp__protocol__pupnp} PARENT_SCOPE)
set (Source_Files__upnp__protocol__natpmp ${Source_Files__upnp__protocol__natpmp} PARENT_SCOPE)
\ No newline at end of file
################################################################################
# Source groups - protocol
################################################################################
# natpmp|pupnp
list (APPEND Source_Files__upnp__protocol
"${CMAKE_CURRENT_SOURCE_DIR}/global_mapping.h"
"${CMAKE_CURRENT_SOURCE_DIR}/igd.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/igd.h"
"${CMAKE_CURRENT_SOURCE_DIR}/mapping.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/mapping.h"
"${CMAKE_CURRENT_SOURCE_DIR}/upnp_protocol.h"
)
set (Source_Files__upnp__protocol ${Source_Files__upnp__protocol} PARENT_SCOPE)
add_subdirectory(natpmp)
add_subdirectory(pupnp)
set (Source_Files__upnp__protocol__pupnp ${Source_Files__upnp__protocol__pupnp} PARENT_SCOPE)
set (Source_Files__upnp__protocol__natpmp ${Source_Files__upnp__protocol__natpmp} PARENT_SCOPE)
\ No newline at end of file
################################################################################
# Source groups - natpmp
################################################################################
list (APPEND Source_Files__upnp__protocol__natpmp
"${CMAKE_CURRENT_SOURCE_DIR}/nat_pmp.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/nat_pmp.h"
"${CMAKE_CURRENT_SOURCE_DIR}/pmp_igd.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/pmp_igd.h"
)
set (Source_Files__upnp__protocol__natpmp ${Source_Files__upnp__protocol__natpmp} PARENT_SCOPE)
\ No newline at end of file
################################################################################
# Source groups - pupnp
################################################################################
list (APPEND Source_Files__upnp__protocol__pupnp
"${CMAKE_CURRENT_SOURCE_DIR}/pupnp.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/pupnp.h"
"${CMAKE_CURRENT_SOURCE_DIR}/upnp_igd.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/upnp_igd.h"
)
set (Source_Files__upnp__protocol__pupnp ${Source_Files__upnp__protocol__pupnp} PARENT_SCOPE)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment