|
|
|
@ -10,9 +10,9 @@ add_custom_target(fake-target
|
|
|
|
|
SOURCES ${QML_SRCS})
|
|
|
|
|
|
|
|
|
|
# qmllint: qml static syntax checker
|
|
|
|
|
if(${CMAKE_BUILD_TYPE} MATCHES "Debug")
|
|
|
|
|
if(NOT DEFINED ECM_ENABLE_SANITIZERS)
|
|
|
|
|
if(${CMAKE_BUILD_TYPE} MATCHES "Debug" AND NOT DEFINED ECM_ENABLE_SANITIZERS)
|
|
|
|
|
find_program(QMLLINT qmllint)
|
|
|
|
|
|
|
|
|
|
if(EXISTS "${QMLLINT}")
|
|
|
|
|
message("-- Found qmllint: ${QMLLINT}")
|
|
|
|
|
add_custom_command(TARGET latte-dock PRE_BUILD
|
|
|
|
@ -22,9 +22,7 @@ if(${CMAKE_BUILD_TYPE} MATCHES "Debug")
|
|
|
|
|
else()
|
|
|
|
|
message("-- qmllint: QML Syntax verifier not found")
|
|
|
|
|
endif()
|
|
|
|
|
else()
|
|
|
|
|
message("-- Disable qmllint because ECM_ENABLE_SANITIZERS is defined")
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
message("-- Enabling QML debugging and profiling")
|
|
|
|
|
add_definitions(-DQT_QML_DEBUG)
|
|
|
|
|
add_definitions(-DQT_FATAL_WARNINGS)
|
|
|
|
|