Commit e40293b2 authored by Patrick José Pereira's avatar Patrick José Pereira Committed by Daniel Agar

cmake: Add DEBUG_QML option

Signed-off-by: 's avatarPatrick José Pereira <patrickelectric@gmail.com>
parent 4604a32b
......@@ -75,6 +75,18 @@ if(COMPILE_QML)
)
endif()
#=============================================================================
# Debug QML
#
option(DEBUG_QML "Build QGroundControl with QML debugging/profiling support." FALSE)
add_feature_info(DEBUG_QML DEBUG_QML "Build QGroundControl with QML debugging/profiling support.")
if(DEBUG_QML)
message(STATUS "To enable the QML debugger/profiler, run with: '-qmljsdebugger=port:1234'")
add_definitions(-DQMLJSDEBUGGER)
add_definitions(-DQT_DECLARATIVE_DEBUG)
add_definitions(-DQT_QML_DEBUG)
endif()
#=============================================================================
# GStreamer
#
......
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