Commit 693c491b authored by Arjen Hiemstra's avatar Arjen Hiemstra
Browse files

Add an option to enable QML profiling

This adds a CMake option to enable QML profiler and debugger integration.
This allows running the gallery through the QML profiler, which makes it
simple to profile Kirigami through running Kirigami Gallery.

It is by default set to "ON" because I do not think there really is any
risk related to enabling it.

Test Plan:
With the option on, starting Kirigami Gallery from command line will print
"QML debugging is enabled". Without it, no such print happens.

Reviewers: #kirigami, bshah

Reviewed By: bshah

Subscribers: bshah, plasma-devel

Tags: #plasma, #kirigami

Differential Revision:
parent 09746fb4
......@@ -30,6 +30,8 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
find_package(ECM 5.47.0 NO_MODULE)
set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake Modules." URL "")
option(ENABLE_QML_PROFILING "Enable QML profiler support" ON)
# where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked
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