Skip to content

Commit

Permalink
Enable QML debugging and profiling in debug builds
Browse files Browse the repository at this point in the history
Allows builds to be profiled and debugged by external applications
such as VS and Qt Creator.
See https://doc.qt.io/qt-5/qtquick-debugging.html
  • Loading branch information
Swiftb0y committed Jun 15, 2021
1 parent 7c7d406 commit ab1419a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -978,6 +978,12 @@ if(UNIX AND NOT APPLE)
set(MIXXX_SETTINGS_PATH ".mixxx/")
endif()

# QML Debugging
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
target_compile_definitions(mixxx-lib PRIVATE QT_QML_DEBUG)
message(STATUS "Enabling QML Debugging! This poses a security risk as Mixxx will open a TCP port for debugging")
endif()

# Disable warnings in generated source files
set_property(
SOURCE src/library/rekordbox/rekordbox_anlz.cpp
Expand Down

0 comments on commit ab1419a

Please sign in to comment.