Commit 3104be28 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Add ENABLE_DEBUG_LOGS option to enable debug level logs in liblinphone and mediastreamer2.

parent f8adbe1f
......@@ -51,6 +51,11 @@ if(ENABLE_UNIT_TESTS)
else()
list(APPEND EP_linphone_CMAKE_OPTIONS "-DENABLE_UNIT_TESTS=NO")
endif()
if(ENABLE_DEBUG_LOGS)
list(APPEND EP_linphone_CMAKE_OPTIONS "-DENABLE_DEBUG_LOGS=YES")
else()
list(APPEND EP_linphone_CMAKE_OPTIONS "-DENABLE_DEBUG_LOGS=NO")
endif()
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES AND NOT IOS)
# Do not build zlib on IOS, it is provided by the system
list(APPEND EP_linphone_DEPENDENCIES EP_zlib)
......
......@@ -103,6 +103,11 @@ if(ENABLE_UNIT_TESTS)
else()
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_UNIT_TESTS=NO")
endif()
if(ENABLE_DEBUG_LOGS)
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_DEBUG_LOGS=YES")
else()
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_DEBUG_LOGS=NO")
endif()
if(ENABLE_V4L AND LINPHONE_BUILDER_BUILD_DEPENDENCIES)
list(APPEND EP_ms2_DEPENDENCIES EP_v4l)
endif()
......
......@@ -92,3 +92,5 @@ option(ENABLE_TUNNEL "Enable tunnel support." ${DEFAULT_VALUE_ENABLE_TUNNEL})
linphone_builder_add_feature_info("Tunnel" ENABLE_TUNNEL "Secure tunnel for SIP/RTP.")
option(ENABLE_UNIT_TESTS "Enable unit tests support with CUnit library." ${DEFAULT_VALUE_ENABLE_UNIT_TESTS})
linphone_builder_add_feature_info("Unit tests" ENABLE_UNIT_TESTS "Build unit tests programs for belle-sip, mediastreamer2 and linphone.")
option(ENABLE_DEBUG_LOGS "Enable debug level logs in libinphone and mediastreamer2." NO)
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