forked from qt-creator/qt-creator
CMake build: Add ability to disable building of individual plugins
Adds a cache entry "BUILD_PLUGIN_${NAME}", defaulting to ON which
can be set to OFF to disable building of a plugin.
Adds a extend_qtc_plugin function that should be used to add
properties to a plugin after add_qtc_plugin, instead of the
standard CMake functions target_... . The new function results
in a no-op if the plugin was disabled.
Change-Id: I57f6799620aea0aaa8b56acead4815ccced95911
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -62,6 +62,31 @@ function(set_explicit_moc target_name file)
|
|||||||
target_sources(${target_name} PRIVATE "${file_moc}")
|
target_sources(${target_name} PRIVATE "${file_moc}")
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
function(add_qtc_depends target_name)
|
||||||
|
cmake_parse_arguments(_arg "" "" "PRIVATE;PUBLIC" ${ARGN})
|
||||||
|
if (${_arg_UNPARSED_ARGUMENTS})
|
||||||
|
message(FATAL_ERROR "add_qtc_depends had unparsed arguments")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
separate_object_libraries("${_arg_PRIVATE}"
|
||||||
|
depends object_lib_depends object_lib_depends_objects)
|
||||||
|
separate_object_libraries("${_arg_PUBLIC}"
|
||||||
|
public_depends object_public_depends object_public_depends_objects)
|
||||||
|
|
||||||
|
target_sources(${target_name} PRIVATE ${object_lib_depends_objects} ${object_public_depends_objects})
|
||||||
|
target_link_libraries(${target_name} PRIVATE ${depends} PUBLIC ${public_depends})
|
||||||
|
|
||||||
|
foreach(obj_lib IN LISTS object_lib_depends)
|
||||||
|
target_compile_definitions(${target_name} PRIVATE $<TARGET_PROPERTY:${obj_lib},INTERFACE_COMPILE_DEFINITIONS>)
|
||||||
|
target_include_directories(${target_name} PRIVATE $<TARGET_PROPERTY:${obj_lib},INTERFACE_INCLUDE_DIRECTORIES>)
|
||||||
|
endforeach()
|
||||||
|
foreach(obj_lib IN LISTS object_public_depends)
|
||||||
|
target_compile_definitions(${target_name} PUBLIC $<TARGET_PROPERTY:${obj_lib},INTERFACE_COMPILE_DEFINITIONS>)
|
||||||
|
target_include_directories(${target_name} PUBLIC $<TARGET_PROPERTY:${obj_lib},INTERFACE_INCLUDE_DIRECTORIES>)
|
||||||
|
endforeach()
|
||||||
|
|
||||||
|
endfunction()
|
||||||
|
|
||||||
function(add_qtc_library name)
|
function(add_qtc_library name)
|
||||||
cmake_parse_arguments(_arg "STATIC;OBJECT" ""
|
cmake_parse_arguments(_arg "STATIC;OBJECT" ""
|
||||||
"DEFINES;DEPENDS;INCLUDES;PUBLIC_DEFINES;PUBLIC_DEPENDS;PUBLIC_INCLUDES;SOURCES;EXPLICIT_MOC;SKIP_AUTOMOC;PROPERTIES" ${ARGN}
|
"DEFINES;DEPENDS;INCLUDES;PUBLIC_DEFINES;PUBLIC_DEPENDS;PUBLIC_INCLUDES;SOURCES;EXPLICIT_MOC;SKIP_AUTOMOC;PROPERTIES" ${ARGN}
|
||||||
@@ -179,6 +204,11 @@ function(find_dependent_plugins varName)
|
|||||||
set("${varName}" ${_RESULT} PARENT_SCOPE)
|
set("${varName}" ${_RESULT} PARENT_SCOPE)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
function(qtc_plugin_enabled varName name)
|
||||||
|
string(TOUPPER "BUILD_PLUGIN_${name}" _build_plugin_var)
|
||||||
|
set(${varName} ${${_build_plugin_var}} PARENT_SCOPE)
|
||||||
|
endfunction()
|
||||||
|
|
||||||
function(add_qtc_plugin target_name)
|
function(add_qtc_plugin target_name)
|
||||||
cmake_parse_arguments(_arg
|
cmake_parse_arguments(_arg
|
||||||
"EXPERIMENTAL;SKIP_DEBUG_CMAKE_FILE_CHECK"
|
"EXPERIMENTAL;SKIP_DEBUG_CMAKE_FILE_CHECK"
|
||||||
@@ -204,7 +234,10 @@ function(add_qtc_plugin target_name)
|
|||||||
set(_extra_text "with CONDITION ${_contents}")
|
set(_extra_text "with CONDITION ${_contents}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (${_arg_CONDITION})
|
string(TOUPPER "BUILD_PLUGIN_${target_name}" _build_plugin_var)
|
||||||
|
set(${_build_plugin_var} "ON" CACHE BOOL "Build plugin ${name}.")
|
||||||
|
|
||||||
|
if ((${_arg_CONDITION}) AND ${_build_plugin_var})
|
||||||
set(_plugin_enabled ON)
|
set(_plugin_enabled ON)
|
||||||
else()
|
else()
|
||||||
set(_plugin_enabled OFF)
|
set(_plugin_enabled OFF)
|
||||||
@@ -273,13 +306,7 @@ function(add_qtc_plugin target_name)
|
|||||||
configure_file("${CMAKE_CURRENT_BINARY_DIR}/${name}.json.cmakein" "${name}.json")
|
configure_file("${CMAKE_CURRENT_BINARY_DIR}/${name}.json.cmakein" "${name}.json")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
separate_object_libraries("${_arg_DEPENDS}"
|
add_library(${target_name} SHARED ${_arg_SOURCES})
|
||||||
depends object_lib_depends object_lib_depends_objects)
|
|
||||||
separate_object_libraries("${_arg_PUBLIC_DEPENDS}"
|
|
||||||
public_depends object_public_depends object_public_depends_objects)
|
|
||||||
|
|
||||||
add_library(${target_name} SHARED ${_arg_SOURCES}
|
|
||||||
${object_lib_depends_objects} ${object_public_depends_objects})
|
|
||||||
|
|
||||||
### Generate EXPORT_SYMBOL
|
### Generate EXPORT_SYMBOL
|
||||||
string(TOUPPER "${name}_LIBRARY" EXPORT_SYMBOL)
|
string(TOUPPER "${name}_LIBRARY" EXPORT_SYMBOL)
|
||||||
@@ -288,10 +315,7 @@ function(add_qtc_plugin target_name)
|
|||||||
set(TEST_DEFINES WITH_TESTS SRCDIR="${CMAKE_CURRENT_SOURCE_DIR}")
|
set(TEST_DEFINES WITH_TESTS SRCDIR="${CMAKE_CURRENT_SOURCE_DIR}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_link_libraries(${target_name}
|
target_link_libraries(${target_name} PRIVATE ${_DEP_PLUGINS} ${_TEST_DEPENDS})
|
||||||
PRIVATE ${_DEP_PLUGINS} ${depends} ${_TEST_DEPENDS}
|
|
||||||
PUBLIC ${public_depends}
|
|
||||||
)
|
|
||||||
target_include_directories(${target_name}
|
target_include_directories(${target_name}
|
||||||
PRIVATE ${_arg_INCLUDES} "${CMAKE_CURRENT_SOURCE_DIR}/.." "${CMAKE_CURRENT_BINARY_DIR}"
|
PRIVATE ${_arg_INCLUDES} "${CMAKE_CURRENT_SOURCE_DIR}/.." "${CMAKE_CURRENT_BINARY_DIR}"
|
||||||
"${CMAKE_BINARY_DIR}/src"
|
"${CMAKE_BINARY_DIR}/src"
|
||||||
@@ -301,14 +325,10 @@ function(add_qtc_plugin target_name)
|
|||||||
PRIVATE ${EXPORT_SYMBOL} ${DEFAULT_DEFINES} ${_arg_DEFINES} ${TEST_DEFINES}
|
PRIVATE ${EXPORT_SYMBOL} ${DEFAULT_DEFINES} ${_arg_DEFINES} ${TEST_DEFINES}
|
||||||
)
|
)
|
||||||
|
|
||||||
foreach(obj_lib IN LISTS object_lib_depends)
|
add_qtc_depends(${target_name}
|
||||||
target_compile_definitions(${target_name} PRIVATE $<TARGET_PROPERTY:${obj_lib},INTERFACE_COMPILE_DEFINITIONS>)
|
PRIVATE ${_arg_DEPENDS}
|
||||||
target_include_directories(${target_name} PRIVATE $<TARGET_PROPERTY:${obj_lib},INTERFACE_INCLUDE_DIRECTORIES>)
|
PUBLIC ${_arg_PUBLIC_DEPENDS}
|
||||||
endforeach()
|
)
|
||||||
foreach(obj_lib IN LISTS object_public_depends)
|
|
||||||
target_compile_definitions(${target_name} PUBLIC $<TARGET_PROPERTY:${obj_lib},INTERFACE_COMPILE_DEFINITIONS>)
|
|
||||||
target_include_directories(${target_name} PUBLIC $<TARGET_PROPERTY:${obj_lib},INTERFACE_INCLUDE_DIRECTORIES>)
|
|
||||||
endforeach()
|
|
||||||
|
|
||||||
set(plugin_dir "${IDE_PLUGIN_PATH}")
|
set(plugin_dir "${IDE_PLUGIN_PATH}")
|
||||||
if (_arg_PLUGIN_PATH)
|
if (_arg_PLUGIN_PATH)
|
||||||
@@ -340,6 +360,44 @@ function(add_qtc_plugin target_name)
|
|||||||
)
|
)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
function(extend_qtc_plugin target_name)
|
||||||
|
cmake_parse_arguments(_arg
|
||||||
|
""
|
||||||
|
"SOURCES_PREFIX"
|
||||||
|
"CONDITION;DEPENDS;PUBLIC_DEPENDS;DEFINES;INCLUDES;PUBLIC_INCLUDES;SOURCES;EXPLICIT_MOC"
|
||||||
|
${ARGN}
|
||||||
|
)
|
||||||
|
|
||||||
|
if (${_arg_UNPARSED_ARGUMENTS})
|
||||||
|
message(FATAL_ERROR "extend_qtc_plugin had unparsed arguments")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
qtc_plugin_enabled(_plugin_enabled ${target_name})
|
||||||
|
if (NOT _arg_CONDITION)
|
||||||
|
set(_arg_CONDITION ON)
|
||||||
|
endif()
|
||||||
|
if ((NOT (${_arg_CONDITION})) OR (NOT _plugin_enabled))
|
||||||
|
return()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
add_qtc_depends(${target_name}
|
||||||
|
PRIVATE ${_arg_DEPENDS}
|
||||||
|
PUBLIC ${_arg_PUBLIC_DEPENDS}
|
||||||
|
)
|
||||||
|
target_compile_definitions(${target_name} PRIVATE ${_arg_DEFINES})
|
||||||
|
target_include_directories(${target_name} PRIVATE ${_arg_INCLUDES} PUBLIC ${_arg_PUBLIC_INCLUDES})
|
||||||
|
|
||||||
|
if (_arg_SOURCES_PREFIX)
|
||||||
|
list(TRANSFORM _arg_SOURCES PREPEND "${_arg_SOURCES_PREFIX}/")
|
||||||
|
target_include_directories(${target_name} PUBLIC "${_arg_SOURCES_PREFIX}")
|
||||||
|
endif()
|
||||||
|
target_sources(${target_name} PRIVATE ${_arg_SOURCES})
|
||||||
|
|
||||||
|
foreach(file IN LISTS _arg_EXPLICIT_MOC)
|
||||||
|
set_explicit_moc(${target_name} "${file}")
|
||||||
|
endforeach()
|
||||||
|
endfunction()
|
||||||
|
|
||||||
function(add_qtc_executable name)
|
function(add_qtc_executable name)
|
||||||
cmake_parse_arguments(_arg "" "DESTINATION" "DEFINES;DEPENDS;INCLUDES;SOURCES;PROPERTIES" ${ARGN})
|
cmake_parse_arguments(_arg "" "DESTINATION" "DEFINES;DEPENDS;INCLUDES;SOURCES;PROPERTIES" ${ARGN})
|
||||||
|
|
||||||
|
|||||||
@@ -74,8 +74,7 @@ add_qtc_plugin(AutoTest
|
|||||||
EXPLICIT_MOC boost/boosttestsettingspage.h
|
EXPLICIT_MOC boost/boosttestsettingspage.h
|
||||||
)
|
)
|
||||||
|
|
||||||
if (WITH_TESTS)
|
extend_qtc_plugin(AutoTest
|
||||||
target_sources(AutoTest PRIVATE
|
CONDITION WITH_TESTS
|
||||||
autotestunittests.cpp autotestunittests.h
|
SOURCES autotestunittests.cpp autotestunittests.h
|
||||||
)
|
)
|
||||||
endif()
|
|
||||||
|
|||||||
@@ -47,11 +47,11 @@ add_qtc_plugin(ClangCodeModel
|
|||||||
EXPLICIT_MOC clangcodemodelplugin.h
|
EXPLICIT_MOC clangcodemodelplugin.h
|
||||||
)
|
)
|
||||||
|
|
||||||
if (WITH_TESTS)
|
extend_qtc_plugin(ClangCodeModel
|
||||||
target_sources(ClangCodeModel PRIVATE
|
CONDITION WITH_TESTS
|
||||||
|
SOURCES
|
||||||
test/clangautomationutils.cpp test/clangautomationutils.h
|
test/clangautomationutils.cpp test/clangautomationutils.h
|
||||||
test/clangbatchfileprocessor.cpp test/clangbatchfileprocessor.h
|
test/clangbatchfileprocessor.cpp test/clangbatchfileprocessor.h
|
||||||
test/clangcodecompletion_test.cpp test/clangcodecompletion_test.h
|
test/clangcodecompletion_test.cpp test/clangcodecompletion_test.h
|
||||||
test/data/clangtestdata.qrc
|
test/data/clangtestdata.qrc
|
||||||
)
|
)
|
||||||
endif()
|
|
||||||
|
|||||||
@@ -32,10 +32,10 @@ add_qtc_plugin(ClangTools
|
|||||||
clangtoolsutils.cpp clangtoolsutils.h
|
clangtoolsutils.cpp clangtoolsutils.h
|
||||||
)
|
)
|
||||||
|
|
||||||
if (WITH_TESTS)
|
extend_qtc_plugin(ClangTools
|
||||||
target_sources(ClangTools PRIVATE
|
CONDITION WITH_TESTS
|
||||||
|
SOURCES
|
||||||
clangtoolspreconfiguredsessiontests.cpp clangtoolspreconfiguredsessiontests.h
|
clangtoolspreconfiguredsessiontests.cpp clangtoolspreconfiguredsessiontests.h
|
||||||
clangtoolsunittests.cpp clangtoolsunittests.h
|
clangtoolsunittests.cpp clangtoolsunittests.h
|
||||||
clangtoolsunittests.qrc
|
clangtoolsunittests.qrc
|
||||||
)
|
)
|
||||||
endif()
|
|
||||||
|
|||||||
@@ -9,8 +9,7 @@ add_qtc_plugin(CompilationDatabaseProjectManager
|
|||||||
compilationdatabaseutils.cpp compilationdatabaseutils.h
|
compilationdatabaseutils.cpp compilationdatabaseutils.h
|
||||||
)
|
)
|
||||||
|
|
||||||
if (WITH_TESTS)
|
extend_qtc_plugin(CompilationDatabaseProjectManager
|
||||||
target_sources(CompilationDatabaseProjectManager PRIVATE
|
CONDITION WITH_TESTS
|
||||||
compilationdatabasetests.cpp compilationdatabasetests.h
|
SOURCES compilationdatabasetests.cpp compilationdatabasetests.h
|
||||||
)
|
)
|
||||||
endif()
|
|
||||||
|
|||||||
@@ -151,22 +151,29 @@ add_qtc_plugin(Core
|
|||||||
EXPLICIT_MOC dialogs/filepropertiesdialog.h
|
EXPLICIT_MOC dialogs/filepropertiesdialog.h
|
||||||
)
|
)
|
||||||
|
|
||||||
if (WITH_TESTS)
|
extend_qtc_plugin(Core
|
||||||
target_sources(Core PRIVATE
|
CONDITION WITH_TESTS
|
||||||
|
SOURCES
|
||||||
locator/locator_test.cpp
|
locator/locator_test.cpp
|
||||||
locator/locatorfiltertest.cpp locator/locatorfiltertest.h
|
locator/locatorfiltertest.cpp locator/locatorfiltertest.h
|
||||||
testdatadir.cpp testdatadir.h
|
testdatadir.cpp testdatadir.h
|
||||||
)
|
)
|
||||||
endif()
|
|
||||||
|
|
||||||
if (WIN32)
|
extend_qtc_plugin(Core
|
||||||
target_sources(Core PRIVATE progressmanager/progressmanager_win.cpp)
|
CONDITION WIN32
|
||||||
elseif (APPLE)
|
SOURCES progressmanager/progressmanager_win.cpp
|
||||||
find_library(FWAppKit AppKit)
|
)
|
||||||
target_link_libraries(Core PRIVATE ${FWAppKit})
|
|
||||||
target_sources(Core PRIVATE
|
find_library(FWAppKit AppKit)
|
||||||
|
extend_qtc_plugin(Core
|
||||||
|
CONDITION APPLE AND FWAppKit
|
||||||
|
DEPENDS ${FWAppKit}
|
||||||
|
SOURCES
|
||||||
progressmanager/progressmanager_mac.mm
|
progressmanager/progressmanager_mac.mm
|
||||||
locator/spotlightlocatorfilter.h locator/spotlightlocatorfilter.mm)
|
locator/spotlightlocatorfilter.h locator/spotlightlocatorfilter.mm
|
||||||
else()
|
)
|
||||||
target_sources(Core PRIVATE progressmanager/progressmanager_x11.cpp)
|
|
||||||
endif()
|
extend_qtc_plugin(Core
|
||||||
|
CONDITION (NOT WIN32) AND (NOT APPLE)
|
||||||
|
SOURCES progressmanager/progressmanager_x11.cpp
|
||||||
|
)
|
||||||
|
|||||||
@@ -31,8 +31,9 @@ add_qtc_plugin(CppEditor
|
|||||||
EXPLICIT_MOC cppeditor.h
|
EXPLICIT_MOC cppeditor.h
|
||||||
)
|
)
|
||||||
|
|
||||||
if (WITH_TESTS)
|
extend_qtc_plugin(CppEditor
|
||||||
target_sources(CppEditor PRIVATE
|
CONDITION WITH_TESTS
|
||||||
|
SOURCES
|
||||||
cppdoxygen_test.cpp cppdoxygen_test.h
|
cppdoxygen_test.cpp cppdoxygen_test.h
|
||||||
cppeditortestcase.cpp cppeditortestcase.h
|
cppeditortestcase.cpp cppeditortestcase.h
|
||||||
cppincludehierarchy_test.cpp
|
cppincludehierarchy_test.cpp
|
||||||
@@ -40,7 +41,7 @@ if (WITH_TESTS)
|
|||||||
cppuseselections_test.cpp
|
cppuseselections_test.cpp
|
||||||
fileandtokenactions_test.cpp
|
fileandtokenactions_test.cpp
|
||||||
followsymbol_switchmethoddecldef_test.cpp
|
followsymbol_switchmethoddecldef_test.cpp
|
||||||
)
|
EXPLICIT_MOC
|
||||||
set_explicit_moc(CppEditor cppdoxygen_test.h)
|
cppdoxygen_test.h
|
||||||
set_explicit_moc(CppEditor cppquickfix_test.h)
|
cppquickfix_test.h
|
||||||
endif()
|
)
|
||||||
|
|||||||
@@ -112,8 +112,9 @@ add_qtc_plugin(CppTools
|
|||||||
wrappablelineedit.cpp wrappablelineedit.h
|
wrappablelineedit.cpp wrappablelineedit.h
|
||||||
)
|
)
|
||||||
|
|
||||||
if (WITH_TESTS)
|
extend_qtc_plugin(CppTools
|
||||||
target_sources(CppTools PRIVATE
|
CONDITION WITH_TESTS
|
||||||
|
SOURCES
|
||||||
cppcodegen_test.cpp
|
cppcodegen_test.cpp
|
||||||
cppcompletion_test.cpp
|
cppcompletion_test.cpp
|
||||||
cppheadersource_test.cpp
|
cppheadersource_test.cpp
|
||||||
@@ -127,5 +128,4 @@ if (WITH_TESTS)
|
|||||||
modelmanagertesthelper.cpp modelmanagertesthelper.h
|
modelmanagertesthelper.cpp modelmanagertesthelper.h
|
||||||
symbolsearcher_test.cpp
|
symbolsearcher_test.cpp
|
||||||
typehierarchybuilder_test.cpp
|
typehierarchybuilder_test.cpp
|
||||||
)
|
)
|
||||||
endif()
|
|
||||||
|
|||||||
@@ -95,16 +95,15 @@ add_qtc_plugin(Debugger
|
|||||||
watchwindow.cpp watchwindow.h
|
watchwindow.cpp watchwindow.h
|
||||||
)
|
)
|
||||||
|
|
||||||
if (WIN32)
|
extend_qtc_plugin(Debugger
|
||||||
target_sources(Debugger PRIVATE
|
CONDITION WIN32
|
||||||
registerpostmortemaction.cpp registerpostmortemaction.h
|
SOURCES registerpostmortemaction.cpp registerpostmortemaction.h
|
||||||
)
|
DEFINES UNICODE _UNICODE
|
||||||
target_compile_definitions(Debugger PRIVATE UNICODE _UNICODE)
|
)
|
||||||
endif()
|
|
||||||
|
|
||||||
if (WITH_TESTS)
|
extend_qtc_plugin(Debugger
|
||||||
target_sources(Debugger PRIVATE
|
CONDITION WITH_TESTS
|
||||||
|
SOURCES
|
||||||
debuggerunittests.qrc
|
debuggerunittests.qrc
|
||||||
unit-tests/simple/main.cpp
|
unit-tests/simple/main.cpp
|
||||||
)
|
)
|
||||||
endif()
|
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ add_qtc_plugin(Designer
|
|||||||
settingspage.cpp settingspage.h
|
settingspage.cpp settingspage.h
|
||||||
)
|
)
|
||||||
|
|
||||||
if (WITH_TESTS)
|
extend_qtc_plugin(Designer
|
||||||
target_sources(Designer PRIVATE gotoslot_test.cpp)
|
CONDITION WITH_TESTS AND TARGET Qt5::DesignerComponents AND TARGET Qt5::Designer
|
||||||
endif()
|
SOURCES gotoslot_test.cpp
|
||||||
|
)
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ add_qtc_plugin(FakeVim
|
|||||||
fakevimtr.h
|
fakevimtr.h
|
||||||
)
|
)
|
||||||
|
|
||||||
if (WITH_TESTS)
|
extend_qtc_plugin(FakeVim
|
||||||
target_sources(FakeVim PRIVATE fakevim_test.cpp)
|
CONDITION WITH_TESTS
|
||||||
endif()
|
SOURCES fakevim_test.cpp
|
||||||
|
)
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ add_qtc_plugin(GenericProjectManager
|
|||||||
genericprojectwizard.cpp genericprojectwizard.h
|
genericprojectwizard.cpp genericprojectwizard.h
|
||||||
)
|
)
|
||||||
|
|
||||||
if (WITH_TESTS)
|
extend_qtc_plugin(GenericProjectManager
|
||||||
target_sources(GenericProjectManager PRIVATE genericprojectplugin_test.cpp)
|
CONDITION WITH_TESTS
|
||||||
endif()
|
SOURCES genericprojectplugin_test.cpp
|
||||||
|
)
|
||||||
|
|||||||
@@ -29,17 +29,22 @@ add_qtc_plugin(Help
|
|||||||
xbelsupport.cpp xbelsupport.h
|
xbelsupport.cpp xbelsupport.h
|
||||||
)
|
)
|
||||||
|
|
||||||
if (APPLE)
|
find_library(FWWebKit WebKit)
|
||||||
find_library(FWWebKit WebKit)
|
find_library(FWAppKit AppKit)
|
||||||
find_library(FWAppKit AppKit)
|
extend_qtc_plugin(Help
|
||||||
target_link_libraries(Help PRIVATE ${FWWebKit} ${FWAppKit})
|
CONDITION APPLE AND FWWebKit AND FWAppKit
|
||||||
target_compile_definitions(Help PRIVATE QTC_MAC_NATIVE_HELPVIEWER)
|
DEPENDS ${FWWebKit} ${FWAppKit}
|
||||||
target_sources(Help PRIVATE macwebkithelpviewer.h macwebkithelpviewer.mm)
|
DEFINES QTC_MAC_NATIVE_HELPVIEWER
|
||||||
endif()
|
SOURCES
|
||||||
|
macwebkithelpviewer.h
|
||||||
|
macwebkithelpviewer.mm
|
||||||
|
)
|
||||||
|
|
||||||
find_package(Qt5WebEngineWidgets QUIET)
|
find_package(Qt5WebEngineWidgets QUIET)
|
||||||
|
extend_qtc_plugin(Help
|
||||||
if (TARGET Qt5::WebEngineWidgets)
|
CONDITION TARGET Qt5::WebEngineWidgets
|
||||||
target_sources(Help PRIVATE webenginehelpviewer.cpp webenginehelpviewer.h)
|
DEPENDS Qt5::WebEngineWidgets
|
||||||
target_link_libraries(Help PRIVATE Qt5::WebEngineWidgets)
|
SOURCES
|
||||||
endif()
|
webenginehelpviewer.cpp
|
||||||
|
webenginehelpviewer.h
|
||||||
|
)
|
||||||
|
|||||||
@@ -26,8 +26,9 @@ add_qtc_plugin(Ios
|
|||||||
simulatoroperationdialog.cpp simulatoroperationdialog.h simulatoroperationdialog.ui
|
simulatoroperationdialog.cpp simulatoroperationdialog.h simulatoroperationdialog.ui
|
||||||
)
|
)
|
||||||
|
|
||||||
if (APPLE)
|
find_library(FWCoreFoundation CoreFoundation)
|
||||||
find_library(FWCoreFoundation CoreFoundation)
|
find_library(FWIOKit IOKit)
|
||||||
find_library(FWIOKit IOKit)
|
extend_qtc_plugin(Ios
|
||||||
target_link_libraries(Ios PRIVATE ${FWCoreFoundation} ${FWIOKit})
|
CONDITION APPLE AND FWCoreFoundation AND FWIOKit
|
||||||
endif()
|
DEPENDS ${FWCoreFoundation} ${FWIOKit}
|
||||||
|
)
|
||||||
|
|||||||
@@ -32,10 +32,10 @@ add_qtc_plugin(PerfProfiler
|
|||||||
perftracepointdialog.cpp perftracepointdialog.h perftracepointdialog.ui
|
perftracepointdialog.cpp perftracepointdialog.h perftracepointdialog.ui
|
||||||
)
|
)
|
||||||
|
|
||||||
if (WITH_TESTS)
|
extend_qtc_plugin(PerfProfiler
|
||||||
target_sources(PerfProfiler PRIVATE
|
CONDITION WITH_TESTS
|
||||||
|
SOURCES
|
||||||
tests/perfprofilertracefile_test.cpp tests/perfprofilertracefile_test.h
|
tests/perfprofilertracefile_test.cpp tests/perfprofilertracefile_test.h
|
||||||
tests/perfresourcecounter_test.cpp tests/perfresourcecounter_test.h
|
tests/perfresourcecounter_test.cpp tests/perfresourcecounter_test.h
|
||||||
tests/tests.qrc
|
tests/tests.qrc
|
||||||
)
|
)
|
||||||
endif()
|
|
||||||
|
|||||||
@@ -183,26 +183,31 @@ add_qtc_plugin(ProjectExplorer
|
|||||||
if (TARGET libclang)
|
if (TARGET libclang)
|
||||||
set(CLANG_BINDIR "$<TARGET_FILE_DIR:libclang>")
|
set(CLANG_BINDIR "$<TARGET_FILE_DIR:libclang>")
|
||||||
endif()
|
endif()
|
||||||
target_compile_definitions(ProjectExplorer PRIVATE CLANG_BINDIR="${CLANG_BINDIR}")
|
extend_qtc_plugin(ProjectExplorer
|
||||||
|
DEFINES "CLANG_BINDIR=\"${CLANG_BINDIR}\""
|
||||||
|
)
|
||||||
|
|
||||||
if (WIN32)
|
extend_qtc_plugin(ProjectExplorer
|
||||||
target_sources(ProjectExplorer PRIVATE
|
CONDITION WIN32
|
||||||
windebuginterface.cpp windebuginterface.h)
|
SOURCES windebuginterface.cpp windebuginterface.h
|
||||||
target_compile_definitions(ProjectExplorer PRIVATE UNICODE _UNICODE)
|
DEFINES UNICODE _UNICODE
|
||||||
endif()
|
)
|
||||||
|
|
||||||
if (journald)
|
extend_qtc_plugin(ProjectExplorer
|
||||||
target_sources(ProjectExplorer PRIVATE
|
CONDITION journald
|
||||||
journaldwatcher.cpp journaldwatcher.h)
|
DEPENDS systemd
|
||||||
target_compile_definitions(ProjectExplorer PRIVATE WITH_JOURNALD)
|
SOURCES journaldwatcher.cpp journaldwatcher.h
|
||||||
target_link_libraries(ProjectExplorer PRIVATE systemd)
|
DEFINES WITH_JOURNALD
|
||||||
endif()
|
)
|
||||||
|
|
||||||
if (WITH_TESTS)
|
extend_qtc_plugin(ProjectExplorer
|
||||||
target_sources(ProjectExplorer PRIVATE
|
CONDITION WITH_TESTS
|
||||||
|
SOURCES
|
||||||
jsonwizard/jsonwizard_test.cpp
|
jsonwizard/jsonwizard_test.cpp
|
||||||
outputparser_test.cpp outputparser_test.h
|
outputparser_test.cpp outputparser_test.h
|
||||||
)
|
)
|
||||||
|
qtc_plugin_enabled(_projectexplorer_enabled ProjectExplorer)
|
||||||
|
if (WITH_TESTS AND _projectexplorer_enabled)
|
||||||
set_source_files_properties(jsonwizard/jsonwizard_test.cpp
|
set_source_files_properties(jsonwizard/jsonwizard_test.cpp
|
||||||
PROPERTIES HEADER_FILE_ONLY ON
|
PROPERTIES HEADER_FILE_ONLY ON
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ if (APPLE)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_qtc_plugin(componentsplugin
|
add_qtc_plugin(componentsplugin
|
||||||
|
CONDITION TARGET QmlDesigner
|
||||||
DEPENDS Core QmlDesigner Utils Qt5::Qml
|
DEPENDS Core QmlDesigner Utils Qt5::Qml
|
||||||
DEFINES COMPONENTS_LIBRARY
|
DEFINES COMPONENTS_LIBRARY
|
||||||
INCLUDES ${CMAKE_CURRENT_LIST_DIR}/designercore/include
|
INCLUDES ${CMAKE_CURRENT_LIST_DIR}/designercore/include
|
||||||
@@ -51,6 +52,7 @@ add_qtc_plugin(componentsplugin
|
|||||||
)
|
)
|
||||||
|
|
||||||
add_qtc_plugin(qtquickplugin
|
add_qtc_plugin(qtquickplugin
|
||||||
|
CONDITION TARGET QmlDesigner
|
||||||
DEPENDS Core QmlDesigner Utils Qt5::Qml
|
DEPENDS Core QmlDesigner Utils Qt5::Qml
|
||||||
DEFINES QTQUICK_LIBRARY
|
DEFINES QTQUICK_LIBRARY
|
||||||
INCLUDES ${CMAKE_CURRENT_LIST_DIR}/designercore/include
|
INCLUDES ${CMAKE_CURRENT_LIST_DIR}/designercore/include
|
||||||
@@ -61,15 +63,9 @@ add_qtc_plugin(qtquickplugin
|
|||||||
SKIP_DEBUG_CMAKE_FILE_CHECK
|
SKIP_DEBUG_CMAKE_FILE_CHECK
|
||||||
)
|
)
|
||||||
|
|
||||||
function(extend_qtc_plugin name directory)
|
extend_qtc_plugin(QmlDesigner
|
||||||
foreach(source ${ARGN})
|
SOURCES_PREFIX ../../../share/qtcreator/qml/qmlpuppet/container
|
||||||
list(APPEND source_list ${directory}/${source})
|
SOURCES
|
||||||
endforeach()
|
|
||||||
target_sources(${name} PRIVATE ${source_list})
|
|
||||||
target_include_directories(${name} PUBLIC ${directory})
|
|
||||||
endfunction(extend_qtc_plugin)
|
|
||||||
|
|
||||||
extend_qtc_plugin(QmlDesigner ../../../share/qtcreator/qml/qmlpuppet/container
|
|
||||||
addimportcontainer.cpp addimportcontainer.h
|
addimportcontainer.cpp addimportcontainer.h
|
||||||
idcontainer.cpp idcontainer.h
|
idcontainer.cpp idcontainer.h
|
||||||
imagecontainer.cpp imagecontainer.h
|
imagecontainer.cpp imagecontainer.h
|
||||||
@@ -84,19 +80,23 @@ extend_qtc_plugin(QmlDesigner ../../../share/qtcreator/qml/qmlpuppet/container
|
|||||||
)
|
)
|
||||||
|
|
||||||
if (UNIX)
|
if (UNIX)
|
||||||
extend_qtc_plugin(QmlDesigner ../../../share/qtcreator/qml/qmlpuppet/container
|
extend_qtc_plugin(QmlDesigner
|
||||||
sharedmemory_unix.cpp
|
SOURCES_PREFIX ../../../share/qtcreator/qml/qmlpuppet/container
|
||||||
|
SOURCES sharedmemory_unix.cpp
|
||||||
)
|
)
|
||||||
if (NOT APPLE)
|
if (NOT APPLE)
|
||||||
target_link_libraries(QmlDesigner PRIVATE rt)
|
extend_qtc_plugin(QmlDesigner DEPENDS rt)
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
extend_qtc_plugin(QmlDesigner ../../../share/qtcreator/qml/qmlpuppet/container
|
extend_qtc_plugin(QmlDesigner
|
||||||
sharedmemory_qt.cpp
|
SOURCES_PREFIX ../../../share/qtcreator/qml/qmlpuppet/container
|
||||||
|
SOURCES sharedmemory_qt.cpp
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
extend_qtc_plugin(QmlDesigner ../../../share/qtcreator/qml/qmlpuppet/commands
|
extend_qtc_plugin(QmlDesigner
|
||||||
|
SOURCES_PREFIX ../../../share/qtcreator/qml/qmlpuppet/commands
|
||||||
|
SOURCES
|
||||||
changeauxiliarycommand.cpp changeauxiliarycommand.h
|
changeauxiliarycommand.cpp changeauxiliarycommand.h
|
||||||
changebindingscommand.cpp changebindingscommand.h
|
changebindingscommand.cpp changebindingscommand.h
|
||||||
changefileurlcommand.cpp changefileurlcommand.h
|
changefileurlcommand.cpp changefileurlcommand.h
|
||||||
@@ -125,7 +125,9 @@ extend_qtc_plugin(QmlDesigner ../../../share/qtcreator/qml/qmlpuppet/commands
|
|||||||
valueschangedcommand.cpp valueschangedcommand.h
|
valueschangedcommand.cpp valueschangedcommand.h
|
||||||
)
|
)
|
||||||
|
|
||||||
extend_qtc_plugin(QmlDesigner ../../../share/qtcreator/qml/qmlpuppet/interfaces
|
extend_qtc_plugin(QmlDesigner
|
||||||
|
SOURCES_PREFIX ../../../share/qtcreator/qml/qmlpuppet/interfaces
|
||||||
|
SOURCES
|
||||||
nodeinstanceserverinterface.cpp
|
nodeinstanceserverinterface.cpp
|
||||||
commondefines.h
|
commondefines.h
|
||||||
nodeinstanceclientinterface.h
|
nodeinstanceclientinterface.h
|
||||||
@@ -133,11 +135,15 @@ extend_qtc_plugin(QmlDesigner ../../../share/qtcreator/qml/qmlpuppet/interfaces
|
|||||||
nodeinstanceserverinterface.h
|
nodeinstanceserverinterface.h
|
||||||
)
|
)
|
||||||
|
|
||||||
extend_qtc_plugin(QmlDesigner ../../../share/qtcreator/qml/qmlpuppet/types
|
extend_qtc_plugin(QmlDesigner
|
||||||
enumeration.cpp enumeration.h
|
SOURCES_PREFIX ../../../share/qtcreator/qml/qmlpuppet/types
|
||||||
|
SOURCES enumeration.cpp enumeration.h
|
||||||
)
|
)
|
||||||
|
|
||||||
extend_qtc_plugin(QmlDesigner components/componentcore
|
extend_qtc_plugin(QmlDesigner
|
||||||
|
SOURCES_PREFIX components/componentcore
|
||||||
|
PUBLIC_INCLUDES components/componentcore
|
||||||
|
SOURCES
|
||||||
abstractaction.cpp abstractaction.h
|
abstractaction.cpp abstractaction.h
|
||||||
abstractactiongroup.cpp abstractactiongroup.h
|
abstractactiongroup.cpp abstractactiongroup.h
|
||||||
actioninterface.h
|
actioninterface.h
|
||||||
@@ -160,12 +166,16 @@ extend_qtc_plugin(QmlDesigner components/componentcore
|
|||||||
zoomaction.cpp zoomaction.h
|
zoomaction.cpp zoomaction.h
|
||||||
)
|
)
|
||||||
|
|
||||||
extend_qtc_plugin(QmlDesigner components/debugview
|
extend_qtc_plugin(QmlDesigner
|
||||||
|
SOURCES_PREFIX components/debugview
|
||||||
|
SOURCES
|
||||||
debugview.cpp debugview.h
|
debugview.cpp debugview.h
|
||||||
debugviewwidget.cpp debugviewwidget.h debugviewwidget.ui
|
debugviewwidget.cpp debugviewwidget.h debugviewwidget.ui
|
||||||
)
|
)
|
||||||
|
|
||||||
extend_qtc_plugin(QmlDesigner components/formeditor
|
extend_qtc_plugin(QmlDesigner
|
||||||
|
SOURCES_PREFIX components/formeditor
|
||||||
|
SOURCES
|
||||||
abstractcustomtool.cpp abstractcustomtool.h
|
abstractcustomtool.cpp abstractcustomtool.h
|
||||||
abstractformeditortool.cpp abstractformeditortool.h
|
abstractformeditortool.cpp abstractformeditortool.h
|
||||||
anchorindicator.cpp anchorindicator.h
|
anchorindicator.cpp anchorindicator.h
|
||||||
@@ -208,7 +218,9 @@ extend_qtc_plugin(QmlDesigner components/formeditor
|
|||||||
toolbox.cpp toolbox.h
|
toolbox.cpp toolbox.h
|
||||||
)
|
)
|
||||||
|
|
||||||
extend_qtc_plugin(QmlDesigner components/importmanager
|
extend_qtc_plugin(QmlDesigner
|
||||||
|
SOURCES_PREFIX components/importmanager
|
||||||
|
SOURCES
|
||||||
importlabel.cpp importlabel.h
|
importlabel.cpp importlabel.h
|
||||||
importmanager.qrc
|
importmanager.qrc
|
||||||
importmanagercombobox.cpp importmanagercombobox.h
|
importmanagercombobox.cpp importmanagercombobox.h
|
||||||
@@ -216,7 +228,9 @@ extend_qtc_plugin(QmlDesigner components/importmanager
|
|||||||
importswidget.cpp importswidget.h
|
importswidget.cpp importswidget.h
|
||||||
)
|
)
|
||||||
|
|
||||||
extend_qtc_plugin(QmlDesigner components/integration
|
extend_qtc_plugin(QmlDesigner
|
||||||
|
SOURCES_PREFIX components/integration
|
||||||
|
SOURCES
|
||||||
componentaction.cpp componentaction.h
|
componentaction.cpp componentaction.h
|
||||||
componentview.cpp componentview.h
|
componentview.cpp componentview.h
|
||||||
designdocument.cpp designdocument.h
|
designdocument.cpp designdocument.h
|
||||||
@@ -225,7 +239,9 @@ extend_qtc_plugin(QmlDesigner components/integration
|
|||||||
utilitypanelcontroller.cpp utilitypanelcontroller.h
|
utilitypanelcontroller.cpp utilitypanelcontroller.h
|
||||||
)
|
)
|
||||||
|
|
||||||
extend_qtc_plugin(QmlDesigner components/itemlibrary
|
extend_qtc_plugin(QmlDesigner
|
||||||
|
SOURCES_PREFIX components/itemlibrary
|
||||||
|
SOURCES
|
||||||
customfilesystemmodel.cpp customfilesystemmodel.h
|
customfilesystemmodel.cpp customfilesystemmodel.h
|
||||||
itemlibrary.qrc
|
itemlibrary.qrc
|
||||||
itemlibraryimageprovider.cpp itemlibraryimageprovider.h
|
itemlibraryimageprovider.cpp itemlibraryimageprovider.h
|
||||||
@@ -238,7 +254,9 @@ extend_qtc_plugin(QmlDesigner components/itemlibrary
|
|||||||
itemlibrarywidget.cpp itemlibrarywidget.h
|
itemlibrarywidget.cpp itemlibrarywidget.h
|
||||||
)
|
)
|
||||||
|
|
||||||
extend_qtc_plugin(QmlDesigner components/navigator
|
extend_qtc_plugin(QmlDesigner
|
||||||
|
SOURCES_PREFIX components/navigator
|
||||||
|
SOURCES
|
||||||
iconcheckboxitemdelegate.cpp iconcheckboxitemdelegate.h
|
iconcheckboxitemdelegate.cpp iconcheckboxitemdelegate.h
|
||||||
nameitemdelegate.cpp nameitemdelegate.h
|
nameitemdelegate.cpp nameitemdelegate.h
|
||||||
navigator.qrc
|
navigator.qrc
|
||||||
@@ -249,7 +267,9 @@ extend_qtc_plugin(QmlDesigner components/navigator
|
|||||||
navigatorwidget.cpp navigatorwidget.h
|
navigatorwidget.cpp navigatorwidget.h
|
||||||
)
|
)
|
||||||
|
|
||||||
extend_qtc_plugin(QmlDesigner components/propertyeditor
|
extend_qtc_plugin(QmlDesigner
|
||||||
|
SOURCES_PREFIX components/propertyeditor
|
||||||
|
SOURCES
|
||||||
designerpropertymap.cpp designerpropertymap.h
|
designerpropertymap.cpp designerpropertymap.h
|
||||||
fileresourcesmodel.cpp fileresourcesmodel.h
|
fileresourcesmodel.cpp fileresourcesmodel.h
|
||||||
gradientmodel.cpp gradientmodel.h
|
gradientmodel.cpp gradientmodel.h
|
||||||
@@ -268,24 +288,31 @@ extend_qtc_plugin(QmlDesigner components/propertyeditor
|
|||||||
quick2propertyeditorview.cpp quick2propertyeditorview.h
|
quick2propertyeditorview.cpp quick2propertyeditorview.h
|
||||||
)
|
)
|
||||||
|
|
||||||
extend_qtc_plugin(QmlDesigner components
|
extend_qtc_plugin(QmlDesigner
|
||||||
resources/resources.qrc
|
SOURCES_PREFIX components
|
||||||
|
SOURCES resources/resources.qrc
|
||||||
)
|
)
|
||||||
|
|
||||||
extend_qtc_plugin(QmlDesigner components/stateseditor
|
extend_qtc_plugin(QmlDesigner
|
||||||
|
SOURCES_PREFIX components/stateseditor
|
||||||
|
SOURCES
|
||||||
stateseditorimageprovider.cpp stateseditorimageprovider.h
|
stateseditorimageprovider.cpp stateseditorimageprovider.h
|
||||||
stateseditormodel.cpp stateseditormodel.h
|
stateseditormodel.cpp stateseditormodel.h
|
||||||
stateseditorview.cpp stateseditorview.h
|
stateseditorview.cpp stateseditorview.h
|
||||||
stateseditorwidget.cpp stateseditorwidget.h
|
stateseditorwidget.cpp stateseditorwidget.h
|
||||||
)
|
)
|
||||||
|
|
||||||
extend_qtc_plugin(QmlDesigner components/texteditor
|
extend_qtc_plugin(QmlDesigner
|
||||||
|
SOURCES_PREFIX components/texteditor
|
||||||
|
SOURCES
|
||||||
texteditorstatusbar.cpp texteditorstatusbar.h
|
texteditorstatusbar.cpp texteditorstatusbar.h
|
||||||
texteditorview.cpp texteditorview.h
|
texteditorview.cpp texteditorview.h
|
||||||
texteditorwidget.cpp texteditorwidget.h
|
texteditorwidget.cpp texteditorwidget.h
|
||||||
)
|
)
|
||||||
|
|
||||||
extend_qtc_plugin(QmlDesigner designercore
|
extend_qtc_plugin(QmlDesigner
|
||||||
|
SOURCES_PREFIX designercore
|
||||||
|
SOURCES
|
||||||
exceptions/exception.cpp
|
exceptions/exception.cpp
|
||||||
exceptions/invalidargumentexception.cpp
|
exceptions/invalidargumentexception.cpp
|
||||||
exceptions/invalididexception.cpp
|
exceptions/invalididexception.cpp
|
||||||
@@ -382,7 +409,9 @@ extend_qtc_plugin(QmlDesigner designercore
|
|||||||
include/viewmanager.h
|
include/viewmanager.h
|
||||||
)
|
)
|
||||||
|
|
||||||
extend_qtc_plugin(QmlDesigner designercore/instances
|
extend_qtc_plugin(QmlDesigner
|
||||||
|
SOURCES_PREFIX designercore/instances
|
||||||
|
SOURCES
|
||||||
nodeinstance.cpp
|
nodeinstance.cpp
|
||||||
nodeinstanceserverproxy.cpp nodeinstanceserverproxy.h
|
nodeinstanceserverproxy.cpp nodeinstanceserverproxy.h
|
||||||
nodeinstanceview.cpp
|
nodeinstanceview.cpp
|
||||||
@@ -391,7 +420,9 @@ extend_qtc_plugin(QmlDesigner designercore/instances
|
|||||||
puppetdialog.cpp puppetdialog.h puppetdialog.ui
|
puppetdialog.cpp puppetdialog.h puppetdialog.ui
|
||||||
)
|
)
|
||||||
|
|
||||||
extend_qtc_plugin(QmlDesigner designercore
|
extend_qtc_plugin(QmlDesigner
|
||||||
|
SOURCES_PREFIX designercore
|
||||||
|
SOURCES
|
||||||
metainfo/itemlibraryinfo.cpp
|
metainfo/itemlibraryinfo.cpp
|
||||||
metainfo/metainfo.cpp
|
metainfo/metainfo.cpp
|
||||||
metainfo/metainforeader.cpp
|
metainfo/metainforeader.cpp
|
||||||
@@ -451,11 +482,14 @@ extend_qtc_plugin(QmlDesigner designercore
|
|||||||
rewritertransaction.cpp rewritertransaction.h
|
rewritertransaction.cpp rewritertransaction.h
|
||||||
)
|
)
|
||||||
|
|
||||||
extend_qtc_plugin(QmlDesigner qmldesignerextension
|
extend_qtc_plugin(QmlDesigner
|
||||||
colortool/colortool.cpp colortool/colortool.h
|
SOURCES_PREFIX qmldesignerextension/colortool
|
||||||
|
SOURCES colortool.cpp colortool.h
|
||||||
)
|
)
|
||||||
|
|
||||||
extend_qtc_plugin(QmlDesigner qmldesignerextension/connectioneditor
|
extend_qtc_plugin(QmlDesigner
|
||||||
|
SOURCES_PREFIX qmldesignerextension/connectioneditor
|
||||||
|
SOURCES
|
||||||
addnewbackenddialog.cpp addnewbackenddialog.h addnewbackenddialog.ui
|
addnewbackenddialog.cpp addnewbackenddialog.h addnewbackenddialog.ui
|
||||||
backendmodel.cpp backendmodel.h
|
backendmodel.cpp backendmodel.h
|
||||||
bindingmodel.cpp bindingmodel.h
|
bindingmodel.cpp bindingmodel.h
|
||||||
@@ -467,7 +501,9 @@ extend_qtc_plugin(QmlDesigner qmldesignerextension/connectioneditor
|
|||||||
dynamicpropertiesmodel.cpp dynamicpropertiesmodel.h
|
dynamicpropertiesmodel.cpp dynamicpropertiesmodel.h
|
||||||
)
|
)
|
||||||
|
|
||||||
extend_qtc_plugin(QmlDesigner qmldesignerextension
|
extend_qtc_plugin(QmlDesigner
|
||||||
|
SOURCES_PREFIX qmldesignerextension
|
||||||
|
SOURCES
|
||||||
pathtool/controlpoint.cpp pathtool/controlpoint.h
|
pathtool/controlpoint.cpp pathtool/controlpoint.h
|
||||||
pathtool/cubicsegment.cpp pathtool/cubicsegment.h
|
pathtool/cubicsegment.cpp pathtool/cubicsegment.h
|
||||||
pathtool/pathitem.cpp pathtool/pathitem.h
|
pathtool/pathitem.cpp pathtool/pathitem.h
|
||||||
@@ -485,7 +521,9 @@ extend_qtc_plugin(QmlDesigner qmldesignerextension
|
|||||||
texttool/texttool.cpp texttool/texttool.h
|
texttool/texttool.cpp texttool/texttool.h
|
||||||
)
|
)
|
||||||
|
|
||||||
extend_qtc_plugin(QmlDesigner qmldesignerextension/timelineeditor
|
extend_qtc_plugin(QmlDesigner
|
||||||
|
SOURCES_PREFIX qmldesignerextension/timelineeditor
|
||||||
|
SOURCES
|
||||||
canvas.cpp canvas.h
|
canvas.cpp canvas.h
|
||||||
canvasstyledialog.cpp canvasstyledialog.h
|
canvasstyledialog.cpp canvasstyledialog.h
|
||||||
easingcurve.cpp easingcurve.h
|
easingcurve.cpp easingcurve.h
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ add_qtc_plugin(QmlJSTools
|
|||||||
qmljstoolssettings.cpp qmljstoolssettings.h
|
qmljstoolssettings.cpp qmljstoolssettings.h
|
||||||
)
|
)
|
||||||
|
|
||||||
if (WITH_TESTS)
|
extend_qtc_plugin(QmlJSTools
|
||||||
target_sources(QmlJSTools PRIVATE qmljstools_test.cpp)
|
CONDITION WITH_TESTS
|
||||||
endif()
|
SOURCES qmljstools_test.cpp
|
||||||
|
)
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ add_qtc_plugin(QmlPreview
|
|||||||
qmlpreview_global.h
|
qmlpreview_global.h
|
||||||
)
|
)
|
||||||
|
|
||||||
if (WITH_TESTS)
|
extend_qtc_plugin(QmlPreview
|
||||||
target_sources(QmlPreview PRIVATE
|
CONDITION WITH_TESTS
|
||||||
|
SOURCES
|
||||||
tests/qmlpreviewclient_test.cpp tests/qmlpreviewclient_test.h
|
tests/qmlpreviewclient_test.cpp tests/qmlpreviewclient_test.h
|
||||||
tests/qmlpreviewplugin_test.cpp tests/qmlpreviewplugin_test.h
|
tests/qmlpreviewplugin_test.cpp tests/qmlpreviewplugin_test.h
|
||||||
)
|
)
|
||||||
endif()
|
|
||||||
|
|||||||
@@ -47,8 +47,9 @@ add_qtc_plugin(QmlProfiler
|
|||||||
scenegraphtimelinemodel.cpp scenegraphtimelinemodel.h
|
scenegraphtimelinemodel.cpp scenegraphtimelinemodel.h
|
||||||
)
|
)
|
||||||
|
|
||||||
if (WITH_TESTS)
|
extend_qtc_plugin(QmlProfiler
|
||||||
target_sources(QmlProfiler PRIVATE
|
CONDITION WITH_TESTS
|
||||||
|
SOURCES
|
||||||
tests/debugmessagesmodel_test.cpp tests/debugmessagesmodel_test.h
|
tests/debugmessagesmodel_test.cpp tests/debugmessagesmodel_test.h
|
||||||
tests/fakedebugserver.cpp tests/fakedebugserver.h
|
tests/fakedebugserver.cpp tests/fakedebugserver.h
|
||||||
tests/flamegraphmodel_test.cpp tests/flamegraphmodel_test.h
|
tests/flamegraphmodel_test.cpp tests/flamegraphmodel_test.h
|
||||||
@@ -71,5 +72,4 @@ if (WITH_TESTS)
|
|||||||
tests/qmlprofilertraceclient_test.cpp tests/qmlprofilertraceclient_test.h
|
tests/qmlprofilertraceclient_test.cpp tests/qmlprofilertraceclient_test.h
|
||||||
tests/qmlprofilertraceview_test.cpp tests/qmlprofilertraceview_test.h
|
tests/qmlprofilertraceview_test.cpp tests/qmlprofilertraceview_test.h
|
||||||
tests/tests.qrc
|
tests/tests.qrc
|
||||||
)
|
)
|
||||||
endif()
|
|
||||||
|
|||||||
@@ -102,6 +102,7 @@ add_qtc_plugin(TextEditor
|
|||||||
typingsettings.cpp typingsettings.h
|
typingsettings.cpp typingsettings.h
|
||||||
)
|
)
|
||||||
|
|
||||||
if (WITH_TESTS)
|
extend_qtc_plugin(TextEditor
|
||||||
target_sources(TextEditor PRIVATE texteditor_test.cpp)
|
CONDITION WITH_TESTS
|
||||||
endif()
|
SOURCES texteditor_test.cpp
|
||||||
|
)
|
||||||
|
|||||||
@@ -45,19 +45,19 @@ add_qtc_plugin(Valgrind
|
|||||||
xmlprotocol/threadedparser.cpp xmlprotocol/threadedparser.h
|
xmlprotocol/threadedparser.cpp xmlprotocol/threadedparser.h
|
||||||
)
|
)
|
||||||
|
|
||||||
if (WIN32)
|
extend_qtc_plugin(Valgrind
|
||||||
target_compile_definitions(Valgrind PRIVATE UNICODE _UNICODE)
|
CONDITION WIN32
|
||||||
endif()
|
DEFINES UNICODE _UNICODE
|
||||||
|
)
|
||||||
|
|
||||||
if (WITH_TESTS)
|
extend_qtc_plugin(Valgrind
|
||||||
target_sources(Valgrind PRIVATE
|
CONDITION WITH_TESTS
|
||||||
|
SOURCES
|
||||||
valgrindmemcheckparsertest.cpp valgrindmemcheckparsertest.h
|
valgrindmemcheckparsertest.cpp valgrindmemcheckparsertest.h
|
||||||
valgrindtestrunnertest.cpp valgrindtestrunnertest.h
|
valgrindtestrunnertest.cpp valgrindtestrunnertest.h
|
||||||
)
|
DEFINES
|
||||||
target_compile_definitions(Valgrind PRIVATE
|
|
||||||
PARSERTESTS_DATA_DIR="${CMAKE_CURRENT_SOURCE_DIR}/unit_testdata"
|
PARSERTESTS_DATA_DIR="${CMAKE_CURRENT_SOURCE_DIR}/unit_testdata"
|
||||||
VALGRIND_FAKE_PATH="${PROJECT_SOURCE_DIR}/src/tools/valgrindfake"
|
VALGRIND_FAKE_PATH="${PROJECT_SOURCE_DIR}/src/tools/valgrindfake"
|
||||||
TESTRUNNER_SRC_DIR="${PROJECT_SOURCE_DIR}/tests/auto/valgrind/memcheck/testapps"
|
TESTRUNNER_SRC_DIR="${PROJECT_SOURCE_DIR}/tests/auto/valgrind/memcheck/testapps"
|
||||||
TESTRUNNER_APP_DIR="${PROJECT_BINARY_DIR}/tests/auto/valgrind/memcheck/testapps"
|
TESTRUNNER_APP_DIR="${PROJECT_BINARY_DIR}/tests/auto/valgrind/memcheck/testapps"
|
||||||
)
|
)
|
||||||
endif()
|
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ add_qtc_plugin(VcsBase
|
|||||||
wizard/vcsjsextension.cpp wizard/vcsjsextension.h
|
wizard/vcsjsextension.cpp wizard/vcsjsextension.h
|
||||||
)
|
)
|
||||||
|
|
||||||
if (WITH_TESTS)
|
extend_qtc_plugin(VcsBase
|
||||||
target_compile_definitions(VcsBase PRIVATE SRC_DIR="${IDE_SOURCE_TREE}")
|
CONDITION WITH_TESTS
|
||||||
endif()
|
DEFINES SRC_DIR="${IDE_SOURCE_TREE}"
|
||||||
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user