diff options
Diffstat (limited to 'src')
136 files changed, 5157 insertions, 140 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000000..de0877e9eb --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,431 @@ +# Not in the main CMakeLists.txt file because some tests fail if we have the flags set as default +list(APPEND DEFAULT_DEFINES + QT_CREATOR QT_NO_CAST_TO_ASCII QT_RESTRICTED_CAST_FROM_ASCII + QT_DISABLE_DEPRECATED_BEFORE=0x050900 + QT_USE_FAST_OPERATOR_PLUS + QT_USE_FAST_CONCATENATION +) + +function(compare_sources_with_existing_disk_files target_name sources) + if(NOT WITH_DEBUG_CMAKE) + return() + endif() + + file(GLOB_RECURSE existing_files RELATIVE ${CMAKE_CURRENT_LIST_DIR} "*.cpp" "*.hpp" "*.c" "*.h" "*.ui" "*.qrc") + foreach(file IN LISTS existing_files) + if(NOT ${file} IN_LIST sources) + if (NOT WITH_TESTS AND ${file} MATCHES "test") + continue() + endif() + message(STATUS "${target_name} doesn't include ${file}") + endif() + endforeach() + + foreach(source IN LISTS "${sources}") + if(NOT ${source} IN_LIST existing_files) + if (NOT WITH_TESTS AND ${file} MATCHES "test") + continue() + endif() + message(STATUS "${target_name} contains non existing ${source}") + endif() + endforeach() +endfunction(compare_sources_with_existing_disk_files) + +function(separate_object_libraries libraries REGULAR_LIBS OBJECT_LIBS OBJECT_LIB_OBJECTS) + if (CMAKE_VERSION VERSION_LESS 3.14) + foreach(lib IN LISTS libraries) + if (TARGET ${lib}) + get_target_property(lib_type ${lib} TYPE) + if (lib_type STREQUAL "OBJECT_LIBRARY") + list(APPEND object_libs ${lib}) + list(APPEND object_libs_objects $<TARGET_OBJECTS:${lib}>) + else() + list(APPEND regular_libs ${lib}) + endif() + else() + list(APPEND regular_libs ${lib}) + endif() + set(${REGULAR_LIBS} ${regular_libs} PARENT_SCOPE) + set(${OBJECT_LIBS} ${object_libs} PARENT_SCOPE) + set(${OBJECT_LIB_OBJECTS} ${object_libs_objects} PARENT_SCOPE) + endforeach() + else() + set(${REGULAR_LIBS} ${libraries} PARENT_SCOPE) + unset(${OBJECT_LIBS} PARENT_SCOPE) + unset(${OBJECT_LIB_OBJECTS} PARENT_SCOPE) + endif() +endfunction(separate_object_libraries) + +function(add_qtc_library name) + cmake_parse_arguments(_arg "STATIC;OBJECT" "" + "DEFINES;DEPENDS;INCLUDES;PUBLIC_DEFINES;PUBLIC_DEPENDS;PUBLIC_INCLUDES;SOURCES;EXPLICIT_MOC;SKIP_AUTOMOC;PROPERTIES" ${ARGN} + ) + + if (${_arg_UNPARSED_ARGUMENTS}) + message(FATAL_ERROR "add_qtc_library had unparsed arguments") + endif() + + compare_sources_with_existing_disk_files(${name} "${_arg_SOURCES}") + + set(library_type SHARED) + if (_arg_STATIC) + set(library_type STATIC) + endif() + if (_arg_OBJECT) + set(library_type OBJECT) + endif() + + separate_object_libraries("${_arg_DEPENDS}" + 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(${name} ${library_type} ${_arg_SOURCES} + ${object_lib_depends_objects} ${object_public_depends_objects}) + + if (${name} MATCHES "^[^0-9]+") + string(TOUPPER "${name}_LIBRARY" EXPORT_SYMBOL) + endif() + + if (WITH_TESTS) + set(TEST_DEFINES WITH_TESTS SRCDIR="${CMAKE_CURRENT_SOURCE_DIR}") + endif() + + if (NOT (${library_type} STREQUAL "OBJECT" AND CMAKE_VERSION VERSION_LESS 3.14)) + target_link_libraries(${name} + PRIVATE ${depends} ${_TEST_DEPENDS} + PUBLIC ${public_depends} + ) + else() + foreach(list depends public_depends) + foreach(lib IN LISTS ${list}) + if (TARGET ${lib}) + target_compile_definitions(${name} PUBLIC $<TARGET_PROPERTY:${lib},INTERFACE_COMPILE_DEFINITIONS>) + target_include_directories(${name} PUBLIC $<TARGET_PROPERTY:${lib},INTERFACE_INCLUDE_DIRECTORIES>) + endif() + endforeach() + endforeach() + endif() + + target_include_directories(${name} + PRIVATE ${_arg_INCLUDES} + PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/.." ${_arg_PUBLIC_INCLUDES} + ) + target_compile_definitions(${name} + PRIVATE ${EXPORT_SYMBOL} ${DEFAULT_DEFINES} ${_arg_DEFINES} ${TEST_DEFINES} + PUBLIC ${_arg_PUBLIC_DEFINES} + ) + foreach(obj_lib IN LISTS object_lib_depends) + target_compile_definitions(${name} PRIVATE $<TARGET_PROPERTY:${obj_lib},INTERFACE_COMPILE_DEFINITIONS>) + target_include_directories(${name} PRIVATE $<TARGET_PROPERTY:${obj_lib},INTERFACE_INCLUDE_DIRECTORIES>) + endforeach() + foreach(obj_lib IN LISTS object_public_depends) + target_compile_definitions(${name} PUBLIC $<TARGET_PROPERTY:${obj_lib},INTERFACE_COMPILE_DEFINITIONS>) + target_include_directories(${name} PUBLIC $<TARGET_PROPERTY:${obj_lib},INTERFACE_INCLUDE_DIRECTORIES>) + endforeach() + + foreach(file IN LISTS _arg_EXPLICIT_MOC) + set_property(SOURCE ${file} PROPERTY SKIP_AUTOMOC ON) + qt5_wrap_cpp(file_moc ${file}) + target_sources(${name} PRIVATE ${file_moc}) + endforeach() + + foreach(file IN LISTS _arg_SKIP_AUTOMOC) + set_property(SOURCE ${file} PROPERTY SKIP_AUTOMOC ON) + endforeach() + + set_target_properties(${name} PROPERTIES + VERSION "${PROJECT_VERSION}" + CXX_VISIBILITY_PRESET hidden + VISIBILITY_INLINES_HIDDEN ON + BUILD_RPATH "${_LIB_RPATH}" + INSTALL_RPATH "${_LIB_RPATH}" + RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/${IDE_BIN_PATH}" + LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/${IDE_LIBRARY_PATH}" + ARCHIVE_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/${IDE_LIBRARY_PATH}" + ${_arg_PROPERTIES} + ) + + if (NOT (${library_type} STREQUAL "OBJECT" AND CMAKE_VERSION VERSION_LESS 3.14)) + install(TARGETS ${name} + RUNTIME DESTINATION "${IDE_BIN_PATH}" + LIBRARY DESTINATION "${IDE_LIBRARY_PATH}" + ARCHIVE DESTINATION "${IDE_LIBRARY_PATH}" + ) + endif() + +endfunction(add_qtc_library) + +function(find_dependent_plugins varName) + set(_RESULT ${ARGN}) + + foreach(i ${ARGN}) + get_property(_dep TARGET "${i}" PROPERTY _arg_DEPENDS) + if (_dep) + find_dependent_plugins(_REC ${_dep}) + list(APPEND _RESULT ${_REC}) + endif() + endforeach() + + if (_RESULT) + list(REMOVE_DUPLICATES _RESULT) + list(SORT _RESULT) + endif() + + set("${varName}" ${_RESULT} PARENT_SCOPE) +endfunction() + +function(add_qtc_plugin target_name) + cmake_parse_arguments(_arg + "EXPERIMENTAL;SKIP_DEBUG_CMAKE_FILE_CHECK" + "VERSION;COMPAT_VERSION;PLUGIN_JSON_IN;PLUGIN_PATH;PLUGIN_NAME;OUTPUT_NAME" + "CONDITION;DEPENDS;PUBLIC_DEPENDS;DEFINES;INCLUDES;PUBLIC_INCLUDES;PLUGIN_DEPENDS;PLUGIN_RECOMMENDS;SOURCES;EXPLICIT_MOC" + ${ARGN} + ) + + if (${_arg_UNPARSED_ARGUMENTS}) + message(FATAL_ERROR "add_qtc_plugin had unparsed arguments") + endif() + + set(name ${target_name}) + if (_arg_PLUGIN_NAME) + set(name ${_arg_PLUGIN_NAME}) + endif() + + if (NOT _arg_CONDITION) + set(_arg_CONDITION ON) + set(_extra_text "") + else() + string(REPLACE ";" " " _contents "${_arg_CONDITION}") + set(_extra_text "with CONDITION ${_contents}") + endif() + + if (${_arg_CONDITION}) + set(_plugin_enabled ON) + else() + set(_plugin_enabled OFF) + endif() + + add_feature_info("Plugin ${name}" _plugin_enabled "${_extra_text}") + if (NOT _plugin_enabled) + return() + endif() + + ### Generate plugin.json file: + if (NOT _arg_VERSION) + set(_arg_VERSION ${PROJECT_VERSION}) + endif() + if (NOT _arg_COMPAT_VERSION) + set(_arg_COMPAT_VERSION ${_arg_VERSION}) + endif() + + if (NOT _arg_SKIP_DEBUG_CMAKE_FILE_CHECK) + compare_sources_with_existing_disk_files(${target_name} "${_arg_SOURCES}") + endif() + + # Generate dependency list: + find_dependent_plugins(_DEP_PLUGINS ${_arg_PLUGIN_DEPENDS}) + + set(_arg_DEPENDENCY_STRING "\"Dependencies\" : [\n") + foreach(i IN LISTS _DEP_PLUGINS) + get_property(_v TARGET "${i}" PROPERTY _arg_VERSION) + string(APPEND _arg_DEPENDENCY_STRING + " { \"Name\" : \"${i}\", \"Version\" : \"${_v}\" }" + ) + endforeach(i) + string(REPLACE "} {" "},\n {" + _arg_DEPENDENCY_STRING "${_arg_DEPENDENCY_STRING}" + ) + foreach(i IN LISTS ${_arg_RECOMMENDS}) + get_property(_v TARGET "${i}" PROPERTY _arg_VERSION) + string(APPEND _arg_DEPENDENCY_STRING + " { \"Name\" : \"${i}\", \"Version\" : \"${_v}\", \"Type\" : \"optional\" }" + ) + endforeach(i) + string(APPEND _arg_DEPENDENCY_STRING "\n ]") + if (_arg_EXPERIMENTAL) + string(APPEND _arg_DEPENDENCY_STRING ",\n \"Experimental\" : true") + endif() + + set(IDE_PLUGIN_DEPENDENCY_STRING ${_arg_DEPENDENCY_STRING}) + + ### Configure plugin.json file: + if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${name}.json.in") + file(READ "${name}.json.in" plugin_json_in) + string(REPLACE "\\\"" "\"" plugin_json_in ${plugin_json_in}) + string(REPLACE "\\'" "'" plugin_json_in ${plugin_json_in}) + string(REPLACE "$$QTCREATOR_VERSION" "\${IDE_VERSION}" plugin_json_in ${plugin_json_in}) + string(REPLACE "$$QTCREATOR_COMPAT_VERSION" "\${IDE_VERSION_COMPAT}" plugin_json_in ${plugin_json_in}) + string(REPLACE "$$QTCREATOR_COPYRIGHT_YEAR" "\${IDE_COPYRIGHT_YEAR}" plugin_json_in ${plugin_json_in}) + string(REPLACE "$$dependencyList" "\${IDE_PLUGIN_DEPENDENCY_STRING}" plugin_json_in ${plugin_json_in}) + if(_arg_PLUGIN_JSON_IN) + #e.g. UPDATEINFO_EXPERIMENTAL_STR=true + string(REGEX REPLACE "=.*$" "" json_key ${_arg_PLUGIN_JSON_IN}) + string(REGEX REPLACE "^.*=" "" json_value ${_arg_PLUGIN_JSON_IN}) + string(REPLACE "$$${json_key}" "${json_value}" plugin_json_in ${plugin_json_in}) + endif() + file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/${name}.json.cmakein" ${plugin_json_in}) + + configure_file("${CMAKE_CURRENT_BINARY_DIR}/${name}.json.cmakein" "${name}.json") + endif() + + separate_object_libraries("${_arg_DEPENDS}" + 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 + string(TOUPPER "${name}_LIBRARY" EXPORT_SYMBOL) + + if (WITH_TESTS) + set(TEST_DEFINES WITH_TESTS SRCDIR="${CMAKE_CURRENT_SOURCE_DIR}") + endif() + + target_link_libraries(${target_name} + PRIVATE ${_DEP_PLUGINS} ${depends} ${_TEST_DEPENDS} + PUBLIC ${public_depends} + ) + target_include_directories(${target_name} + PRIVATE ${_arg_INCLUDES} "${CMAKE_CURRENT_SOURCE_DIR}/.." "${CMAKE_CURRENT_BINARY_DIR}" + "${CMAKE_BINARY_DIR}/src" + PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/.." ${_arg_PUBLIC_INCLUDES} + ) + target_compile_definitions(${target_name} + PRIVATE ${EXPORT_SYMBOL} ${DEFAULT_DEFINES} ${_arg_DEFINES} ${TEST_DEFINES} + ) + + 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() + + set(plugin_dir "${IDE_PLUGIN_PATH}") + if (_arg_PLUGIN_PATH) + set(plugin_dir "${_arg_PLUGIN_PATH}") + endif() + + set_target_properties(${target_name} PROPERTIES + CXX_VISIBILITY_PRESET hidden + VISIBILITY_INLINES_HIDDEN ON + _arg_DEPENDS "${_arg_PLUGIN_DEPENDS}" + _arg_VERSION "${_arg_VERSION}" + BUILD_RPATH "${_PLUGIN_RPATH}" + INSTALL_RPATH "${_PLUGIN_RPATH}" + LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/${plugin_dir}" + ARCHIVE_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/${plugin_dir}" + RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/${plugin_dir}" + OUTPUT_NAME "${name}" + ${_arg_PROPERTIES} + ) + + foreach(file IN LISTS _arg_EXPLICIT_MOC) + set_property(SOURCE ${file} PROPERTY SKIP_AUTOMOC ON) + qt5_wrap_cpp(file_moc ${file}) + target_sources(${target_name} PRIVATE ${file_moc}) + endforeach() + + install(TARGETS ${target_name} + LIBRARY DESTINATION "${plugin_dir}" + ARCHIVE DESTINATION "${plugin_dir}" + RUNTIME DESTINATION "${plugin_dir}" + ) +endfunction() + +function(add_qtc_executable name) + cmake_parse_arguments(_arg "" "DESTINATION" "DEFINES;DEPENDS;INCLUDES;SOURCES;PROPERTIES" ${ARGN}) + + if ($_arg_UNPARSED_ARGUMENTS) + message(FATAL_ERROR "add_qtc_executable had unparsed arguments!") + endif() + + set(_DESTINATION "${IDE_LIBEXEC_PATH}") + if (_arg_DESTINATION) + set(_DESTINATION "${_arg_DESTINATION}") + endif() + + set(_EXECUTABLE_PATH "${_DESTINATION}") + if (APPLE) + # path of executable might be inside app bundle instead of DESTINATION directly + cmake_parse_arguments(_prop "" "MACOSX_BUNDLE;OUTPUT_NAME" "" "${_arg_PROPERTIES}") + if (_prop_MACOSX_BUNDLE) + set(_BUNDLE_NAME "${name}") + if (_prop_OUTPUT_NAME) + set(_BUNDLE_NAME "${_prop_OUTPUT_NAME}") + endif() + set(_EXECUTABLE_PATH "${_DESTINATION}/${_BUNDLE_NAME}.app/Contents/MacOS") + endif() + endif() + + file(RELATIVE_PATH _RELATIVE_LIB_PATH "/${_EXECUTABLE_PATH}" "/${IDE_LIBRARY_PATH}") + + add_executable("${name}" ${_arg_SOURCES}) + target_include_directories("${name}" PRIVATE "${CMAKE_BINARY_DIR}/src" ${_arg_INCLUDES}) + target_compile_definitions("${name}" PRIVATE ${_arg_DEFINES} ${TEST_DEFINES} ${DEFAULT_DEFINES}) + target_link_libraries("${name}" PRIVATE ${_arg_DEPENDS} ${_TEST_DEPENDS}) + set_target_properties("${name}" PROPERTIES + BUILD_RPATH "${_RPATH_BASE}/${_RELATIVE_LIB_PATH}" + INSTALL_RPATH "${_RPATH_BASE}/${_RELATIVE_LIB_PATH}" + RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/${_DESTINATION}" + ${_arg_PROPERTIES} + ) + + install(TARGETS ${name} DESTINATION "${_DESTINATION}") +endfunction() + +function(add_qtc_test name) + cmake_parse_arguments(_arg "" "" "DEFINES;DEPENDS;INCLUDES;SOURCES" ${ARGN}) + + if ($_arg_UNPARSED_ARGUMENTS) + message(FATAL_ERROR "add_qtc_test had unparsed arguments!") + endif() + + set(TEST_DEFINES SRCDIR="${CMAKE_CURRENT_SOURCE_DIR}") + file(RELATIVE_PATH _RPATH "/${IDE_BIN_PATH}" "/${IDE_LIBRARY_PATH}") + + separate_object_libraries("${_arg_DEPENDS}" + depends object_lib_depends object_lib_depends_objects) + + add_executable(${name} ${_arg_SOURCES} ${object_lib_depends_objects}) + + target_include_directories(${name} PRIVATE "${CMAKE_BINARY_DIR}/src" ${_arg_INCLUDES}) + target_compile_definitions(${name} PRIVATE ${_arg_DEFINES} ${TEST_DEFINES} ${DEFAULT_DEFINES}) + target_link_libraries(${name} PRIVATE ${depends} ${_TEST_DEPENDS}) + foreach(obj_lib IN LISTS object_lib_depends) + target_compile_definitions(${name} PRIVATE $<TARGET_PROPERTY:${obj_lib},INTERFACE_COMPILE_DEFINITIONS>) + target_include_directories(${name} PRIVATE $<TARGET_PROPERTY:${obj_lib},INTERFACE_INCLUDE_DIRECTORIES>) + endforeach() + set_target_properties(${name} PROPERTIES + BUILD_RPATH "${_RPATH_BASE}/${_RPATH}" + INSTALL_RPATH "${_RPATH_BASE}/${_RPATH}" + ) + + add_test(NAME ${name} COMMAND ${name}) + + if (WIN32) + list(APPEND env_path $ENV{PATH}) + list(APPEND env_path ${CMAKE_BINARY_DIR}/${IDE_PLUGIN_PATH}) + list(APPEND env_path ${CMAKE_BINARY_DIR}/${IDE_BIN_PATH}) + + string(REPLACE "/" "\\" env_path "${env_path}") + string(REPLACE ";" "\\;" env_path "${env_path}") + + set_tests_properties(${name} PROPERTIES ENVIRONMENT "PATH=${env_path}") + endif() +endfunction() + +add_library(app_version INTERFACE) +target_include_directories(app_version INTERFACE ${CMAKE_CURRENT_BINARY_DIR}) + +add_subdirectory(libs) +add_subdirectory(share) +add_subdirectory(shared) +add_subdirectory(app) +add_subdirectory(plugins) +add_subdirectory(tools) diff --git a/src/app/CMakeLists.txt b/src/app/CMakeLists.txt new file mode 100644 index 0000000000..8ae808e2ff --- /dev/null +++ b/src/app/CMakeLists.txt @@ -0,0 +1,19 @@ +configure_file(app_version.h.cmakein app_version.h ESCAPE_QUOTES) + +add_qtc_executable(qtcreator + DEFINES IDE_LIBRARY_BASENAME=\"${IDE_LIBRARY_BASE_PATH}\" + DEPENDS Aggregation ExtensionSystem Qt5::Core Qt5::Widgets Utils shared_qtsingleapplication app_version + SOURCES + main.cpp + ../tools/qtcreatorcrashhandler/crashhandlersetup.cpp ../tools/qtcreatorcrashhandler/crashhandlersetup.h + PROPERTIES + WIN32_EXECUTABLE ON + MACOSX_BUNDLE ON + OUTPUT_NAME "${IDE_APP_TARGET}" + DESTINATION "${IDE_APP_PATH}" +) + +add_custom_command(TARGET qtcreator POST_BUILD + COMMAND "${CMAKE_COMMAND}" -E copy_directory + "${PROJECT_SOURCE_DIR}/share/qtcreator" + "${PROJECT_BINARY_DIR}/${IDE_DATA_PATH}") diff --git a/src/app/app_version.h.cmakein b/src/app/app_version.h.cmakein new file mode 100644 index 0000000000..86074a22e9 --- /dev/null +++ b/src/app/app_version.h.cmakein @@ -0,0 +1,53 @@ +/**************************************************************************** +** +** Copyright (C) 2018 The Qt Company Ltd. +** Contact: https://www.qt.io/licensing/ +** +** This file is part of Qt Creator. +** +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and The Qt Company. For licensing terms +** and conditions see https://www.qt.io/terms-conditions. For further +** information use the contact form at https://www.qt.io/contact-us. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 3 as published by the Free Software +** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT +** included in the packaging of this file. Please review the following +** information to ensure the GNU General Public License requirements will +** be met: https://www.gnu.org/licenses/gpl-3.0.html. +** +****************************************************************************/ + +#pragma once + +#define IDE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR} +#define IDE_VERSION_MINOR ${PROJECT_VERSION_MINOR} +#define IDE_VERSION_RELEASE ${PROJECT_VERSION_PATCH} + +#cmakedefine IDE_REVISION + +namespace Core { +namespace Constants { + +const char IDE_VERSION_LONG[] = "${PROJECT_VERSION}"; +const char IDE_AUTHOR[] = "The Qt Company Ltd"; +const char IDE_YEAR[] = "${IDE_COPYRIGHT_YEAR}"; + +const char IDE_DISPLAY_NAME[] = "${IDE_DISPLAY_NAME}"; +const char IDE_ID[] = "${IDE_ID}"; +const char IDE_CASED_ID[] = "${IDE_CASED_ID}"; + +const char IDE_VERSION_DISPLAY[] = "${IDE_VERSION_DISPLAY}"; +const char IDE_REVISION_STR[] = "${IDE_REVISION_STR}"; + +// changes the path where the settings are saved to +const char IDE_SETTINGSVARIANT_STR[] = "${IDE_SETTINGSVARIANT}"; +const char IDE_COPY_SETTINGS_FROM_VARIANT_STR[] = "${IDE_COPY_SETTINGSVARIANT}"; + +} // Constants +} // Core diff --git a/src/libs/3rdparty/CMakeLists.txt b/src/libs/3rdparty/CMakeLists.txt new file mode 100644 index 0000000000..7cf97ab87f --- /dev/null +++ b/src/libs/3rdparty/CMakeLists.txt @@ -0,0 +1,2 @@ +add_subdirectory(cplusplus) +add_subdirectory(syntax-highlighting) diff --git a/src/libs/3rdparty/cplusplus/CMakeLists.txt b/src/libs/3rdparty/cplusplus/CMakeLists.txt new file mode 100644 index 0000000000..c9c9281718 --- /dev/null +++ b/src/libs/3rdparty/cplusplus/CMakeLists.txt @@ -0,0 +1,45 @@ +add_qtc_library(3rd_cplusplus OBJECT + PUBLIC_DEPENDS Qt5::Core Utils + DEFINES CPLUSPLUS_BUILD_LIB + INCLUDES "${CMAKE_SOURCE_DIR}/src/libs" + SOURCES + AST.cpp AST.h + ASTClone.cpp + ASTMatch0.cpp + ASTMatcher.cpp ASTMatcher.h + ASTPatternBuilder.h + ASTVisit.cpp + ASTVisitor.cpp ASTVisitor.h + ASTfwd.h + Bind.cpp Bind.h + CPlusPlus.h + CPlusPlusForwardDeclarations.h + Control.cpp Control.h + CoreTypes.cpp CoreTypes.h + DiagnosticClient.cpp DiagnosticClient.h + FullySpecifiedType.cpp FullySpecifiedType.h + Keywords.cpp + Lexer.cpp Lexer.h + LiteralTable.h + Literals.cpp Literals.h + Matcher.cpp Matcher.h + MemoryPool.cpp MemoryPool.h + Name.cpp Name.h + NameVisitor.cpp NameVisitor.h + Names.cpp Names.h + ObjectiveCAtKeywords.cpp + ObjectiveCTypeQualifiers.cpp ObjectiveCTypeQualifiers.h + Parser.cpp Parser.h + QtContextKeywords.cpp QtContextKeywords.h + SafeMatcher.cpp SafeMatcher.h + Scope.cpp Scope.h + Symbol.cpp Symbol.h + SymbolVisitor.h + Symbols.cpp Symbols.h + Templates.cpp Templates.h + Token.cpp Token.h + TranslationUnit.cpp TranslationUnit.h + Type.cpp Type.h + TypeVisitor.cpp TypeVisitor.h + cppassert.h +) diff --git a/src/libs/3rdparty/syntax-highlighting/CMakeLists.txt b/src/libs/3rdparty/syntax-highlighting/CMakeLists.txt index 49923fb26e..e849815098 100644 --- a/src/libs/3rdparty/syntax-highlighting/CMakeLists.txt +++ b/src/libs/3rdparty/syntax-highlighting/CMakeLists.txt @@ -1,134 +1,38 @@ -cmake_minimum_required(VERSION 3.0) - -set(KF5_VERSION "5.52.0") -project(KSyntaxHighlighting VERSION ${KF5_VERSION}) - -find_package(ECM 5.51.0 REQUIRED NO_MODULE) -set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR}) -if(POLICY CMP0063) - cmake_policy(SET CMP0063 NEW) -endif() - -include(FeatureSummary) -include(GenerateExportHeader) -include(ECMSetupVersion) -include(ECMGenerateHeaders) -include(ECMGeneratePriFile) -include(CMakePackageConfigHelpers) -include(ECMPoQmTools) -include(ECMQtDeclareLoggingCategory) -include(KDEInstallDirs) -include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE) -include(KDECMakeSettings) -include(ECMMarkNonGuiExecutable) -include(ECMAddQch) - - -ecm_setup_version(PROJECT - VARIABLE_PREFIX SyntaxHighlighting - VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/ksyntaxhighlighting_version.h" - PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KF5SyntaxHighlightingConfigVersion.cmake" +add_qtc_library(KSyntaxHighlighting STATIC + PUBLIC_INCLUDES autogenerated/ autogenerated/src/lib src/lib + PUBLIC_DEFINES KSYNTAXHIGHLIGHTING_LIBRARY + DEPENDS Qt5::Network Qt5::Gui + SOURCES + autogenerated/src/lib/ksyntaxhighlighting_logging.cpp autogenerated/src/lib/ksyntaxhighlighting_logging.h + autogenerated/ksyntaxhighlighting_version.h + + data/themes/theme-data.qrc + + src/lib/abstracthighlighter.cpp src/lib/abstracthighlighter.h src/lib/abstracthighlighter_p.h + src/lib/context.cpp src/lib/context_p.h + src/lib/contextswitch.cpp src/lib/contextswitch_p.h + src/lib/definition.cpp src/lib/definition.h + src/lib/definitiondownloader.cpp src/lib/definitiondownloader.h + src/lib/definitionref_p.h + src/lib/definition_p.h + src/lib/foldingregion.cpp src/lib/foldingregion.h + src/lib/format.cpp src/lib/format.h src/lib/format_p.h + src/lib/htmlhighlighter.cpp src/lib/htmlhighlighter.h + src/lib/keywordlist.cpp src/lib/keywordlist_p.h + src/lib/ksyntaxhighlighting_export.h + src/lib/matchresult_p.h + src/lib/repository.cpp src/lib/repository.h src/lib/repository_p.h + src/lib/rule.cpp src/lib/rule_p.h + src/lib/state.cpp src/lib/state.h src/lib/state_p.h + src/lib/syntaxhighlighter.cpp src/lib/syntaxhighlighter.h + src/lib/textstyledata_p.h + src/lib/theme.cpp src/lib/theme.h + src/lib/themedata.cpp src/lib/themedata_p.h + src/lib/wildcardmatcher.cpp src/lib/wildcardmatcher_p.h + src/lib/xml_p.h ) -# -# Dependencies -# -set(REQUIRED_QT_VERSION 5.8.0) -find_package(Qt5 ${REQUIRED_QT_VERSION} NO_MODULE REQUIRED COMPONENTS Core Network Test) -option(KSYNTAXHIGHLIGHTING_USE_GUI "Build components depending on Qt5Gui" ON) -if(KSYNTAXHIGHLIGHTING_USE_GUI) - find_package(Qt5 ${REQUIRED_QT_VERSION} NO_MODULE REQUIRED COMPONENTS Gui) -endif() -find_package(Qt5 ${REQUIRED_QT_VERSION} NO_MODULE QUIET OPTIONAL_COMPONENTS Widgets XmlPatterns) -set_package_properties(Qt5 PROPERTIES URL "http://qt-project.org/") -set_package_properties(Qt5Widgets PROPERTIES PURPOSE "Example application.") -set_package_properties(Qt5XmlPatterns PROPERTIES PURPOSE "Compile-time validation of syntax definition files.") - -find_package(Perl REQUIRED) -set_package_properties(Perl PROPERTIES PURPOSE "Auto-generate PHP syntax definition files.") - -# -# allow to install the "differently" licensed syntax xml files instead of putting them in a QRC and link them in -# -option(QRC_SYNTAX "Bundle the syntax definition files inside the library as resources" ON) -add_feature_info(SYNTAX_RESOURCE ${QRC_SYNTAX} "Bundle the syntax definition files inside the library as resources") - -# -# allow to turn of lookup for syntax files and themes via QStandardPaths -# -option(NO_STANDARD_PATHS "Skip lookup of syntax and theme definitions in QStandardPaths locations" OFF) -add_feature_info(FEATURE_NO_STANDARD_PATHS ${NO_STANDARD_PATHS} "Skip lookup of syntax and theme definitions in QStandardPaths locations") - -# -# API documentation -# -option(BUILD_QCH "Build API documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)" OFF) -add_feature_info(QCH ${BUILD_QCH} "API documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)") - -# -# Translations -# -if (IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/po") - ecm_install_po_files_as_qm(po) -endif() - -# tell the framework if it shall use the syntax files from the resource -if (QRC_SYNTAX) - add_definitions(-DHAS_SYNTAX_RESOURCE) -endif() - -# skip standard paths? -if (NO_STANDARD_PATHS) - add_definitions(-DNO_STANDARD_PATHS) -endif() - -# -# Actually build the stuff -# -include_directories(${CMAKE_CURRENT_BINARY_DIR}) -add_subdirectory(data) -add_subdirectory(src) -if(TARGET Qt5::Gui) - add_subdirectory(examples) -endif() - -# -# CMake package config file generation -# -set(CMAKECONFIG_INSTALL_DIR "${CMAKECONFIG_INSTALL_PREFIX}/KF5SyntaxHighlighting") - -if (BUILD_QCH) - ecm_install_qch_export( - TARGETS KF5SyntaxHighlighting_QCH - FILE KF5SyntaxHighlightingQchTargets.cmake - DESTINATION "${CMAKECONFIG_INSTALL_DIR}" - COMPONENT Devel - ) - set(PACKAGE_INCLUDE_QCHTARGETS "include(\"\${CMAKE_CURRENT_LIST_DIR}/KF5SyntaxHighlightingQchTargets.cmake\")") -endif() - -configure_package_config_file( - "${CMAKE_CURRENT_SOURCE_DIR}/KF5SyntaxHighlightingConfig.cmake.in" - "${CMAKE_CURRENT_BINARY_DIR}/KF5SyntaxHighlightingConfig.cmake" - INSTALL_DESTINATION "${CMAKECONFIG_INSTALL_DIR}" +install( + DIRECTORY data/ + DESTINATION "${IDE_DATA_PATH}/generic-highlighter/" ) - -install(FILES - "${CMAKE_CURRENT_BINARY_DIR}/KF5SyntaxHighlightingConfig.cmake" - "${CMAKE_CURRENT_BINARY_DIR}/KF5SyntaxHighlightingConfigVersion.cmake" - DESTINATION "${CMAKECONFIG_INSTALL_DIR}" - COMPONENT Devel) - -if(TARGET KF5SyntaxHighlighting) - install(EXPORT KF5SyntaxHighlightingTargets - DESTINATION "${CMAKECONFIG_INSTALL_DIR}" - FILE KF5SyntaxHighlightingTargets.cmake - NAMESPACE KF5::) -endif() - -install(FILES "${CMAKE_CURRENT_BINARY_DIR}/ksyntaxhighlighting_version.h" - DESTINATION "${KDE_INSTALL_INCLUDEDIR_KF5}" - COMPONENT Devel) -install(FILES org_kde_ksyntaxhighlighting.categories DESTINATION ${KDE_INSTALL_CONFDIR}) - -feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES) diff --git a/src/libs/3rdparty/syntax-highlighting/CMakeLists.txt.kde b/src/libs/3rdparty/syntax-highlighting/CMakeLists.txt.kde new file mode 100644 index 0000000000..49923fb26e --- /dev/null +++ b/src/libs/3rdparty/syntax-highlighting/CMakeLists.txt.kde @@ -0,0 +1,134 @@ +cmake_minimum_required(VERSION 3.0) + +set(KF5_VERSION "5.52.0") +project(KSyntaxHighlighting VERSION ${KF5_VERSION}) + +find_package(ECM 5.51.0 REQUIRED NO_MODULE) +set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR}) +if(POLICY CMP0063) + cmake_policy(SET CMP0063 NEW) +endif() + +include(FeatureSummary) +include(GenerateExportHeader) +include(ECMSetupVersion) +include(ECMGenerateHeaders) +include(ECMGeneratePriFile) +include(CMakePackageConfigHelpers) +include(ECMPoQmTools) +include(ECMQtDeclareLoggingCategory) +include(KDEInstallDirs) +include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE) +include(KDECMakeSettings) +include(ECMMarkNonGuiExecutable) +include(ECMAddQch) + + +ecm_setup_version(PROJECT + VARIABLE_PREFIX SyntaxHighlighting + VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/ksyntaxhighlighting_version.h" + PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KF5SyntaxHighlightingConfigVersion.cmake" +) + +# +# Dependencies +# +set(REQUIRED_QT_VERSION 5.8.0) +find_package(Qt5 ${REQUIRED_QT_VERSION} NO_MODULE REQUIRED COMPONENTS Core Network Test) +option(KSYNTAXHIGHLIGHTING_USE_GUI "Build components depending on Qt5Gui" ON) +if(KSYNTAXHIGHLIGHTING_USE_GUI) + find_package(Qt5 ${REQUIRED_QT_VERSION} NO_MODULE REQUIRED COMPONENTS Gui) +endif() +find_package(Qt5 ${REQUIRED_QT_VERSION} NO_MODULE QUIET OPTIONAL_COMPONENTS Widgets XmlPatterns) +set_package_properties(Qt5 PROPERTIES URL "http://qt-project.org/") +set_package_properties(Qt5Widgets PROPERTIES PURPOSE "Example application.") +set_package_properties(Qt5XmlPatterns PROPERTIES PURPOSE "Compile-time validation of syntax definition files.") + +find_package(Perl REQUIRED) +set_package_properties(Perl PROPERTIES PURPOSE "Auto-generate PHP syntax definition files.") + +# +# allow to install the "differently" licensed syntax xml files instead of putting them in a QRC and link them in +# +option(QRC_SYNTAX "Bundle the syntax definition files inside the library as resources" ON) +add_feature_info(SYNTAX_RESOURCE ${QRC_SYNTAX} "Bundle the syntax definition files inside the library as resources") + +# +# allow to turn of lookup for syntax files and themes via QStandardPaths +# +option(NO_STANDARD_PATHS "Skip lookup of syntax and theme definitions in QStandardPaths locations" OFF) +add_feature_info(FEATURE_NO_STANDARD_PATHS ${NO_STANDARD_PATHS} "Skip lookup of syntax and theme definitions in QStandardPaths locations") + +# +# API documentation +# +option(BUILD_QCH "Build API documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)" OFF) +add_feature_info(QCH ${BUILD_QCH} "API documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)") + +# +# Translations +# +if (IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/po") + ecm_install_po_files_as_qm(po) +endif() + +# tell the framework if it shall use the syntax files from the resource +if (QRC_SYNTAX) + add_definitions(-DHAS_SYNTAX_RESOURCE) +endif() + +# skip standard paths? +if (NO_STANDARD_PATHS) + add_definitions(-DNO_STANDARD_PATHS) +endif() + +# +# Actually build the stuff +# +include_directories(${CMAKE_CURRENT_BINARY_DIR}) +add_subdirectory(data) +add_subdirectory(src) +if(TARGET Qt5::Gui) + add_subdirectory(examples) +endif() + +# +# CMake package config file generation +# +set(CMAKECONFIG_INSTALL_DIR "${CMAKECONFIG_INSTALL_PREFIX}/KF5SyntaxHighlighting") + +if (BUILD_QCH) + ecm_install_qch_export( + TARGETS KF5SyntaxHighlighting_QCH + FILE KF5SyntaxHighlightingQchTargets.cmake + DESTINATION "${CMAKECONFIG_INSTALL_DIR}" + COMPONENT Devel + ) + set(PACKAGE_INCLUDE_QCHTARGETS "include(\"\${CMAKE_CURRENT_LIST_DIR}/KF5SyntaxHighlightingQchTargets.cmake\")") +endif() + +configure_package_config_file( + "${CMAKE_CURRENT_SOURCE_DIR}/KF5SyntaxHighlightingConfig.cmake.in" + "${CMAKE_CURRENT_BINARY_DIR}/KF5SyntaxHighlightingConfig.cmake" + INSTALL_DESTINATION "${CMAKECONFIG_INSTALL_DIR}" +) + +install(FILES + "${CMAKE_CURRENT_BINARY_DIR}/KF5SyntaxHighlightingConfig.cmake" + "${CMAKE_CURRENT_BINARY_DIR}/KF5SyntaxHighlightingConfigVersion.cmake" + DESTINATION "${CMAKECONFIG_INSTALL_DIR}" + COMPONENT Devel) + +if(TARGET KF5SyntaxHighlighting) + install(EXPORT KF5SyntaxHighlightingTargets + DESTINATION "${CMAKECONFIG_INSTALL_DIR}" + FILE KF5SyntaxHighlightingTargets.cmake + NAMESPACE KF5::) +endif() + +install(FILES "${CMAKE_CURRENT_BINARY_DIR}/ksyntaxhighlighting_version.h" + DESTINATION "${KDE_INSTALL_INCLUDEDIR_KF5}" + COMPONENT Devel) +install(FILES org_kde_ksyntaxhighlighting.categories DESTINATION ${KDE_INSTALL_CONFDIR}) + +feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES) diff --git a/src/libs/CMakeLists.txt b/src/libs/CMakeLists.txt new file mode 100644 index 0000000000..52cc1d35a9 --- /dev/null +++ b/src/libs/CMakeLists.txt @@ -0,0 +1,21 @@ +add_subdirectory(3rdparty) + +add_subdirectory(aggregation) +add_subdirectory(extensionsystem) +add_subdirectory(utils) +add_subdirectory(languageutils) +add_subdirectory(cplusplus) +add_subdirectory(modelinglib) +add_subdirectory(qmljs) +add_subdirectory(qmldebug) +add_subdirectory(qmleditorwidgets) +add_subdirectory(glsl) +add_subdirectory(languageserverprotocol) +add_subdirectory(ssh) +add_subdirectory(sqlite) +add_subdirectory(clangsupport) +add_subdirectory(tracing) + +if (WIN32) + add_subdirectory(qtcreatorcdbext) +endif() diff --git a/src/libs/aggregation/CMakeLists.txt b/src/libs/aggregation/CMakeLists.txt new file mode 100644 index 0000000000..6871c9ab35 --- /dev/null +++ b/src/libs/aggregation/CMakeLists.txt @@ -0,0 +1,6 @@ +add_qtc_library(Aggregation + DEPENDS Qt5::Core + SOURCES + aggregate.cpp aggregate.h + aggregation_global.h +) diff --git a/src/libs/clangsupport/CMakeLists.txt b/src/libs/clangsupport/CMakeLists.txt new file mode 100644 index 0000000000..f4731397c7 --- /dev/null +++ b/src/libs/clangsupport/CMakeLists.txt @@ -0,0 +1,138 @@ +add_qtc_library(ClangSupport + PUBLIC_DEPENDS Utils Sqlite Qt5::Core Qt5::Network + PUBLIC_INCLUDES "${CMAKE_CURRENT_LIST_DIR}" + PUBLIC_DEFINES + CLANG_VERSION="${CLANG_VERSION}" + CLANG_RESOURCE_DIR="${CLANG_RESOURCE_DIR}" + CLANG_BINDIR="${CLANG_BIN_DIR}" + DEFINES CLANGSUPPORT_BUILD_LIB + SOURCES + alivemessage.cpp alivemessage.h + annotationsmessage.cpp annotationsmessage.h + baseserverproxy.cpp baseserverproxy.h + cancelmessage.cpp cancelmessage.h + changedfilepathcompressor.h + clangcodemodelclientinterface.cpp clangcodemodelclientinterface.h + clangcodemodelclientmessages.h + clangcodemodelclientproxy.cpp clangcodemodelclientproxy.h + clangcodemodelconnectionclient.cpp clangcodemodelconnectionclient.h + clangcodemodelserverinterface.cpp clangcodemodelserverinterface.h + clangcodemodelservermessages.h + clangcodemodelserverproxy.cpp clangcodemodelserverproxy.h + clangpathwatcher.h + clangpathwatcherinterface.h + clangpathwatchernotifier.h + clangrefactoringclientmessages.h + clangrefactoringmessages.h + clangrefactoringservermessages.h + clangsupport_global.h + clangsupportdebugutils.cpp clangsupportdebugutils.h + clangsupportexceptions.h + codecompletion.cpp codecompletion.h + codecompletionchunk.cpp codecompletionchunk.h + commandlinebuilder.h + compilermacro.h + completionsmessage.cpp completionsmessage.h + connectionclient.cpp connectionclient.h + connectionserver.cpp connectionserver.h + diagnosticcontainer.cpp diagnosticcontainer.h + documentschangedmessage.cpp documentschangedmessage.h + documentsclosedmessage.cpp documentsclosedmessage.h + documentsopenedmessage.cpp documentsopenedmessage.h + documentvisibilitychangedmessage.cpp documentvisibilitychangedmessage.h + dynamicastmatcherdiagnosticcontainer.cpp dynamicastmatcherdiagnosticcontainer.h + dynamicastmatcherdiagnosticcontextcontainer.cpp dynamicastmatcherdiagnosticcontextcontainer.h + dynamicastmatcherdiagnosticmessagecontainer.cpp dynamicastmatcherdiagnosticmessagecontainer.h + dynamicmatcherdiagnostics.h + echomessage.cpp echomessage.h + endmessage.cpp endmessage.h + environment.h + executeinloop.h + filecontainer.cpp filecontainer.h + filecontainerv2.cpp filecontainerv2.h + filepath.cpp filepath.h + filepathcache.h + filepathcaching.cpp filepathcaching.h + filepathcachingfwd.h + filepathcachinginterface.h + filepathexceptions.h + filepathid.cpp filepathid.h + filepathstorage.h + filepathstoragesources.h + filepathstoragesqlitestatementfactory.h + filepathview.h + fixitcontainer.cpp fixitcontainer.h + followsymbolmessage.cpp followsymbolmessage.h + generatedfiles.cpp generatedfiles.h + generatedfilesinterface.h + idpaths.h + includesearchpath.h + ipcclientinterface.h + ipcclientprovider.h + ipcinterface.h + ipcserverinterface.cpp ipcserverinterface.h + lineprefixer.cpp lineprefixer.h + messageenvelop.cpp messageenvelop.h + modifiedtimechecker.h + modifiedtimecheckerinterface.h + nativefilepath.h + pchmanagerclientinterface.cpp pchmanagerclientinterface.h + pchmanagerclientproxy.cpp pchmanagerclientproxy.h + pchmanagerserverinterface.cpp pchmanagerserverinterface.h + pchmanagerserverproxy.cpp pchmanagerserverproxy.h + pchpaths.h + precompiledheadersupdatedmessage.cpp precompiledheadersupdatedmessage.h + processcreator.cpp processcreator.h + processexception.cpp processexception.h + processhandle.h + processstartedevent.cpp processstartedevent.h + progresscounter.h + progressmessage.h + projectmanagementserverinterface.h + projectpartartefact.cpp projectpartartefact.h + projectpartcontainer.cpp projectpartcontainer.h + projectpartid.h + projectpartpch.cpp projectpartpch.h + projectpartpchproviderinterface.h + projectpartsstorage.h + projectpartsstorageinterface.h + readmessageblock.cpp readmessageblock.h + refactoringclientinterface.cpp refactoringclientinterface.h + refactoringclientproxy.cpp refactoringclientproxy.h + refactoringdatabaseinitializer.h + refactoringserverinterface.cpp refactoringserverinterface.h + refactoringserverproxy.cpp refactoringserverproxy.h + referencesmessage.cpp referencesmessage.h + removegeneratedfilesmessage.cpp removegeneratedfilesmessage.h + removeprojectpartsmessage.h + requestannotationsmessage.cpp requestannotationsmessage.h + requestcompletionsmessage.cpp requestcompletionsmessage.h + requestfollowsymbolmessage.cpp requestfollowsymbolmessage.h + requestreferencesmessage.cpp requestreferencesmessage.h + requestsourcelocationforrenamingmessage.cpp requestsourcelocationforrenamingmessage.h + requestsourcerangesanddiagnosticsforquerymessage.cpp requestsourcerangesanddiagnosticsforquerymessage.h + requestsourcerangesforquerymessage.cpp requestsourcerangesforquerymessage.h + requesttooltipmessage.cpp requesttooltipmessage.h + sourceentry.h + sourcelocationcontainer.cpp sourcelocationcontainer.h + sourcelocationcontainerv2.cpp sourcelocationcontainerv2.h + sourcelocationscontainer.cpp sourcelocationscontainer.h + sourcelocationsforrenamingmessage.cpp sourcelocationsforrenamingmessage.h + sourcerangecontainer.cpp sourcerangecontainer.h + sourcerangecontainerv2.cpp sourcerangecontainerv2.h + sourcerangesanddiagnosticsforquerymessage.cpp sourcerangesanddiagnosticsforquerymessage.h + sourcerangescontainer.cpp sourcerangescontainer.h + sourcerangesforquerymessage.cpp sourcerangesforquerymessage.h + sourcerangewithtextcontainer.cpp sourcerangewithtextcontainer.h + stringcache.h + stringcachealgorithms.h + stringcachefwd.h + tokeninfocontainer.cpp tokeninfocontainer.h + tooltipinfo.cpp tooltipinfo.h + tooltipmessage.cpp tooltipmessage.h + unsavedfilesremovedmessage.cpp unsavedfilesremovedmessage.h + unsavedfilesupdatedmessage.cpp unsavedfilesupdatedmessage.h + updategeneratedfilesmessage.cpp updategeneratedfilesmessage.h + updateprojectpartsmessage.cpp updateprojectpartsmessage.h + writemessageblock.cpp writemessageblock.h +) diff --git a/src/libs/cplusplus/CMakeLists.txt b/src/libs/cplusplus/CMakeLists.txt new file mode 100644 index 0000000000..593d809394 --- /dev/null +++ b/src/libs/cplusplus/CMakeLists.txt @@ -0,0 +1,44 @@ +# TODO: Support static build, currently being done with CPLUSPLUS_BUILD_STATIC_LIB +# -- if really needed that is. +# TODO: Make Qt5::Gui optional -- if really needed that is. + +add_qtc_library(CPlusPlus + DEPENDS Utils + DEFINES CPLUSPLUS_BUILD_LIB + PUBLIC_DEPENDS 3rd_cplusplus Qt5::Concurrent Qt5::Gui + PUBLIC_INCLUDES "${CMAKE_SOURCE_DIR}/src/libs/3rdparty" + SOURCES + ASTParent.cpp ASTParent.h + ASTPath.cpp ASTPath.h + AlreadyConsideredClassContainer.h + BackwardsScanner.cpp BackwardsScanner.h + CppDocument.cpp CppDocument.h + CppRewriter.cpp CppRewriter.h + DependencyTable.cpp DependencyTable.h + DeprecatedGenTemplateInstance.cpp DeprecatedGenTemplateInstance.h + ExpressionUnderCursor.cpp ExpressionUnderCursor.h + FastPreprocessor.cpp FastPreprocessor.h + FindUsages.cpp FindUsages.h + Icons.cpp Icons.h + LookupContext.cpp LookupContext.h + LookupItem.cpp LookupItem.h + Macro.cpp Macro.h + MatchingText.cpp MatchingText.h + NamePrettyPrinter.cpp NamePrettyPrinter.h + Overview.cpp Overview.h + PPToken.cpp PPToken.h + PreprocessorClient.cpp PreprocessorClient.h + PreprocessorEnvironment.cpp PreprocessorEnvironment.h + ResolveExpression.cpp ResolveExpression.h + SimpleLexer.cpp SimpleLexer.h + SnapshotSymbolVisitor.cpp SnapshotSymbolVisitor.h + SymbolNameVisitor.cpp SymbolNameVisitor.h + TypeOfExpression.cpp TypeOfExpression.h + TypePrettyPrinter.cpp TypePrettyPrinter.h + cppmodelmanagerbase.cpp cppmodelmanagerbase.h + findcdbbreakpoint.cpp findcdbbreakpoint.h + pp-cctype.h pp-engine.cpp + pp-engine.h pp-scanner.cpp + pp-scanner.h + pp.h +) diff --git a/src/libs/extensionsystem/CMakeLists.txt b/src/libs/extensionsystem/CMakeLists.txt new file mode 100644 index 0000000000..864c57c1ae --- /dev/null +++ b/src/libs/extensionsystem/CMakeLists.txt @@ -0,0 +1,16 @@ +add_qtc_library(ExtensionSystem + DEPENDS Aggregation Utils Qt5::Core Qt5::Widgets + PUBLIC_DEPENDS Qt5::Core + SOURCES + extensionsystem_global.h + invoker.cpp invoker.h + iplugin.cpp iplugin.h iplugin_p.h + optionsparser.cpp optionsparser.h + plugindetailsview.cpp plugindetailsview.h plugindetailsview.ui + pluginerroroverview.cpp pluginerroroverview.h pluginerroroverview.ui + pluginerrorview.cpp pluginerrorview.h pluginerrorview.ui + pluginmanager.cpp pluginmanager.h pluginmanager_p.h + pluginspec.cpp pluginspec.h pluginspec_p.h + pluginview.cpp pluginview.h + SKIP_AUTOMOC pluginmanager.cpp +) diff --git a/src/libs/glsl/CMakeLists.txt b/src/libs/glsl/CMakeLists.txt new file mode 100644 index 0000000000..e5fcb3692b --- /dev/null +++ b/src/libs/glsl/CMakeLists.txt @@ -0,0 +1,19 @@ +add_qtc_library(GLSL + DEPENDS Qt5::Core + SOURCES + glsl.h + glslast.cpp glslast.h + glslastdump.cpp glslastdump.h + glslastvisitor.cpp glslastvisitor.h + glslengine.cpp glslengine.h + glslkeywords.cpp + glsllexer.cpp glsllexer.h + glslmemorypool.cpp glslmemorypool.h + glslparser.cpp glslparser.h + glslparsertable.cpp glslparsertable_p.h + glslsemantic.cpp glslsemantic.h + glslsymbol.cpp glslsymbol.h + glslsymbols.cpp glslsymbols.h + glsltype.cpp glsltype.h + glsltypes.cpp glsltypes.h +) diff --git a/src/libs/languageserverprotocol/CMakeLists.txt b/src/libs/languageserverprotocol/CMakeLists.txt new file mode 100644 index 0000000000..9ad446817f --- /dev/null +++ b/src/libs/languageserverprotocol/CMakeLists.txt @@ -0,0 +1,23 @@ +add_qtc_library(LanguageServerProtocol + DEPENDS Utils + SOURCES + basemessage.cpp basemessage.h + client.cpp client.h + clientcapabilities.cpp clientcapabilities.h + completion.cpp completion.h + diagnostics.cpp diagnostics.h + icontent.h + initializemessages.cpp initializemessages.h + jsonkeys.h + jsonobject.cpp jsonobject.h + jsonrpcmessages.cpp jsonrpcmessages.h + languagefeatures.cpp languagefeatures.h + languageserverprotocol_global.h + lsptypes.cpp lsptypes.h + lsputils.cpp lsputils.h + messages.cpp messages.h + servercapabilities.cpp servercapabilities.h + shutdownmessages.cpp shutdownmessages.h + textsynchronization.cpp textsynchronization.h + workspace.cpp workspace.h +) diff --git a/src/libs/languageutils/CMakeLists.txt b/src/libs/languageutils/CMakeLists.txt new file mode 100644 index 0000000000..0cc47e7c60 --- /dev/null +++ b/src/libs/languageutils/CMakeLists.txt @@ -0,0 +1,7 @@ +add_qtc_library(LanguageUtils + PUBLIC_DEPENDS Qt5::Core + SOURCES + componentversion.cpp componentversion.h + fakemetaobject.cpp fakemetaobject.h + languageutils_global.h +) diff --git a/src/libs/modelinglib/CMakeLists.txt b/src/libs/modelinglib/CMakeLists.txt new file mode 100644 index 0000000000..7b09c932e4 --- /dev/null +++ b/src/libs/modelinglib/CMakeLists.txt @@ -0,0 +1,196 @@ +add_qtc_library(Modeling + DEFINES MODELING_LIBRARY + DEPENDS Qt5::Widgets Utils + PUBLIC_DEPENDS OptionalSvg + INCLUDES qtserialization/inc + PUBLIC_INCLUDES "${CMAKE_CURRENT_LIST_DIR}" + SOURCES + qmt/config/configcontroller.cpp qmt/config/configcontroller.h + qmt/config/sourcepos.cpp qmt/config/sourcepos.h + qmt/config/stereotypedefinitionparser.cpp qmt/config/stereotypedefinitionparser.h + qmt/config/stringtextsource.cpp qmt/config/stringtextsource.h + qmt/config/textscanner.cpp qmt/config/textscanner.h + qmt/config/textsource.h + qmt/config/token.cpp qmt/config/token.h + qmt/controller/container.h + qmt/controller/namecontroller.cpp qmt/controller/namecontroller.h + qmt/controller/references.h + qmt/controller/selection.cpp qmt/controller/selection.h + qmt/controller/undocommand.cpp qmt/controller/undocommand.h + qmt/controller/undocontroller.cpp qmt/controller/undocontroller.h + qmt/diagram_controller/dclonevisitor.cpp qmt/diagram_controller/dclonevisitor.h + qmt/diagram_controller/dcontainer.h + qmt/diagram_controller/dfactory.cpp qmt/diagram_controller/dfactory.h + qmt/diagram_controller/dflatassignmentvisitor.cpp qmt/diagram_controller/dflatassignmentvisitor.h + qmt/diagram_controller/diagramcontroller.cpp qmt/diagram_controller/diagramcontroller.h + qmt/diagram_controller/dreferences.h + qmt/diagram_controller/dselection.h + qmt/diagram_controller/dupdatevisitor.cpp qmt/diagram_controller/dupdatevisitor.h + qmt/diagram_controller/dvoidvisitor.cpp qmt/diagram_controller/dvoidvisitor.h + qmt/diagram/dannotation.cpp qmt/diagram/dannotation.h + qmt/diagram/dassociation.cpp qmt/diagram/dassociation.h + qmt/diagram/dboundary.cpp qmt/diagram/dboundary.h + qmt/diagram/dclass.cpp qmt/diagram/dclass.h + qmt/diagram/dcomponent.cpp qmt/diagram/dcomponent.h + qmt/diagram/dconnection.cpp qmt/diagram/dconnection.h + qmt/diagram/dconstvisitor.h + qmt/diagram/ddependency.cpp qmt/diagram/ddependency.h + qmt/diagram/ddiagram.cpp qmt/diagram/ddiagram.h + qmt/diagram/delement.cpp qmt/diagram/delement.h + qmt/diagram/dinheritance.cpp qmt/diagram/dinheritance.h + qmt/diagram/ditem.cpp qmt/diagram/ditem.h + qmt/diagram/dobject.cpp qmt/diagram/dobject.h + qmt/diagram/dpackage.cpp qmt/diagram/dpackage.h + qmt/diagram/drelation.cpp qmt/diagram/drelation.h + qmt/diagram/dswimlane.cpp qmt/diagram/dswimlane.h + qmt/diagram/dvisitor.h + qmt/diagram_scene/capabilities/alignable.h + qmt/diagram_scene/capabilities/editable.h + qmt/diagram_scene/capabilities/intersectionable.h + qmt/diagram_scene/capabilities/latchable.h + qmt/diagram_scene/capabilities/moveable.h + qmt/diagram_scene/capabilities/relationable.h + qmt/diagram_scene/capabilities/resizable.h + qmt/diagram_scene/capabilities/selectable.h + qmt/diagram_scene/capabilities/windable.h + qmt/diagram_scene/diagramgraphicsscene.cpp qmt/diagram_scene/diagramgraphicsscene.h + qmt/diagram_scene/diagramsceneconstants.h + qmt/diagram_scene/diagramscenemodel.cpp qmt/diagram_scene/diagramscenemodel.h + qmt/diagram_scene/diagramscenemodelitemvisitors.cpp qmt/diagram_scene/diagramscenemodelitemvisitors.h + qmt/diagram_scene/items/annotationitem.cpp qmt/diagram_scene/items/annotationitem.h + qmt/diagram_scene/items/associationitem.cpp qmt/diagram_scene/items/associationitem.h + qmt/diagram_scene/items/boundaryitem.cpp qmt/diagram_scene/items/boundaryitem.h + qmt/diagram_scene/items/classitem.cpp qmt/diagram_scene/items/classitem.h + qmt/diagram_scene/items/componentitem.cpp qmt/diagram_scene/items/componentitem.h + qmt/diagram_scene/items/connectionitem.cpp qmt/diagram_scene/items/connectionitem.h + qmt/diagram_scene/items/diagramitem.cpp qmt/diagram_scene/items/diagramitem.h + qmt/diagram_scene/items/itemitem.cpp qmt/diagram_scene/items/itemitem.h + qmt/diagram_scene/items/objectitem.cpp qmt/diagram_scene/items/objectitem.h + qmt/diagram_scene/items/packageitem.cpp qmt/diagram_scene/items/packageitem.h + qmt/diagram_scene/items/relationitem.cpp qmt/diagram_scene/items/relationitem.h + qmt/diagram_scene/items/stereotypedisplayvisitor.cpp qmt/diagram_scene/items/stereotypedisplayvisitor.h + qmt/diagram_scene/items/swimlaneitem.cpp qmt/diagram_scene/items/swimlaneitem.h + qmt/diagram_scene/latchcontroller.cpp qmt/diagram_scene/latchcontroller.h + qmt/diagram_scene/parts/alignbuttonsitem.cpp qmt/diagram_scene/parts/alignbuttonsitem.h + qmt/diagram_scene/parts/alignlineitem.cpp qmt/diagram_scene/parts/alignlineitem.h + qmt/diagram_scene/parts/arrowitem.cpp qmt/diagram_scene/parts/arrowitem.h + qmt/diagram_scene/parts/contextlabelitem.cpp qmt/diagram_scene/parts/contextlabelitem.h + qmt/diagram_scene/parts/customiconitem.cpp qmt/diagram_scene/parts/customiconitem.h + qmt/diagram_scene/parts/editabletextitem.cpp qmt/diagram_scene/parts/editabletextitem.h + qmt/diagram_scene/parts/pathselectionitem.cpp qmt/diagram_scene/parts/pathselectionitem.h + qmt/diagram_scene/parts/rectangularselectionitem.cpp qmt/diagram_scene/parts/rectangularselectionitem.h + qmt/diagram_scene/parts/relationstarter.cpp qmt/diagram_scene/parts/relationstarter.h + qmt/diagram_scene/parts/stereotypesitem.cpp qmt/diagram_scene/parts/stereotypesitem.h + qmt/diagram_scene/parts/templateparameterbox.cpp qmt/diagram_scene/parts/templateparameterbox.h + qmt/diagram_ui/diagram_mime_types.h + qmt/diagram_ui/diagramsmanager.cpp qmt/diagram_ui/diagramsmanager.h + qmt/diagram_ui/diagramsviewinterface.h + qmt/diagram_ui/sceneinspector.cpp qmt/diagram_ui/sceneinspector.h + qmt/diagram_widgets_ui/diagramsview.cpp qmt/diagram_widgets_ui/diagramsview.h + qmt/diagram_widgets_ui/diagramview.cpp qmt/diagram_widgets_ui/diagramview.h + qmt/diagram_widgets_ui/stackeddiagramsview.cpp qmt/diagram_widgets_ui/stackeddiagramsview.h + qmt/document_controller/documentcontroller.cpp qmt/document_controller/documentcontroller.h + qmt/infrastructure/contextmenuaction.cpp qmt/infrastructure/contextmenuaction.h + qmt/infrastructure/exceptions.cpp qmt/infrastructure/exceptions.h + qmt/infrastructure/geometryutilities.cpp qmt/infrastructure/geometryutilities.h + qmt/infrastructure/handle.h + qmt/infrastructure/handles.h + qmt/infrastructure/ioexceptions.cpp qmt/infrastructure/ioexceptions.h + qmt/infrastructure/qcompressedfile.cpp qmt/infrastructure/qcompressedfile.h + qmt/infrastructure/qmtassert.h + qmt/infrastructure/qmt_global.h + qmt/infrastructure/uid.h + qmt/model_controller/mchildrenvisitor.cpp qmt/model_controller/mchildrenvisitor.h + qmt/model_controller/mclonevisitor.cpp qmt/model_controller/mclonevisitor.h + qmt/model_controller/mcontainer.h + qmt/model_controller/mflatassignmentvisitor.cpp qmt/model_controller/mflatassignmentvisitor.h + qmt/model_controller/modelcontroller.cpp qmt/model_controller/modelcontroller.h + qmt/model_controller/mreferences.h + qmt/model_controller/mselection.h + qmt/model_controller/mvoidvisitor.cpp qmt/model_controller/mvoidvisitor.h + qmt/model/massociation.cpp qmt/model/massociation.h + qmt/model/mcanvasdiagram.cpp qmt/model/mcanvasdiagram.h + qmt/model/mclass.cpp qmt/model/mclass.h + qmt/model/mclassmember.cpp qmt/model/mclassmember.h + qmt/model/mcomponent.cpp qmt/model/mcomponent.h + qmt/model/mconnection.cpp qmt/model/mconnection.h + qmt/model/mconstvisitor.h + qmt/model/mdependency.cpp qmt/model/mdependency.h + qmt/model/mdiagram.cpp qmt/model/mdiagram.h + qmt/model/melement.cpp qmt/model/melement.h + qmt/model/minheritance.cpp qmt/model/minheritance.h + qmt/model/mitem.cpp qmt/model/mitem.h + qmt/model/mobject.cpp qmt/model/mobject.h + qmt/model/mpackage.cpp qmt/model/mpackage.h + qmt/model/mrelation.cpp qmt/model/mrelation.h + qmt/model/msourceexpansion.cpp qmt/model/msourceexpansion.h + qmt/model/mvisitor.h + qmt/model_ui/modeltreeviewinterface.h + qmt/model_ui/sortedtreemodel.cpp qmt/model_ui/sortedtreemodel.h + qmt/model_ui/stereotypescontroller.cpp qmt/model_ui/stereotypescontroller.h + qmt/model_ui/treemodel.cpp qmt/model_ui/treemodel.h + qmt/model_ui/treemodelmanager.cpp qmt/model_ui/treemodelmanager.h + qmt/model_widgets_ui/classmembersedit.cpp qmt/model_widgets_ui/classmembersedit.h + qmt/model_widgets_ui/modeltreeview.cpp qmt/model_widgets_ui/modeltreeview.h + qmt/model_widgets_ui/palettebox.cpp qmt/model_widgets_ui/palettebox.h + qmt/model_widgets_ui/propertiesview.cpp qmt/model_widgets_ui/propertiesview.h + qmt/model_widgets_ui/propertiesviewmview.cpp qmt/model_widgets_ui/propertiesviewmview.h + qmt/project_controller/projectcontroller.cpp qmt/project_controller/projectcontroller.h + qmt/project/project.cpp qmt/project/project.h + qmt/resources/resources.qrc + qmt/serializer/diagramserializer.cpp qmt/serializer/diagramserializer.h + qmt/serializer/infrastructureserializer.cpp qmt/serializer/infrastructureserializer.h + qmt/serializer/modelserializer.cpp qmt/serializer/modelserializer.h + qmt/serializer/projectserializer.cpp qmt/serializer/projectserializer.h + qmt/stereotype/customrelation.cpp qmt/stereotype/customrelation.h + qmt/stereotype/iconshape.cpp qmt/stereotype/iconshape.h + qmt/stereotype/shape.h + qmt/stereotype/shapepaintvisitor.cpp qmt/stereotype/shapepaintvisitor.h + qmt/stereotype/shapes.cpp qmt/stereotype/shapes.h + qmt/stereotype/shapevalue.cpp qmt/stereotype/shapevalue.h + qmt/stereotype/shapevisitor.h + qmt/stereotype/stereotypecontroller.cpp qmt/stereotype/stereotypecontroller.h + qmt/stereotype/stereotypeicon.cpp qmt/stereotype/stereotypeicon.h + qmt/stereotype/toolbar.cpp qmt/stereotype/toolbar.h + qmt/style/defaultstyle.cpp + qmt/style/defaultstyleengine.cpp qmt/style/defaultstyleengine.h + qmt/style/defaultstyle.h + qmt/style/objectvisuals.cpp qmt/style/objectvisuals.h + qmt/style/relationstarterstyle.cpp qmt/style/relationstarterstyle.h + qmt/style/stylecontroller.cpp qmt/style/stylecontroller.h + qmt/style/style.cpp + qmt/style/styledobject.cpp qmt/style/styledobject.h + qmt/style/styledrelation.cpp qmt/style/styledrelation.h + qmt/style/styleengine.h + qmt/style/style.h + qmt/tasks/alignonrastervisitor.cpp qmt/tasks/alignonrastervisitor.h + qmt/tasks/diagramscenecontroller.cpp qmt/tasks/diagramscenecontroller.h + qmt/tasks/finddiagramvisitor.cpp qmt/tasks/finddiagramvisitor.h + qmt/tasks/findrootdiagramvisitor.cpp qmt/tasks/findrootdiagramvisitor.h + qmt/tasks/ielementtasks.h + qmt/tasks/isceneinspector.h + qmt/tasks/voidelementtasks.cpp qmt/tasks/voidelementtasks.h + qstringparser/qstringparser.cpp qstringparser/qstringparser.h + qtserialization/inc/qark/access.h + qtserialization/inc/qark/archivebasics.h + qtserialization/inc/qark/attribute.h + qtserialization/inc/qark/baseclass.h + qtserialization/inc/qark/flag.h + qtserialization/inc/qark/friend_access.h + qtserialization/inc/qark/impl/loadingrefmap.h + qtserialization/inc/qark/impl/objectid.h + qtserialization/inc/qark/impl/savingrefmap.h + qtserialization/inc/qark/parameters.h + qtserialization/inc/qark/qxmlinarchive.h + qtserialization/inc/qark/qxmloutarchive.h + qtserialization/inc/qark/reference.h + qtserialization/inc/qark/serialize_basic.h + qtserialization/inc/qark/serialize_container.h + qtserialization/inc/qark/serialize_enum.h + qtserialization/inc/qark/serialize.h + qtserialization/inc/qark/serialize_pointer.h + qtserialization/inc/qark/tag.h + qtserialization/inc/qark/typeregistry.h + qtserialization/src/flag.cpp + qtserialization/src/savingrefmap.cpp +) diff --git a/src/libs/qmldebug/CMakeLists.txt b/src/libs/qmldebug/CMakeLists.txt new file mode 100644 index 0000000000..cdc4c36fb4 --- /dev/null +++ b/src/libs/qmldebug/CMakeLists.txt @@ -0,0 +1,18 @@ +add_qtc_library(QmlDebug + DEPENDS Qt5::Network Utils + SOURCES + baseenginedebugclient.cpp baseenginedebugclient.h + basetoolsclient.cpp basetoolsclient.h + qdebugmessageclient.cpp qdebugmessageclient.h + qmldebug_global.h + qmldebugclient.cpp qmldebugclient.h + qmldebugcommandlinearguments.h + qmldebugconnection.cpp qmldebugconnection.h + qmldebugconnectionmanager.cpp qmldebugconnectionmanager.h + qmldebugconstants.h + qmlenginecontrolclient.cpp qmlenginecontrolclient.h + qmlenginedebugclient.h + qmloutputparser.cpp qmloutputparser.h + qmltoolsclient.cpp qmltoolsclient.h + qpacketprotocol.cpp qpacketprotocol.h +) diff --git a/src/libs/qmleditorwidgets/CMakeLists.txt b/src/libs/qmleditorwidgets/CMakeLists.txt new file mode 100644 index 0000000000..b235601754 --- /dev/null +++ b/src/libs/qmleditorwidgets/CMakeLists.txt @@ -0,0 +1,22 @@ +add_qtc_library(QmlEditorWidgets + DEPENDS qmljs Utils Qt5::Widgets + SOURCES + colorbox.cpp colorbox.h + colorbutton.cpp colorbutton.h + contextpanetext.ui + contextpanetextwidget.cpp contextpanetextwidget.h + contextpanewidget.cpp contextpanewidget.h + contextpanewidgetborderimage.ui + contextpanewidgetimage.cpp contextpanewidgetimage.h contextpanewidgetimage.ui + contextpanewidgetrectangle.cpp contextpanewidgetrectangle.h contextpanewidgetrectangle.ui + customcolordialog.cpp customcolordialog.h + easingpane/easingcontextpane.cpp easingpane/easingcontextpane.h easingpane/easingcontextpane.ui + easingpane/easinggraph.cpp easingpane/easinggraph.h + easingpane/easingpane.qrc + filewidget.cpp filewidget.h + fontsizespinbox.cpp fontsizespinbox.h + gradientline.cpp gradientline.h + huecontrol.cpp huecontrol.h + qmleditorwidgets_global.h + resources.qrc +) diff --git a/src/libs/qmljs/CMakeLists.txt b/src/libs/qmljs/CMakeLists.txt new file mode 100644 index 0000000000..6a4ef362bc --- /dev/null +++ b/src/libs/qmljs/CMakeLists.txt @@ -0,0 +1,53 @@ +add_qtc_library(qmljs + DEPENDS ExtensionSystem Utils + PUBLIC_DEPENDS CPlusPlus Qt5::Widgets Qt5::Xml LanguageUtils + SOURCES + jsoncheck.cpp jsoncheck.h + parser/qmldirparser.cpp parser/qmldirparser_p.h + parser/qmlerror.cpp parser/qmlerror.h + parser/qmljsast.cpp parser/qmljsast_p.h + parser/qmljsastfwd_p.h + parser/qmljsastvisitor.cpp parser/qmljsastvisitor_p.h + parser/qmljsengine_p.cpp parser/qmljsengine_p.h + parser/qmljsglobal_p.h + parser/qmljsgrammar.cpp parser/qmljsgrammar_p.h + parser/qmljskeywords_p.h + parser/qmljslexer.cpp parser/qmljslexer_p.h + parser/qmljsmemorypool_p.h + parser/qmljsparser.cpp parser/qmljsparser_p.h + persistenttrie.cpp persistenttrie.h + qmljs_global.h + qmljsbind.cpp qmljsbind.h + qmljsbundle.cpp qmljsbundle.h + qmljscheck.cpp qmljscheck.h + qmljscodeformatter.cpp qmljscodeformatter.h + qmljscompletioncontextfinder.cpp qmljscompletioncontextfinder.h + qmljsconstants.h + qmljscontext.cpp qmljscontext.h + qmljsdialect.cpp qmljsdialect.h + qmljsdocument.cpp qmljsdocument.h + qmljsevaluate.cpp qmljsevaluate.h + qmljsfindexportedcpptypes.cpp qmljsfindexportedcpptypes.h + qmljsicons.cpp qmljsicons.h + qmljsicontextpane.h + qmljsimportdependencies.cpp qmljsimportdependencies.h + qmljsindenter.cpp qmljsindenter.h + qmljsinterpreter.cpp qmljsinterpreter.h + qmljslineinfo.cpp qmljslineinfo.h + qmljslink.cpp qmljslink.h + qmljsmodelmanagerinterface.cpp qmljsmodelmanagerinterface.h + qmljsplugindumper.cpp qmljsplugindumper.h + qmljspropertyreader.cpp qmljspropertyreader.h + qmljsreformatter.cpp qmljsreformatter.h + qmljsrewriter.cpp qmljsrewriter.h + qmljsscanner.cpp qmljsscanner.h + qmljsscopeastpath.cpp qmljsscopeastpath.h + qmljsscopebuilder.cpp qmljsscopebuilder.h + qmljsscopechain.cpp qmljsscopechain.h + qmljssimplereader.cpp qmljssimplereader.h + qmljsstaticanalysismessage.cpp qmljsstaticanalysismessage.h + qmljstypedescriptionreader.cpp qmljstypedescriptionreader.h + qmljsutils.cpp qmljsutils.h + qmljsvalueowner.cpp qmljsvalueowner.h + qmljsviewercontext.cpp qmljsviewercontext.h +) diff --git a/src/libs/qtcreatorcdbext/CMakeLists.txt b/src/libs/qtcreatorcdbext/CMakeLists.txt new file mode 100644 index 0000000000..15ab799083 --- /dev/null +++ b/src/libs/qtcreatorcdbext/CMakeLists.txt @@ -0,0 +1,46 @@ +#todo +# - handle if there is no debug python lib python35_d +# - needs to be tested + +if (MINGW) + message(STATUS "MinGW detected. Removing qtcreatorcdbext from build.") + return() +endif() + +include(CheckIncludeFile) +check_include_file(wdbgexts.h HAVE_WDBGEXTS_H) +if (NOT HAVE_WDBGEXTS_H) + message(WARNING "wdbgexts.h not found. Removing qtcreatorcdbext from build.") + return() +endif() + +find_package(PythonLibs 3.5) +if (NOT ${PYTHONLIBS_FOUND}) + message(WARNING "PythonLibs 3.5 not found. Removing qtcreatorcdbext from build.") + return() +endif() + +add_qtc_library(qtcreatorcdbext + DEPENDS ${PYTHON_LIBRARIES} + INCLUDES ${PYTHON_INCLUDE_DIR} + DEFINES WITH_PYTHON=1 + SOURCES + common.cpp common.h + containers.cpp containers.h + eventcallback.cpp eventcallback.h + extensioncontext.cpp extensioncontext.h + gdbmihelpers.cpp gdbmihelpers.h + iinterfacepointer.h + knowntype.h + outputcallback.cpp outputcallback.h + pycdbextmodule.cpp pycdbextmodule.h + pyfield.cpp pyfield.h + pystdoutredirect.cpp pystdoutredirect.h + pytype.cpp pytype.h + pyvalue.cpp pyvalue.h + qtcreatorcdbextension.cpp + stringutils.cpp stringutils.h + symbolgroup.cpp symbolgroup.h + symbolgroupnode.cpp symbolgroupnode.h + symbolgroupvalue.cpp symbolgroupvalue.h +) diff --git a/src/libs/sqlite/CMakeLists.txt b/src/libs/sqlite/CMakeLists.txt new file mode 100644 index 0000000000..a1359feb92 --- /dev/null +++ b/src/libs/sqlite/CMakeLists.txt @@ -0,0 +1,27 @@ +add_qtc_library(Sqlite + DEFINES + SQLITE_THREADSAFE=2 SQLITE_ENABLE_FTS4 SQLITE_ENABLE_FTS3_PARENTHESIS + SQLITE_ENABLE_UNLOCK_NOTIFY SQLITE_ENABLE_COLUMN_METADATA + BUILD_SQLITE_LIBRARY + DEPENDS Qt5::Core + PUBLIC_INCLUDES "${CMAKE_CURRENT_LIST_DIR}" "${CMAKE_CURRENT_LIST_DIR}/../3rdparty/sqlite" + SOURCES + ../3rdparty/sqlite/sqlite3.c + createtablesqlstatementbuilder.cpp createtablesqlstatementbuilder.h + sqlitebasestatement.cpp sqlitebasestatement.h + sqlitecolumn.cpp sqlitecolumn.h + sqlitedatabase.cpp sqlitedatabase.h + sqlitedatabasebackend.cpp sqlitedatabasebackend.h + sqliteexception.cpp sqliteexception.h + sqliteglobal.cpp sqliteglobal.h + sqliteindex.h + sqlitereadstatement.cpp sqlitereadstatement.h + sqlitereadwritestatement.cpp sqlitereadwritestatement.h + sqlitetable.cpp sqlitetable.h + sqlitetransaction.h + sqlitewritestatement.cpp sqlitewritestatement.h + sqlstatementbuilder.cpp sqlstatementbuilder.h + sqlstatementbuilderexception.cpp sqlstatementbuilderexception.h + utf8string.cpp utf8string.h + utf8stringvector.cpp utf8stringvector.h +) diff --git a/src/libs/ssh/CMakeLists.txt b/src/libs/ssh/CMakeLists.txt new file mode 100644 index 0000000000..6f5d1cb764 --- /dev/null +++ b/src/libs/ssh/CMakeLists.txt @@ -0,0 +1,22 @@ +add_qtc_library(QtcSsh + DEPENDS Qt5::Core Qt5::Network Qt5::Widgets Utils + SOURCES + sftpdefs.cpp sftpdefs.h + sftpfilesystemmodel.cpp sftpfilesystemmodel.h + sftpsession.cpp sftpsession.h + sftptransfer.cpp sftptransfer.h + ssh.qrc + ssh_global.h + sshconnection.cpp sshconnection.h + sshconnectionmanager.cpp sshconnectionmanager.h + sshkeycreationdialog.cpp sshkeycreationdialog.h sshkeycreationdialog.ui + sshlogging.cpp sshlogging_p.h + sshprocess.cpp sshprocess.h + sshconnection.cpp sshconnection.h + sshconnectionmanager.cpp sshconnectionmanager.h + sshkeycreationdialog.cpp sshkeycreationdialog.h sshkeycreationdialog.ui + sshlogging.cpp sshlogging_p.h + sshremoteprocess.cpp sshremoteprocess.h + sshremoteprocessrunner.cpp sshremoteprocessrunner.h + sshsettings.cpp sshsettings.h +) diff --git a/src/libs/tracing/CMakeLists.txt b/src/libs/tracing/CMakeLists.txt new file mode 100644 index 0000000000..153756323e --- /dev/null +++ b/src/libs/tracing/CMakeLists.txt @@ -0,0 +1,35 @@ +if (WITH_TESTS) + set(TEST_SOURCES + runscenegraphtest.cpp runscenegraphtest.h + ) +endif() + +add_qtc_library(Tracing + DEPENDS Utils Qt5::Qml Qt5::Quick + PUBLIC_INCLUDES "${CMAKE_CURRENT_SOURCE_DIR}" + SOURCES ${TEST_SOURCES} + flamegraph.cpp flamegraph.h + flamegraphattached.h + safecastable.h + qml/tracing.qrc + timelineabstractrenderer.cpp timelineabstractrenderer.h timelineabstractrenderer_p.h + timelineformattime.cpp timelineformattime.h + timelineitemsrenderpass.cpp timelineitemsrenderpass.h + timelinemodel.cpp timelinemodel.h timelinemodel_p.h + timelinemodelaggregator.cpp timelinemodelaggregator.h + timelinenotesmodel.cpp timelinenotesmodel.h timelinenotesmodel_p.h + timelinenotesrenderpass.cpp timelinenotesrenderpass.h + timelineoverviewrenderer.cpp timelineoverviewrenderer.h timelineoverviewrenderer_p.h + timelinerenderer.cpp timelinerenderer.h timelinerenderer_p.h + timelinerenderpass.cpp timelinerenderpass.h + timelinerenderstate.cpp timelinerenderstate.h timelinerenderstate_p.h + timelineselectionrenderpass.cpp timelineselectionrenderpass.h + timelinetheme.cpp timelinetheme.h + timelinetracefile.cpp timelinetracefile.h + timelinetracemanager.cpp timelinetracemanager.h + timelinezoomcontrol.cpp timelinezoomcontrol.h + traceevent.h + traceeventtype.h + tracestashfile.h + tracing_global.h +) diff --git a/src/libs/utils/CMakeLists.txt b/src/libs/utils/CMakeLists.txt new file mode 100644 index 0000000000..4e7f0ffa6e --- /dev/null +++ b/src/libs/utils/CMakeLists.txt @@ -0,0 +1,214 @@ +set(WIN_SOURCES + consoleprocess_win.cpp + process_ctrlc_stub.cpp + touchbar/touchbar.cpp +) +set(MAC_SOURCES + consoleprocess_unix.cpp + fileutils_mac.mm fileutils_mac.h + processhandle_mac.mm + theme/theme_mac.mm theme/theme_mac.h + touchbar/touchbar_appdelegate_mac.mm touchbar/touchbar_appdelegate_mac_p.h + touchbar/touchbar_mac.mm touchbar/touchbar_mac_p.h +) +set(UNIX_SOURCES + consoleprocess_unix.cpp + touchbar/touchbar.cpp +) + +if (WIN32) + set(PLATFORM_SOURCES ${WIN_SOURCES}) + set(PLATFORM_DEPENDS user32 iphlpapi ws2_32 shell32) +elseif (APPLE) + set(PLATFORM_SOURCES ${MAC_SOURCES}) + find_library(FWFoundation Foundation) + find_library(FWAppKit AppKit) + set(PLATFORM_DEPENDS ${FWFoundation} ${FWAppKit}) +else() + set(PLATFORM_SOURCES ${UNIX_SOURCES}) + set(PLATFORM_DEPENDS) +endif() + +if (IDE_LIBEXEC_PATH AND IDE_BIN_PATH) + file(RELATIVE_PATH RELATIVE_TOOLS_PATH + "${CMAKE_INSTALL_PREFIX}/${IDE_LIBEXEC_PATH}" "${CMAKE_INSTALL_PREFIX}/${IDE_BIN_PATH}") +else() + message(WARNING "IDE_LIBEXEC_PATH or IDE_BIN_PATH undefined when calculating tools path") + set(RELATIVE_TOOLS_PATH "") +endif() + +add_qtc_library(Utils + DEPENDS ${PLATFORM_DEPENDS} Qt5::Xml + PUBLIC_DEPENDS Qt5::Concurrent Qt5::Core Qt5::Network Qt5::Qml Qt5::Gui Qt5::Widgets + DEFINES + "QTC_REL_TOOLS_PATH=\"${RELATIVE_TOOLS_PATH}\"" + SOURCES + ${PLATFORM_SOURCES} + ../3rdparty/optional/optional.hpp + ../3rdparty/variant/variant.hpp + QtConcurrentTools + algorithm.h + ansiescapecodehandler.cpp ansiescapecodehandler.h + appmainwindow.cpp appmainwindow.h + basetreeview.cpp basetreeview.h + benchmarker.cpp benchmarker.h + buildablehelperlibrary.cpp buildablehelperlibrary.h + categorysortfiltermodel.cpp categorysortfiltermodel.h + changeset.cpp changeset.h + checkablemessagebox.cpp checkablemessagebox.h + classnamevalidatinglineedit.cpp classnamevalidatinglineedit.h + codegeneration.cpp codegeneration.h + completinglineedit.cpp completinglineedit.h + completingtextedit.cpp completingtextedit.h + consoleprocess.cpp consoleprocess.h consoleprocess_p.h + cpplanguage_details.h + crumblepath.cpp crumblepath.h + delegates.cpp delegates.h + declarationmacros.h + detailsbutton.cpp detailsbutton.h + detailswidget.cpp detailswidget.h + differ.cpp differ.h + dropsupport.cpp dropsupport.h + elfreader.cpp elfreader.h + elidinglabel.cpp elidinglabel.h + environment.cpp environment.h + environmentdialog.cpp environmentdialog.h + environmentmodel.cpp environmentmodel.h + execmenu.cpp execmenu.h + executeondestruction.h + fadingindicator.cpp fadingindicator.h + faketooltip.cpp faketooltip.h + fancylineedit.cpp fancylineedit.h + fancymainwindow.cpp fancymainwindow.h + filecrumblabel.cpp filecrumblabel.h + fileinprojectfinder.cpp fileinprojectfinder.h + filenamevalidatinglineedit.cpp filenamevalidatinglineedit.h + filesearch.cpp filesearch.h + filesystemwatcher.cpp filesystemwatcher.h + fileutils.cpp fileutils.h + filewizardpage.cpp filewizardpage.h + fixedsizeclicklabel.cpp fixedsizeclicklabel.h + flowlayout.cpp flowlayout.h + functiontraits.h + fuzzymatcher.cpp fuzzymatcher.h + genericconstants.h + globalfilechangeblocker.cpp globalfilechangeblocker.h + guard.cpp guard.h + headerviewstretcher.cpp headerviewstretcher.h + highlightingitemdelegate.cpp highlightingitemdelegate.h + historycompleter.cpp historycompleter.h + hostosinfo.cpp hostosinfo.h + htmldocextractor.cpp htmldocextractor.h + icon.cpp icon.h + itemviews.cpp itemviews.h + json.cpp json.h + jsontreeitem.cpp jsontreeitem.h + linecolumn.h + link.h + listmodel.h + listutils.h + macroexpander.cpp macroexpander.h + mapreduce.h + mimetypes/mimedatabase.cpp mimetypes/mimedatabase.h mimetypes/mimedatabase_p.h + mimetypes/mimeglobpattern.cpp mimetypes/mimeglobpattern_p.h + mimetypes/mimemagicrule.cpp mimetypes/mimemagicrule_p.h + mimetypes/mimemagicrulematcher.cpp mimetypes/mimemagicrulematcher_p.h + mimetypes/mimeprovider.cpp mimetypes/mimeprovider_p.h + mimetypes/mimetype.cpp mimetypes/mimetype.h mimetypes/mimetype_p.h + mimetypes/mimetypeparser.cpp mimetypes/mimetypeparser_p.h + navigationtreeview.cpp navigationtreeview.h + networkaccessmanager.cpp networkaccessmanager.h + newclasswidget.cpp newclasswidget.h newclasswidget.ui + optional.h + osspecificaspects.h + outputformat.h + outputformatter.cpp outputformatter.h + overridecursor.cpp overridecursor.h + parameteraction.cpp parameteraction.h + pathchooser.cpp pathchooser.h + pathlisteditor.cpp pathlisteditor.h + persistentsettings.cpp persistentsettings.h + pointeralgorithm.h + port.cpp port.h + portlist.cpp portlist.h + predicates.h + processhandle.cpp processhandle.h + progressindicator.cpp progressindicator.h + projectintropage.cpp projectintropage.h projectintropage.ui + proxyaction.cpp proxyaction.h + proxycredentialsdialog.cpp proxycredentialsdialog.h proxycredentialsdialog.ui + qrcparser.cpp qrcparser.h + qtcassert.cpp qtcassert.h + qtcolorbutton.cpp qtcolorbutton.h + qtcprocess.cpp qtcprocess.h + reloadpromptutils.cpp reloadpromptutils.h + removefiledialog.cpp removefiledialog.h removefiledialog.ui + runextensions.cpp runextensions.h + savedaction.cpp savedaction.h + savefile.cpp savefile.h + scopedswap.h + settingsaccessor.cpp settingsaccessor.h + settingsselector.cpp settingsselector.h + settingsutils.h + shellcommand.cpp shellcommand.h + shellcommandpage.cpp shellcommandpage.h + sizedarray.h + smallstring.h + smallstringfwd.h + smallstringio.h + smallstringiterator.h + smallstringlayout.h + smallstringliteral.h + smallstringmemory.h + smallstringvector.h + smallstringview.h + statuslabel.cpp statuslabel.h + stringutils.cpp stringutils.h + styledbar.cpp styledbar.h + stylehelper.cpp stylehelper.h + synchronousprocess.cpp synchronousprocess.h + templateengine.cpp templateengine.h + temporarydirectory.cpp temporarydirectory.h + temporaryfile.cpp temporaryfile.h + textfieldcheckbox.cpp textfieldcheckbox.h + textfieldcombobox.cpp textfieldcombobox.h + textfileformat.cpp textfileformat.h + textutils.cpp textutils.h + theme/theme.cpp theme/theme.h theme/theme_p.h + tooltip/effects.h + tooltip/reuse.h + tooltip/tips.cpp tooltip/tips.h + tooltip/tooltip.cpp tooltip/tooltip.h + touchbar/touchbar.h + treemodel.cpp treemodel.h + treeviewcombobox.cpp treeviewcombobox.h + uncommentselection.cpp uncommentselection.h + unixutils.cpp unixutils.h + url.cpp url.h + utils.qrc + utils_global.h + utilsicons.cpp utilsicons.h + variant.h + winutils.cpp winutils.h + wizard.cpp wizard.h + wizardpage.cpp wizardpage.h +) + +if (WIN32) + target_compile_definitions(Utils + PRIVATE _UNICODE UNICODE + PUBLIC _CRT_SECURE_NO_WARNINGS _SCL_SECURE_NO_WARNINGS) +endif() + +set(PROCESS_STUB_SOURCES process_stub_unix.c) +if (WIN32) + set(PROCESS_STUB_SOURCES process_stub_win.c) +endif() + +add_executable(qtcreator_process_stub ${PROCESS_STUB_SOURCES}) +if (WIN32) + target_link_libraries(qtcreator_process_stub shell32) + target_compile_definitions(qtcreator_process_stub PRIVATE + _UNICODE UNICODE _CRT_SECURE_NO_WARNINGS) +endif() +install(TARGETS qtcreator_process_stub DESTINATION ${IDE_LIBEXEC_PATH}) diff --git a/src/plugins/CMakeLists.txt b/src/plugins/CMakeLists.txt new file mode 100644 index 0000000000..fbb7782d01 --- /dev/null +++ b/src/plugins/CMakeLists.txt @@ -0,0 +1,83 @@ +# Level 0: +add_subdirectory(coreplugin) + +# Level 1: (only depends of Level 0) +add_subdirectory(texteditor) +add_subdirectory(serialterminal) +add_subdirectory(helloworld) +add_subdirectory(imageviewer) +add_subdirectory(updateinfo) +add_subdirectory(welcome) + +# Level 2: (only depends on Level 1 and below) +add_subdirectory(bineditor) +add_subdirectory(cpaster) +add_subdirectory(diffeditor) +add_subdirectory(emacskeys) +add_subdirectory(macros) +add_subdirectory(projectexplorer) + +# Level 3: (only depends on Level 2 and below) +add_subdirectory(bookmarks) +add_subdirectory(cpptools) +add_subdirectory(help) +add_subdirectory(resourceeditor) +add_subdirectory(tasklist) +add_subdirectory(nim) + +# Level 4: (only depends on Level 3 and below) +add_subdirectory(clangpchmanager) +add_subdirectory(classview) +add_subdirectory(cppcheck) +add_subdirectory(cppeditor) +add_subdirectory(glsleditor) +add_subdirectory(modeleditor) +add_subdirectory(qtsupport) +add_subdirectory(todo) +add_subdirectory(vcsbase) + +# Level 5: +add_subdirectory(bazaar) +add_subdirectory(beautifier) +add_subdirectory(clangformat) +add_subdirectory(clangrefactoring) +add_subdirectory(clearcase) +add_subdirectory(cmakeprojectmanager) +add_subdirectory(cvs) +add_subdirectory(debugger) +add_subdirectory(designer) +add_subdirectory(fakevim) +add_subdirectory(genericprojectmanager) +add_subdirectory(git) +add_subdirectory(mercurial) +add_subdirectory(perforce) +add_subdirectory(pythoneditor) +add_subdirectory(qmakeprojectmanager) +add_subdirectory(qmljstools) +add_subdirectory(qmlprojectmanager) +add_subdirectory(scxmleditor) +add_subdirectory(subversion) +add_subdirectory(compilationdatabaseprojectmanager) +add_subdirectory(languageclient) +add_subdirectory(studiowelcome) + +# Level 6: +add_subdirectory(android) +add_subdirectory(autotest) +add_subdirectory(autotoolsprojectmanager) +add_subdirectory(baremetal) +add_subdirectory(clangcodemodel) +add_subdirectory(clangtools) +add_subdirectory(ios) +add_subdirectory(qmljseditor) +add_subdirectory(qmlpreview) +add_subdirectory(qmlprofiler) +add_subdirectory(remotelinux) +add_subdirectory(valgrind) +add_subdirectory(winrt) +add_subdirectory(perfprofiler) +add_subdirectory(qbsprojectmanager) + +# Level 7: +add_subdirectory(qmldesigner) +add_subdirectory(qnx) diff --git a/src/plugins/android/CMakeLists.txt b/src/plugins/android/CMakeLists.txt new file mode 100644 index 0000000000..36bde749a9 --- /dev/null +++ b/src/plugins/android/CMakeLists.txt @@ -0,0 +1,52 @@ +add_qtc_plugin(Android + DEPENDS QtcSsh QmlDebug Qt5::Xml + PLUGIN_DEPENDS Core Debugger ProjectExplorer QtSupport + SOURCES + adbcommandswidget.cpp adbcommandswidget.h adbcommandswidget.ui + addnewavddialog.ui + android.qrc + android_global.h + androidavdmanager.cpp androidavdmanager.h + androidbuildapkstep.cpp androidbuildapkstep.h + androidbuildapkwidget.cpp androidbuildapkwidget.h + androidconfigurations.cpp androidconfigurations.h + androidconstants.h + androidcreatekeystorecertificate.cpp androidcreatekeystorecertificate.h androidcreatekeystorecertificate.ui + androiddebugsupport.cpp androiddebugsupport.h + androiddeployqtstep.cpp androiddeployqtstep.h + androiddevice.cpp androiddevice.h + androiddevicedialog.cpp androiddevicedialog.h androiddevicedialog.ui + androiderrormessage.cpp androiderrormessage.h + androidextralibrarylistmodel.cpp androidextralibrarylistmodel.h + androidgdbserverkitinformation.cpp androidgdbserverkitinformation.h + androidglobal.h + androidmanager.cpp androidmanager.h + androidmanifestdocument.cpp androidmanifestdocument.h + androidmanifesteditor.cpp androidmanifesteditor.h + androidmanifesteditorfactory.cpp androidmanifesteditorfactory.h + androidmanifesteditorwidget.cpp androidmanifesteditorwidget.h + androidpackageinstallationstep.cpp androidpackageinstallationstep.h + androidplugin.cpp androidplugin.h + androidpotentialkit.cpp androidpotentialkit.h + androidqmltoolingsupport.cpp androidqmltoolingsupport.h + androidqtversion.cpp androidqtversion.h + androidrunconfiguration.cpp androidrunconfiguration.h + androidruncontrol.cpp androidruncontrol.h + androidrunner.cpp androidrunner.h + androidrunnerworker.cpp androidrunnerworker.h + androidsdkmanager.cpp androidsdkmanager.h + androidsdkmanagerwidget.cpp androidsdkmanagerwidget.h androidsdkmanagerwidget.ui + androidsdkmodel.cpp androidsdkmodel.h + androidsdkpackage.cpp androidsdkpackage.h + androidsettingspage.cpp androidsettingspage.h + androidsettingswidget.cpp androidsettingswidget.h androidsettingswidget.ui + androidsignaloperation.cpp androidsignaloperation.h + androidtoolchain.cpp androidtoolchain.h + androidtoolmanager.cpp androidtoolmanager.h + avddialog.cpp avddialog.h + certificatesmodel.cpp certificatesmodel.h + createandroidmanifestwizard.cpp createandroidmanifestwizard.h + javaeditor.cpp javaeditor.h + javaindenter.cpp javaindenter.h + javaparser.cpp javaparser.h +) diff --git a/src/plugins/autotest/CMakeLists.txt b/src/plugins/autotest/CMakeLists.txt new file mode 100644 index 0000000000..e5a6b98f3e --- /dev/null +++ b/src/plugins/autotest/CMakeLists.txt @@ -0,0 +1,70 @@ +if (WITH_TESTS) + set(TEST_COMPONENT QmakeProjectManager QtSupport) +endif() + +add_qtc_plugin(AutoTest + PLUGIN_DEPENDS Core CppTools Debugger ProjectExplorer QmlJSTools TextEditor ${TEST_COMPONENT} + SOURCES + autotest.qrc + autotest_global.h + autotestconstants.h + autotesticons.h + autotestplugin.cpp autotestplugin.h + autotestunittests.qrc + gtest/gtest_utils.cpp gtest/gtest_utils.h + gtest/gtestconfiguration.cpp gtest/gtestconfiguration.h + gtest/gtestconstants.h + gtest/gtestframework.cpp gtest/gtestframework.h + gtest/gtestoutputreader.cpp gtest/gtestoutputreader.h + gtest/gtestparser.cpp gtest/gtestparser.h + gtest/gtestresult.cpp gtest/gtestresult.h + gtest/gtestsettings.cpp gtest/gtestsettings.h + gtest/gtestsettingspage.cpp gtest/gtestsettingspage.h gtest/gtestsettingspage.ui + gtest/gtesttreeitem.cpp gtest/gtesttreeitem.h + gtest/gtestvisitors.cpp gtest/gtestvisitors.h + iframeworksettings.h + itestframework.h + itestparser.cpp itestparser.h + itestsettingspage.h + qtest/qttest_utils.cpp qtest/qttest_utils.h + qtest/qttestconfiguration.cpp qtest/qttestconfiguration.h + qtest/qttestconstants.h + qtest/qttestframework.cpp qtest/qttestframework.h + qtest/qttestoutputreader.cpp qtest/qttestoutputreader.h + qtest/qttestparser.cpp qtest/qttestparser.h + qtest/qttestresult.cpp qtest/qttestresult.h + qtest/qttestsettings.cpp qtest/qttestsettings.h + qtest/qttestsettingspage.cpp qtest/qttestsettingspage.h qtest/qttestsettingspage.ui + qtest/qttesttreeitem.cpp qtest/qttesttreeitem.h + qtest/qttestvisitors.cpp qtest/qttestvisitors.h + quick/quicktest_utils.cpp quick/quicktest_utils.h + quick/quicktestconfiguration.cpp quick/quicktestconfiguration.h + quick/quicktestframework.cpp quick/quicktestframework.h + quick/quicktestparser.cpp quick/quicktestparser.h + quick/quicktesttreeitem.cpp quick/quicktesttreeitem.h + quick/quicktestvisitors.cpp quick/quicktestvisitors.h + testcodeparser.cpp testcodeparser.h + testconfiguration.cpp testconfiguration.h + testeditormark.cpp testeditormark.h + testframeworkmanager.cpp testframeworkmanager.h + testnavigationwidget.cpp testnavigationwidget.h + testoutputreader.cpp testoutputreader.h + testresult.cpp testresult.h + testresultdelegate.cpp testresultdelegate.h + testresultmodel.cpp testresultmodel.h + testresultspane.cpp testresultspane.h + testrunconfiguration.h + testrunner.cpp testrunner.h + testsettings.cpp testsettings.h + testsettingspage.cpp testsettingspage.h testsettingspage.ui + testtreeitem.cpp testtreeitem.h + testtreeitemdelegate.cpp testtreeitemdelegate.h + testtreemodel.cpp testtreemodel.h + testtreeview.cpp testtreeview.h +) + +if (WITH_TESTS) + target_sources(AutoTest PRIVATE + autotestunittests.cpp autotestunittests.h + ) +endif() diff --git a/src/plugins/autotoolsprojectmanager/CMakeLists.txt b/src/plugins/autotoolsprojectmanager/CMakeLists.txt new file mode 100644 index 0000000000..ca8765cba9 --- /dev/null +++ b/src/plugins/autotoolsprojectmanager/CMakeLists.txt @@ -0,0 +1,15 @@ +add_qtc_plugin(AutotoolsProjectManager + PLUGIN_DEPENDS Core CppTools ProjectExplorer QtSupport + SOURCES + autogenstep.cpp autogenstep.h + autoreconfstep.cpp autoreconfstep.h + autotoolsbuildconfiguration.cpp autotoolsbuildconfiguration.h + autotoolsopenprojectwizard.cpp autotoolsopenprojectwizard.h + autotoolsproject.cpp autotoolsproject.h + autotoolsprojectconstants.h + autotoolsprojectplugin.cpp autotoolsprojectplugin.h + configurestep.cpp configurestep.h + makefileparser.cpp makefileparser.h + makefileparserthread.cpp makefileparserthread.h + makestep.cpp makestep.h +) diff --git a/src/plugins/baremetal/CMakeLists.txt b/src/plugins/baremetal/CMakeLists.txt new file mode 100644 index 0000000000..f9d9bc0dc5 --- /dev/null +++ b/src/plugins/baremetal/CMakeLists.txt @@ -0,0 +1,30 @@ +add_qtc_plugin(BareMetal + DEPENDS QtcSsh + PLUGIN_DEPENDS Core Debugger ProjectExplorer + SOURCES + baremetal.qrc + baremetalconstants.h + baremetalcustomrunconfiguration.cpp baremetalcustomrunconfiguration.h + baremetaldebugsupport.cpp baremetaldebugsupport.h + baremetaldevice.cpp baremetaldevice.h + baremetaldeviceconfigurationwidget.cpp baremetaldeviceconfigurationwidget.h + baremetaldeviceconfigurationwizard.cpp baremetaldeviceconfigurationwizard.h + baremetaldeviceconfigurationwizardpages.cpp baremetaldeviceconfigurationwizardpages.h + baremetalgdbcommandsdeploystep.cpp baremetalgdbcommandsdeploystep.h + baremetalplugin.cpp baremetalplugin.h + baremetalrunconfiguration.cpp baremetalrunconfiguration.h + defaultgdbserverprovider.cpp defaultgdbserverprovider.h + gdbserverprovider.cpp gdbserverprovider.h + gdbserverproviderchooser.cpp gdbserverproviderchooser.h + gdbserverprovidermanager.cpp gdbserverprovidermanager.h + gdbserverproviderprocess.cpp gdbserverproviderprocess.h + gdbserverproviderssettingspage.cpp gdbserverproviderssettingspage.h + iarewparser.cpp iarewparser.h + iarewtoolchain.cpp iarewtoolchain.h + keilparser.cpp keilparser.h + keiltoolchain.cpp keiltoolchain.h + sdccparser.cpp sdccparser.h + sdcctoolchain.cpp sdcctoolchain.h + openocdgdbserverprovider.cpp openocdgdbserverprovider.h + stlinkutilgdbserverprovider.cpp stlinkutilgdbserverprovider.h +) diff --git a/src/plugins/bazaar/CMakeLists.txt b/src/plugins/bazaar/CMakeLists.txt new file mode 100644 index 0000000000..145323c42a --- /dev/null +++ b/src/plugins/bazaar/CMakeLists.txt @@ -0,0 +1,19 @@ +add_qtc_plugin(Bazaar + PLUGIN_DEPENDS Core TextEditor VcsBase + SOURCES + annotationhighlighter.cpp annotationhighlighter.h + bazaarclient.cpp bazaarclient.h + bazaarcommitpanel.ui + bazaarcommitwidget.cpp bazaarcommitwidget.h + bazaarcontrol.cpp bazaarcontrol.h + bazaareditor.cpp bazaareditor.h + bazaarplugin.cpp bazaarplugin.h + bazaarsettings.cpp bazaarsettings.h + branchinfo.cpp branchinfo.h + commiteditor.cpp commiteditor.h + constants.h + optionspage.cpp optionspage.h optionspage.ui + pullorpushdialog.cpp pullorpushdialog.h pullorpushdialog.ui + revertdialog.ui + uncommitdialog.cpp uncommitdialog.h uncommitdialog.ui +) diff --git a/src/plugins/beautifier/CMakeLists.txt b/src/plugins/beautifier/CMakeLists.txt new file mode 100644 index 0000000000..f9955105ad --- /dev/null +++ b/src/plugins/beautifier/CMakeLists.txt @@ -0,0 +1,27 @@ +add_qtc_plugin(Beautifier + DEPENDS Qt5::Xml + PLUGIN_DEPENDS Core CppEditor DiffEditor ProjectExplorer TextEditor + SOURCES + abstractsettings.cpp abstractsettings.h + artisticstyle/artisticstyle.cpp artisticstyle/artisticstyle.h + artisticstyle/artisticstyleconstants.h + artisticstyle/artisticstyleoptionspage.cpp artisticstyle/artisticstyleoptionspage.h artisticstyle/artisticstyleoptionspage.ui + artisticstyle/artisticstylesettings.cpp artisticstyle/artisticstylesettings.h + beautifier.qrc + beautifierabstracttool.h + beautifierconstants.h + beautifierplugin.cpp beautifierplugin.h + clangformat/clangformat.cpp clangformat/clangformat.h + clangformat/clangformatconstants.h + clangformat/clangformatoptionspage.cpp clangformat/clangformatoptionspage.h clangformat/clangformatoptionspage.ui + clangformat/clangformatsettings.cpp clangformat/clangformatsettings.h + configurationdialog.cpp configurationdialog.h configurationdialog.ui + configurationeditor.cpp configurationeditor.h + configurationpanel.cpp configurationpanel.h configurationpanel.ui + generaloptionspage.cpp generaloptionspage.h generaloptionspage.ui + generalsettings.cpp generalsettings.h + uncrustify/uncrustify.cpp uncrustify/uncrustify.h + uncrustify/uncrustifyconstants.h + uncrustify/uncrustifyoptionspage.cpp uncrustify/uncrustifyoptionspage.h uncrustify/uncrustifyoptionspage.ui + uncrustify/uncrustifysettings.cpp uncrustify/uncrustifysettings.h +) diff --git a/src/plugins/bineditor/CMakeLists.txt b/src/plugins/bineditor/CMakeLists.txt new file mode 100644 index 0000000000..fda0791388 --- /dev/null +++ b/src/plugins/bineditor/CMakeLists.txt @@ -0,0 +1,10 @@ +add_qtc_plugin(BinEditor + PLUGIN_DEPENDS Core TextEditor + SOURCES + bineditor_global.h + bineditorconstants.h + bineditorplugin.cpp bineditorplugin.h + bineditorservice.h + bineditorwidget.cpp bineditorwidget.h + markup.cpp markup.h +) diff --git a/src/plugins/bookmarks/CMakeLists.txt b/src/plugins/bookmarks/CMakeLists.txt new file mode 100644 index 0000000000..2c6847cffc --- /dev/null +++ b/src/plugins/bookmarks/CMakeLists.txt @@ -0,0 +1,9 @@ +add_qtc_plugin(Bookmarks + PLUGIN_DEPENDS Core ProjectExplorer TextEditor + SOURCES + bookmark.cpp bookmark.h + bookmarkfilter.cpp bookmarkfilter.h + bookmarkmanager.cpp bookmarkmanager.h + bookmarks_global.h + bookmarksplugin.cpp bookmarksplugin.h +) diff --git a/src/plugins/clangcodemodel/CMakeLists.txt b/src/plugins/clangcodemodel/CMakeLists.txt new file mode 100644 index 0000000000..0dc6bfa7f4 --- /dev/null +++ b/src/plugins/clangcodemodel/CMakeLists.txt @@ -0,0 +1,57 @@ +if (WITH_TESTS) + set(TST_COMPONENT CppEditor QmakeProjectManager) +endif() + +add_qtc_plugin(ClangCodeModel + CONDITION TARGET libclang + DEPENDS ClangSupport CPlusPlus + PLUGIN_DEPENDS Core CppTools TextEditor ${TST_COMPONENT} + SOURCES + clangactivationsequencecontextprocessor.cpp clangactivationsequencecontextprocessor.h + clangactivationsequenceprocessor.cpp clangactivationsequenceprocessor.h + clangassistproposalitem.cpp clangassistproposalitem.h + clangassistproposalmodel.cpp clangassistproposalmodel.h + clangbackendcommunicator.cpp clangbackendcommunicator.h + clangbackendlogging.cpp clangbackendlogging.h + clangbackendreceiver.cpp clangbackendreceiver.h + clangbackendsender.cpp clangbackendsender.h + clangcodemodelplugin.cpp clangcodemodelplugin.h + clangcompletionassistinterface.cpp clangcompletionassistinterface.h + clangcompletionassistprocessor.cpp clangcompletionassistprocessor.h + clangcompletionassistprovider.cpp clangcompletionassistprovider.h + clangcompletionchunkstotextconverter.cpp clangcompletionchunkstotextconverter.h + clangcompletioncontextanalyzer.cpp clangcompletioncontextanalyzer.h + clangconstants.h + clangcurrentdocumentfilter.cpp clangcurrentdocumentfilter.h + clangdiagnosticfilter.cpp clangdiagnosticfilter.h + clangdiagnosticmanager.cpp clangdiagnosticmanager.h + clangdiagnostictooltipwidget.cpp clangdiagnostictooltipwidget.h + clangeditordocumentparser.cpp clangeditordocumentparser.h + clangeditordocumentprocessor.cpp clangeditordocumentprocessor.h + clangfixitoperation.cpp clangfixitoperation.h + clangfixitoperationsextractor.cpp clangfixitoperationsextractor.h + clangfollowsymbol.cpp clangfollowsymbol.h + clangfunctionhintmodel.cpp clangfunctionhintmodel.h + clanghighlightingresultreporter.cpp clanghighlightingresultreporter.h + clanghoverhandler.cpp clanghoverhandler.h + clangisdiagnosticrelatedtolocation.h + clangmodelmanagersupport.cpp clangmodelmanagersupport.h + clangoverviewmodel.cpp clangoverviewmodel.h + clangpreprocessorassistproposalitem.cpp clangpreprocessorassistproposalitem.h + clangprojectsettings.cpp clangprojectsettings.h + clangprojectsettingswidget.cpp clangprojectsettingswidget.h clangprojectsettingswidget.ui + clangrefactoringengine.cpp clangrefactoringengine.h + clangtextmark.cpp clangtextmark.h + clanguiheaderondiskmanager.cpp clanguiheaderondiskmanager.h + clangutils.cpp clangutils.h + EXPLICIT_MOC clangcodemodelplugin.h +) + +if (WITH_TESTS) + target_sources(ClangCodeModel PRIVATE + test/clangautomationutils.cpp test/clangautomationutils.h + test/clangbatchfileprocessor.cpp test/clangbatchfileprocessor.h + test/clangcodecompletion_test.cpp test/clangcodecompletion_test.h + test/data/clangtestdata.qrc + ) +endif() diff --git a/src/plugins/clangcodemodel/a.cmd b/src/plugins/clangcodemodel/a.cmd new file mode 100644 index 0000000000..95eb37f90a --- /dev/null +++ b/src/plugins/clangcodemodel/a.cmd @@ -0,0 +1,4 @@ +git checkout -- clangcodemodelplugin.h +git checkout -- clangcompletionassistinterface.cpp +git checkout -- clangcompletionassistinterface.h +git checkout -- clangcompletionassistprocessor.cpp diff --git a/src/plugins/clangformat/CMakeLists.txt b/src/plugins/clangformat/CMakeLists.txt new file mode 100644 index 0000000000..3edaead757 --- /dev/null +++ b/src/plugins/clangformat/CMakeLists.txt @@ -0,0 +1,15 @@ +add_qtc_plugin(ClangFormat + CONDITION TARGET libclang + DEPENDS Utils Qt5::Widgets clangFormat + INCLUDES "${CLANG_INCLUDE_DIRS}" + PLUGIN_DEPENDS Core TextEditor CppEditor CppTools ProjectExplorer + SOURCES + clangformatbaseindenter.cpp clangformatbaseindenter.h + clangformatchecks.ui + clangformatconfigwidget.cpp clangformatconfigwidget.h clangformatconfigwidget.ui + clangformatconstants.h + clangformatindenter.cpp clangformatindenter.h + clangformatplugin.cpp clangformatplugin.h + clangformatsettings.cpp clangformatsettings.h + clangformatutils.cpp clangformatutils.h +) diff --git a/src/plugins/clangpchmanager/CMakeLists.txt b/src/plugins/clangpchmanager/CMakeLists.txt new file mode 100644 index 0000000000..6b36a88060 --- /dev/null +++ b/src/plugins/clangpchmanager/CMakeLists.txt @@ -0,0 +1,17 @@ +add_qtc_plugin(ClangPchManager + CONDITION TARGET libclang + DEPENDS ClangSupport CPlusPlus + DEFINES CLANGPCHMANAGER_LIB + PLUGIN_DEPENDS Core CppTools + SOURCES + clangpchmanager_global.h + clangpchmanagerplugin.cpp clangpchmanagerplugin.h + pchmanagerclient.cpp pchmanagerclient.h + pchmanagerconnectionclient.cpp pchmanagerconnectionclient.h + pchmanagernotifierinterface.cpp pchmanagernotifierinterface.h + pchmanagerprojectupdater.cpp pchmanagerprojectupdater.h + progressmanager.h + progressmanagerinterface.h + projectupdater.cpp projectupdater.h + qtcreatorprojectupdater.cpp qtcreatorprojectupdater.h +) diff --git a/src/plugins/clangrefactoring/CMakeLists.txt b/src/plugins/clangrefactoring/CMakeLists.txt new file mode 100644 index 0000000000..1e20afad9b --- /dev/null +++ b/src/plugins/clangrefactoring/CMakeLists.txt @@ -0,0 +1,40 @@ +add_qtc_plugin(ClangRefactoring + CONDITION TARGET libclang + DEPENDS ClangSupport CPlusPlus + PLUGIN_DEPENDS Core CppTools TextEditor ClangPchManager + SOURCES ${TEST_SOURCES} + baseclangquerytexteditorwidget.cpp baseclangquerytexteditorwidget.h + clangqueryexamplehighlighter.cpp clangqueryexamplehighlighter.h + clangqueryexamplehighlightmarker.h + clangqueryexampletexteditorwidget.cpp clangqueryexampletexteditorwidget.h + clangqueryhighlighter.cpp clangqueryhighlighter.h + clangqueryhighlightmarker.h + clangqueryhoverhandler.cpp clangqueryhoverhandler.h + clangqueryprojectsfindfilter.cpp clangqueryprojectsfindfilter.h clangqueryprojectsfindfilter.ui + clangqueryprojectsfindfilterwidget.cpp clangqueryprojectsfindfilterwidget.h + clangquerytexteditorwidget.cpp clangquerytexteditorwidget.h + clangrefactoringplugin.cpp clangrefactoringplugin.h + editormanagerinterface.h + locatorfilter.cpp locatorfilter.h + projectpartproviderinterface.h + projectpartutilities.cpp projectpartutilities.h + qtcreatorclangqueryfindfilter.cpp qtcreatorclangqueryfindfilter.h + qtcreatoreditormanager.cpp qtcreatoreditormanager.h + qtcreatorrefactoringprojectupdater.cpp qtcreatorrefactoringprojectupdater.h + qtcreatorsearch.cpp qtcreatorsearch.h + qtcreatorsearchhandle.cpp qtcreatorsearchhandle.h + qtcreatorsymbolsfindfilter.cpp qtcreatorsymbolsfindfilter.h + querysqlitestatementfactory.h + refactoringclient.cpp refactoringclient.h + refactoringconnectionclient.cpp refactoringconnectionclient.h + refactoringengine.cpp refactoringengine.h + refactoringprojectupdater.cpp refactoringprojectupdater.h + searchhandle.cpp searchhandle.h + searchinterface.h + sourcelocations.h + symbol.h + symbolquery.h + symbolqueryinterface.h + symbolsfindfilter.cpp symbolsfindfilter.h + symbolsfindfilterconfigwidget.cpp symbolsfindfilterconfigwidget.h +) diff --git a/src/plugins/clangtools/CMakeLists.txt b/src/plugins/clangtools/CMakeLists.txt new file mode 100644 index 0000000000..379cf0109a --- /dev/null +++ b/src/plugins/clangtools/CMakeLists.txt @@ -0,0 +1,41 @@ +if (WITH_TESTS) + set(TST_COMPONENT QmakeProjectManager) +endif() + +add_qtc_plugin(ClangTools + CONDITION TARGET libclang + DEPENDS ClangSupport libclang + PLUGIN_DEPENDS Core Debugger CppTools ${TST_COMPONENT} + INCLUDES ${CLANG_INCLUDE_DIRS} + SOURCES + clangfileinfo.h + clangfixitsrefactoringchanges.cpp clangfixitsrefactoringchanges.h + clangselectablefilesdialog.cpp clangselectablefilesdialog.h clangselectablefilesdialog.ui + clangtidyclazyruncontrol.cpp clangtidyclazyruncontrol.h + clangtidyclazyrunner.cpp clangtidyclazyrunner.h + clangtidyclazytool.cpp clangtidyclazytool.h + clangtool.cpp clangtool.h + clangtoolruncontrol.cpp clangtoolruncontrol.h + clangtoolrunner.cpp clangtoolrunner.h + clangtools_global.h + clangtoolsbasicsettings.cpp clangtoolsbasicsettings.h clangtoolsbasicsettings.ui + clangtoolsconfigwidget.cpp clangtoolsconfigwidget.h clangtoolsconfigwidget.ui + clangtoolsconstants.h + clangtoolsdiagnostic.cpp clangtoolsdiagnostic.h + clangtoolsdiagnosticmodel.cpp clangtoolsdiagnosticmodel.h + clangtoolsdiagnosticview.cpp clangtoolsdiagnosticview.h + clangtoolslogfilereader.cpp clangtoolslogfilereader.h + clangtoolsplugin.cpp clangtoolsplugin.h + clangtoolsprojectsettings.cpp clangtoolsprojectsettings.h + clangtoolsprojectsettingswidget.cpp clangtoolsprojectsettingswidget.h clangtoolsprojectsettingswidget.ui + clangtoolssettings.cpp clangtoolssettings.h + clangtoolsutils.cpp clangtoolsutils.h +) + +if (WITH_TESTS) + target_sources(ClangTools PRIVATE + clangtoolspreconfiguredsessiontests.cpp clangtoolspreconfiguredsessiontests.h + clangtoolsunittests.cpp clangtoolsunittests.h + clangtoolsunittests.qrc + ) +endif() diff --git a/src/plugins/classview/CMakeLists.txt b/src/plugins/classview/CMakeLists.txt new file mode 100644 index 0000000000..4861690e57 --- /dev/null +++ b/src/plugins/classview/CMakeLists.txt @@ -0,0 +1,15 @@ +add_qtc_plugin(ClassView + PLUGIN_DEPENDS Core CppTools ProjectExplorer TextEditor + SOURCES + classviewconstants.h + classviewmanager.cpp classviewmanager.h + classviewnavigationwidget.cpp classviewnavigationwidget.h + classviewnavigationwidgetfactory.cpp classviewnavigationwidgetfactory.h + classviewparser.cpp classviewparser.h + classviewparsertreeitem.cpp classviewparsertreeitem.h + classviewplugin.cpp classviewplugin.h + classviewsymbolinformation.cpp classviewsymbolinformation.h + classviewsymbollocation.cpp classviewsymbollocation.h + classviewtreeitemmodel.cpp classviewtreeitemmodel.h + classviewutils.cpp classviewutils.h +) diff --git a/src/plugins/clearcase/CMakeLists.txt b/src/plugins/clearcase/CMakeLists.txt new file mode 100644 index 0000000000..08f09f0021 --- /dev/null +++ b/src/plugins/clearcase/CMakeLists.txt @@ -0,0 +1,18 @@ +add_qtc_plugin(ClearCase + PLUGIN_DEPENDS Core ProjectExplorer TextEditor VcsBase + SOURCES + activityselector.cpp activityselector.h + annotationhighlighter.cpp annotationhighlighter.h + checkoutdialog.cpp checkoutdialog.h checkoutdialog.ui + clearcaseconstants.h + clearcasecontrol.cpp clearcasecontrol.h + clearcaseeditor.cpp clearcaseeditor.h + clearcaseplugin.cpp clearcaseplugin.h + clearcasesettings.cpp clearcasesettings.h + clearcasesubmiteditor.cpp clearcasesubmiteditor.h + clearcasesubmiteditorwidget.cpp clearcasesubmiteditorwidget.h + clearcasesync.cpp clearcasesync.h + settingspage.cpp settingspage.h settingspage.ui + undocheckout.ui + versionselector.cpp versionselector.h versionselector.ui +) diff --git a/src/plugins/cmakeprojectmanager/CMakeLists.txt b/src/plugins/cmakeprojectmanager/CMakeLists.txt new file mode 100644 index 0000000000..6062e40d53 --- /dev/null +++ b/src/plugins/cmakeprojectmanager/CMakeLists.txt @@ -0,0 +1,42 @@ +add_qtc_plugin(CMakeProjectManager + DEPENDS qmljs + PLUGIN_DEPENDS Core CppTools ProjectExplorer TextEditor QtSupport + PLUGIN_RECOMMENDS Designer + SOURCES + builddirmanager.cpp builddirmanager.h + builddirparameters.cpp builddirparameters.h + builddirreader.cpp builddirreader.h + cmake_global.h + cmakeautocompleter.cpp cmakeautocompleter.h + cmakebuildconfiguration.cpp cmakebuildconfiguration.h + cmakebuildsettingswidget.cpp cmakebuildsettingswidget.h + cmakebuildstep.cpp cmakebuildstep.h + cmakebuildtarget.h + cmakecbpparser.cpp cmakecbpparser.h + cmakeconfigitem.cpp cmakeconfigitem.h + cmakeeditor.cpp cmakeeditor.h + cmakefilecompletionassist.cpp cmakefilecompletionassist.h + cmakeindenter.cpp cmakeindenter.h + cmakekitinformation.cpp cmakekitinformation.h + cmakelocatorfilter.cpp cmakelocatorfilter.h + cmakeparser.cpp cmakeparser.h + cmakeproject.cpp cmakeproject.h + cmakeproject.qrc + cmakeprojectconstants.h + cmakeprojectimporter.cpp cmakeprojectimporter.h + cmakeprojectmanager.cpp cmakeprojectmanager.h + cmakeprojectnodes.cpp cmakeprojectnodes.h + cmakeprojectplugin.cpp cmakeprojectplugin.h + cmakerunconfiguration.cpp cmakerunconfiguration.h + cmakesettingspage.cpp cmakesettingspage.h + cmakespecificsettings.cpp cmakespecificsettings.h + cmakespecificsettingspage.cpp cmakespecificsettingspage.h cmakespecificsettingspage.ui + cmaketool.cpp cmaketool.h + cmaketoolmanager.cpp cmaketoolmanager.h + cmaketoolsettingsaccessor.cpp cmaketoolsettingsaccessor.h + configmodel.cpp configmodel.h + configmodelitemdelegate.cpp configmodelitemdelegate.h + servermode.cpp servermode.h + servermodereader.cpp servermodereader.h + tealeafreader.cpp tealeafreader.h +) diff --git a/src/plugins/compilationdatabaseprojectmanager/CMakeLists.txt b/src/plugins/compilationdatabaseprojectmanager/CMakeLists.txt new file mode 100644 index 0000000000..aa29b827ed --- /dev/null +++ b/src/plugins/compilationdatabaseprojectmanager/CMakeLists.txt @@ -0,0 +1,16 @@ +add_qtc_plugin(CompilationDatabaseProjectManager + DEPENDS Utils + PLUGIN_DEPENDS Core CppTools ProjectExplorer TextEditor + SOURCES + compilationdatabaseconstants.h + compilationdatabaseproject.cpp compilationdatabaseproject.h + compilationdatabaseprojectmanagerplugin.cpp compilationdatabaseprojectmanagerplugin.h + compilationdatabasetests.qrc + compilationdatabaseutils.cpp compilationdatabaseutils.h +) + +if (WITH_TESTS) + target_sources(CompilationDatabaseProjectManager PRIVATE + compilationdatabasetests.cpp compilationdatabasetests.h + ) +endif() diff --git a/src/plugins/coreplugin/CMakeLists.txt b/src/plugins/coreplugin/CMakeLists.txt new file mode 100644 index 0000000000..1ad00dca76 --- /dev/null +++ b/src/plugins/coreplugin/CMakeLists.txt @@ -0,0 +1,172 @@ +add_qtc_plugin(Core + DEPENDS Qt5::PrintSupport Qt5::Qml Qt5::Script Qt5::Sql Qt5::Gui Qt5::GuiPrivate ${PLATFORM_DEPENDS} + PUBLIC_DEPENDS Aggregation ExtensionSystem Utils app_version + SOURCES + actionmanager/actioncontainer.cpp actionmanager/actioncontainer.h actionmanager/actioncontainer_p.h + actionmanager/actionmanager.cpp actionmanager/actionmanager.h actionmanager/actionmanager_p.h + actionmanager/command.cpp actionmanager/command.h actionmanager/command_p.h + actionmanager/commandbutton.cpp actionmanager/commandbutton.h + actionmanager/commandmappings.cpp actionmanager/commandmappings.h + actionmanager/commandsfile.cpp actionmanager/commandsfile.h + basefilewizard.cpp basefilewizard.h + basefilewizardfactory.cpp basefilewizardfactory.h + core.qrc + core_global.h + coreconstants.h + coreicons.cpp coreicons.h + corejsextensions.cpp corejsextensions.h + coreplugin.cpp coreplugin.h + designmode.cpp designmode.h + dialogs/addtovcsdialog.cpp dialogs/addtovcsdialog.h dialogs/addtovcsdialog.ui + dialogs/externaltoolconfig.cpp dialogs/externaltoolconfig.h dialogs/externaltoolconfig.ui + dialogs/filepropertiesdialog.cpp dialogs/filepropertiesdialog.h dialogs/filepropertiesdialog.ui + dialogs/ioptionspage.cpp dialogs/ioptionspage.h + dialogs/newdialog.cpp dialogs/newdialog.h dialogs/newdialog.ui + dialogs/openwithdialog.cpp dialogs/openwithdialog.h dialogs/openwithdialog.ui + dialogs/promptoverwritedialog.cpp dialogs/promptoverwritedialog.h + dialogs/readonlyfilesdialog.cpp dialogs/readonlyfilesdialog.h dialogs/readonlyfilesdialog.ui + dialogs/saveitemsdialog.cpp dialogs/saveitemsdialog.h dialogs/saveitemsdialog.ui + dialogs/settingsdialog.cpp dialogs/settingsdialog.h + dialogs/shortcutsettings.cpp dialogs/shortcutsettings.h + diffservice.cpp diffservice.h + documentmanager.cpp documentmanager.h + editmode.cpp editmode.h + editormanager/documentmodel.cpp editormanager/documentmodel.h editormanager/documentmodel_p.h + editormanager/editorarea.cpp editormanager/editorarea.h + editormanager/editormanager.cpp editormanager/editormanager.h editormanager/editormanager_p.h + editormanager/editorview.cpp editormanager/editorview.h + editormanager/editorwindow.cpp editormanager/editorwindow.h + editormanager/ieditor.cpp editormanager/ieditor.h + editormanager/ieditorfactory.cpp editormanager/ieditorfactory.h editormanager/ieditorfactory_p.h + editormanager/iexternaleditor.cpp editormanager/iexternaleditor.h + editormanager/openeditorsview.cpp editormanager/openeditorsview.h + editormanager/openeditorswindow.cpp editormanager/openeditorswindow.h + editormanager/systemeditor.cpp editormanager/systemeditor.h + editortoolbar.cpp editortoolbar.h + externaltool.cpp externaltool.h + externaltoolmanager.cpp externaltoolmanager.h + fancyactionbar.cpp fancyactionbar.h + fancyactionbar.qrc + fancytabwidget.cpp fancytabwidget.h + featureprovider.cpp featureprovider.h + fileiconprovider.cpp fileiconprovider.h + fileutils.cpp fileutils.h + find/basetextfind.cpp find/basetextfind.h + find/currentdocumentfind.cpp find/currentdocumentfind.h + find/find.qrc + find/finddialog.ui + find/findplugin.cpp find/findplugin.h + find/findtoolbar.cpp find/findtoolbar.h + find/findtoolwindow.cpp find/findtoolwindow.h + find/findwidget.ui + find/highlightscrollbarcontroller.cpp find/highlightscrollbarcontroller.h + find/ifindfilter.cpp find/ifindfilter.h + find/ifindsupport.cpp find/ifindsupport.h + find/itemviewfind.cpp find/itemviewfind.h + find/optionspopup.cpp find/optionspopup.h + find/searchresultcolor.h + find/searchresultitem.h + find/searchresulttreeitemdelegate.cpp find/searchresulttreeitemdelegate.h + find/searchresulttreeitemroles.h + find/searchresulttreeitems.cpp find/searchresulttreeitems.h + find/searchresulttreemodel.cpp find/searchresulttreemodel.h + find/searchresulttreeview.cpp find/searchresulttreeview.h + find/searchresultwidget.cpp find/searchresultwidget.h + find/searchresultwindow.cpp find/searchresultwindow.h + find/textfindconstants.h + findplaceholder.cpp findplaceholder.h + generalsettings.cpp generalsettings.h generalsettings.ui + generatedfile.cpp generatedfile.h + helpitem.cpp helpitem.h + helpmanager.cpp helpmanager.h helpmanager_implementation.h + icontext.cpp icontext.h + icore.cpp icore.h + id.cpp id.h + idocument.cpp idocument.h + idocumentfactory.cpp idocumentfactory.h + ifilewizardextension.h + imode.cpp imode.h + inavigationwidgetfactory.cpp inavigationwidgetfactory.h + infobar.cpp infobar.h + ioutputpane.cpp ioutputpane.h + iversioncontrol.cpp iversioncontrol.h + iwelcomepage.cpp iwelcomepage.h + iwizardfactory.cpp iwizardfactory.h + jsexpander.cpp jsexpander.h + locator/basefilefilter.cpp locator/basefilefilter.h + locator/commandlocator.cpp locator/commandlocator.h + locator/directoryfilter.cpp locator/directoryfilter.h locator/directoryfilter.ui + locator/executefilter.cpp locator/executefilter.h + locator/externaltoolsfilter.cpp locator/externaltoolsfilter.h + locator/filesystemfilter.cpp locator/filesystemfilter.h locator/filesystemfilter.ui + locator/ilocatorfilter.cpp locator/ilocatorfilter.h + locator/javascriptfilter.cpp locator/javascriptfilter.h + locator/locator.cpp locator/locator.h + locator/locatorconstants.h + locator/locatorfiltersfilter.cpp locator/locatorfiltersfilter.h + locator/locatormanager.cpp locator/locatormanager.h + locator/locatorsearchutils.cpp locator/locatorsearchutils.h + locator/locatorsettingspage.cpp locator/locatorsettingspage.h locator/locatorsettingspage.ui + locator/locatorwidget.cpp locator/locatorwidget.h + locator/opendocumentsfilter.cpp locator/opendocumentsfilter.h + mainwindow.cpp mainwindow.h + manhattanstyle.cpp manhattanstyle.h + menubarfilter.cpp menubarfilter.h + messagebox.cpp messagebox.h + messagemanager.cpp messagemanager.h + messageoutputwindow.cpp messageoutputwindow.h + mimetypemagicdialog.cpp mimetypemagicdialog.h mimetypemagicdialog.ui + mimetypesettings.cpp mimetypesettings.h + mimetypesettingspage.ui + minisplitter.cpp minisplitter.h + modemanager.cpp modemanager.h + navigationsubwidget.cpp navigationsubwidget.h + navigationwidget.cpp navigationwidget.h + opendocumentstreeview.cpp opendocumentstreeview.h + outputpane.cpp outputpane.h + outputpanemanager.cpp outputpanemanager.h + outputwindow.cpp outputwindow.h + patchtool.cpp patchtool.h + plugindialog.cpp plugindialog.h + progressmanager/futureprogress.cpp progressmanager/futureprogress.h + progressmanager/progressbar.cpp progressmanager/progressbar.h + progressmanager/progressmanager.cpp progressmanager/progressmanager.h progressmanager/progressmanager_p.h + progressmanager/progressview.cpp progressmanager/progressview.h + reaper.cpp reaper.h reaper_p.h + rightpane.cpp rightpane.h + settingsdatabase.cpp settingsdatabase.h + shellcommand.cpp shellcommand.h + sidebar.cpp sidebar.h + sidebarwidget.cpp sidebarwidget.h + statusbarmanager.cpp statusbarmanager.h + styleanimator.cpp styleanimator.h + systemsettings.cpp systemsettings.h systemsettings.ui + textdocument.cpp textdocument.h + themechooser.cpp themechooser.h + toolsettings.cpp toolsettings.h + variablechooser.cpp variablechooser.h + vcsmanager.cpp vcsmanager.h + versiondialog.cpp versiondialog.h + windowsupport.cpp windowsupport.h + EXPLICIT_MOC dialogs/filepropertiesdialog.h +) + +if (WITH_TESTS) + target_sources(Core PRIVATE + locator/locator_test.cpp + locator/locatorfiltertest.cpp locator/locatorfiltertest.h + testdatadir.cpp testdatadir.h + ) +endif() + +if (WIN32) + target_sources(Core PRIVATE progressmanager/progressmanager_win.cpp) +elseif (APPLE) + find_library(FWAppKit AppKit) + target_link_libraries(Core PRIVATE ${FWAppKit}) + target_sources(Core PRIVATE + progressmanager/progressmanager_mac.mm + locator/spotlightlocatorfilter.h locator/spotlightlocatorfilter.mm) +else() + target_sources(Core PRIVATE progressmanager/progressmanager_x11.cpp) +endif() diff --git a/src/plugins/cpaster/CMakeLists.txt b/src/plugins/cpaster/CMakeLists.txt new file mode 100644 index 0000000000..6e17d5c43b --- /dev/null +++ b/src/plugins/cpaster/CMakeLists.txt @@ -0,0 +1,31 @@ +add_qtc_plugin(CodePaster + PLUGIN_DEPENDS Core TextEditor + DEFINES CPASTER_PLUGIN_GUI + DEPENDS Qt5::Network + INCLUDES ../../shared/cpaster + SOURCES + codepasterservice.h + columnindicatortextedit.cpp columnindicatortextedit.h + cpasterconstants.h + cpaster.qrc + cpasterplugin.cpp cpasterplugin.h + fileshareprotocol.cpp fileshareprotocol.h + fileshareprotocolsettingspage.cpp fileshareprotocolsettingspage.h + fileshareprotocolsettingswidget.ui + frontend/argumentscollector.cpp frontend/argumentscollector.h + frontend/main.cpp + pastebindotcomprotocol.cpp pastebindotcomprotocol.h + pastebindotcomsettings.ui + pastecodedotxyzprotocol.cpp pastecodedotxyzprotocol.h + pasteselect.ui + pasteselectdialog.cpp pasteselectdialog.h + pasteview.cpp pasteview.h pasteview.ui + protocol.cpp protocol.h + settings.cpp settings.h + settingspage.cpp settingspage.h settingspage.ui + stickynotespasteprotocol.cpp stickynotespasteprotocol.h + urlopenprotocol.cpp urlopenprotocol.h + + ../../shared/cpaster/cgi.cpp ../../shared/cpaster/cgi.h + ../../shared/cpaster/splitter.cpp ../../shared/cpaster/splitter.h +) diff --git a/src/plugins/cppcheck/CMakeLists.txt b/src/plugins/cppcheck/CMakeLists.txt new file mode 100644 index 0000000000..76c2148c79 --- /dev/null +++ b/src/plugins/cppcheck/CMakeLists.txt @@ -0,0 +1,14 @@ +add_qtc_plugin(Cppcheck + DEPENDS Qt5::Widgets + PLUGIN_DEPENDS Core CppTools ProjectExplorer TextEditor + SOURCES + cppcheckconstants.h + cppcheckdiagnostic.h + cppcheckoptions.cpp cppcheckoptions.h + cppcheckplugin.cpp cppcheckplugin.h + cppcheckrunner.cpp cppcheckrunner.h + cppchecktextmark.cpp cppchecktextmark.h + cppchecktextmarkmanager.cpp cppchecktextmarkmanager.h + cppchecktool.cpp cppchecktool.h + cppchecktrigger.cpp cppchecktrigger.h +) diff --git a/src/plugins/cppeditor/CMakeLists.txt b/src/plugins/cppeditor/CMakeLists.txt new file mode 100644 index 0000000000..a921291f04 --- /dev/null +++ b/src/plugins/cppeditor/CMakeLists.txt @@ -0,0 +1,44 @@ +add_qtc_plugin(CppEditor + DEFINES CPPEDITOR_LIBRARY + PLUGIN_DEPENDS Core CppTools ProjectExplorer TextEditor + SOURCES + cppautocompleter.cpp cppautocompleter.h + cppcodemodelinspectordialog.cpp cppcodemodelinspectordialog.h cppcodemodelinspectordialog.ui + cppdocumentationcommenthelper.cpp cppdocumentationcommenthelper.h + cppeditor.cpp cppeditor.h + cppeditor.qrc + cppeditor_global.h + cppeditorconstants.h + cppeditordocument.cpp cppeditordocument.h + cppeditorenums.h + cppeditorplugin.cpp cppeditorplugin.h + cppeditorwidget.cpp cppeditorwidget.h + cppfunctiondecldeflink.cpp cppfunctiondecldeflink.h + cpphighlighter.cpp cpphighlighter.h + cppincludehierarchy.cpp cppincludehierarchy.h + cppinsertvirtualmethods.cpp cppinsertvirtualmethods.h + cpplocalrenaming.cpp cpplocalrenaming.h + cppminimizableinfobars.cpp cppminimizableinfobars.h + cppoutline.cpp cppoutline.h + cppparsecontext.cpp cppparsecontext.h + cpppreprocessordialog.cpp cpppreprocessordialog.h cpppreprocessordialog.ui + cppquickfix.cpp cppquickfix.h + cppquickfixassistant.cpp cppquickfixassistant.h + cppquickfixes.cpp cppquickfixes.h + cpptypehierarchy.cpp cpptypehierarchy.h + cppuseselectionsupdater.cpp cppuseselectionsupdater.h + resourcepreviewhoverhandler.cpp resourcepreviewhoverhandler.h + EXPLICIT_MOC cppeditor.h +) + +if (WITH_TESTS) + target_sources(CppEditor PRIVATE + cppdoxygen_test.cpp cppdoxygen_test.h + cppeditortestcase.cpp cppeditortestcase.h + cppincludehierarchy_test.cpp + cppquickfix_test.cpp cppquickfix_test.h + cppuseselections_test.cpp + fileandtokenactions_test.cpp + followsymbol_switchmethoddecldef_test.cpp + ) +endif() diff --git a/src/plugins/cppeditor/cppeditorplugin.cpp b/src/plugins/cppeditor/cppeditorplugin.cpp index f46c3db17d..92c4a1ff21 100644 --- a/src/plugins/cppeditor/cppeditorplugin.cpp +++ b/src/plugins/cppeditor/cppeditorplugin.cpp @@ -27,6 +27,7 @@ #include "cppautocompleter.h" #include "cppcodemodelinspectordialog.h" +#include "cppeditor.h" #include "cppeditorconstants.h" #include "cppeditorwidget.h" #include "cppeditordocument.h" diff --git a/src/plugins/cppeditor/cppoutline.cpp b/src/plugins/cppeditor/cppoutline.cpp index 4f34433ba4..55a2e93f19 100644 --- a/src/plugins/cppeditor/cppoutline.cpp +++ b/src/plugins/cppeditor/cppoutline.cpp @@ -25,6 +25,7 @@ #include "cppoutline.h" +#include "cppeditor.h" #include <cpptools/cppeditoroutline.h> #include <cpptools/cppoverviewmodel.h> diff --git a/src/plugins/cppeditor/cppoutline.h b/src/plugins/cppeditor/cppoutline.h index f8db92c46d..9cabc48aa5 100644 --- a/src/plugins/cppeditor/cppoutline.h +++ b/src/plugins/cppeditor/cppoutline.h @@ -25,7 +25,6 @@ #pragma once -#include "cppeditor.h" #include "cppeditorwidget.h" #include <texteditor/ioutlinewidget.h> diff --git a/src/plugins/cpptools/CMakeLists.txt b/src/plugins/cpptools/CMakeLists.txt new file mode 100644 index 0000000000..52e6a7cbd4 --- /dev/null +++ b/src/plugins/cpptools/CMakeLists.txt @@ -0,0 +1,131 @@ +add_qtc_plugin(CppTools + DEPENDS Qt5::Network Qt5::Xml + PUBLIC_DEPENDS CPlusPlus + PLUGIN_DEPENDS Core ProjectExplorer TextEditor + SOURCES + abstracteditorsupport.cpp abstracteditorsupport.h + abstractoverviewmodel.h + baseeditordocumentparser.cpp baseeditordocumentparser.h + baseeditordocumentprocessor.cpp baseeditordocumentprocessor.h + builtincursorinfo.cpp builtincursorinfo.h + builtineditordocumentparser.cpp builtineditordocumentparser.h + builtineditordocumentprocessor.cpp builtineditordocumentprocessor.h + builtinindexingsupport.cpp builtinindexingsupport.h + clangbasechecks.ui + clangdiagnosticconfig.cpp clangdiagnosticconfig.h + clangdiagnosticconfigsmodel.cpp clangdiagnosticconfigsmodel.h + clangdiagnosticconfigsselectionwidget.cpp clangdiagnosticconfigsselectionwidget.h + clangdiagnosticconfigswidget.cpp clangdiagnosticconfigswidget.h clangdiagnosticconfigswidget.ui + clazychecks.ui + compileroptionsbuilder.cpp compileroptionsbuilder.h + cppbuiltinmodelmanagersupport.cpp cppbuiltinmodelmanagersupport.h + cppcanonicalsymbol.cpp cppcanonicalsymbol.h + cppchecksymbols.cpp cppchecksymbols.h + cppclassesfilter.cpp cppclassesfilter.h + cppcodeformatter.cpp cppcodeformatter.h + cppcodemodelinspectordumper.cpp cppcodemodelinspectordumper.h + cppcodemodelsettings.cpp cppcodemodelsettings.h + cppcodemodelsettingspage.cpp cppcodemodelsettingspage.h cppcodemodelsettingspage.ui + cppcodestylepreferences.cpp cppcodestylepreferences.h + cppcodestylepreferencesfactory.cpp cppcodestylepreferencesfactory.h + cppcodestylesettings.cpp cppcodestylesettings.h + cppcodestylesettingspage.cpp cppcodestylesettingspage.h cppcodestylesettingspage.ui + cppcodestylesnippets.h + cppcompletionassist.cpp cppcompletionassist.h + cppcompletionassistprocessor.cpp cppcompletionassistprocessor.h + cppcompletionassistprovider.cpp cppcompletionassistprovider.h + cppcurrentdocumentfilter.cpp cppcurrentdocumentfilter.h + cppcursorinfo.h + cppdoxygen.cpp cppdoxygen.h + cppeditoroutline.cpp cppeditoroutline.h + cppeditorwidgetinterface.h + cppelementevaluator.cpp cppelementevaluator.h + cppfileiterationorder.cpp cppfileiterationorder.h + cppfilesettingspage.cpp cppfilesettingspage.h cppfilesettingspage.ui + cppfindreferences.cpp cppfindreferences.h + cppfollowsymbolundercursor.cpp cppfollowsymbolundercursor.h + cppfunctionsfilter.cpp cppfunctionsfilter.h + cpphoverhandler.cpp cpphoverhandler.h + cppincludesfilter.cpp cppincludesfilter.h + cppindexingsupport.cpp cppindexingsupport.h + cppkitinfo.cpp cppkitinfo.h + cpplocalsymbols.cpp cpplocalsymbols.h + cpplocatordata.cpp cpplocatordata.h + cpplocatorfilter.cpp cpplocatorfilter.h + cppmodelmanager.cpp cppmodelmanager.h + cppmodelmanagerinterface.h + cppmodelmanagersupport.cpp cppmodelmanagersupport.h + cppoverviewmodel.cpp cppoverviewmodel.h + cpppointerdeclarationformatter.cpp cpppointerdeclarationformatter.h + cppprojectfile.cpp cppprojectfile.h + cppprojectfilecategorizer.cpp cppprojectfilecategorizer.h + cppprojectinfogenerator.cpp cppprojectinfogenerator.h + cppprojectpartchooser.cpp cppprojectpartchooser.h + cppprojectupdater.cpp cppprojectupdater.h + cppqtstyleindenter.cpp cppqtstyleindenter.h + cpprawprojectpart.cpp cpprawprojectpart.h + cpprefactoringchanges.cpp cpprefactoringchanges.h + cpprefactoringengine.cpp cpprefactoringengine.h + cppselectionchanger.cpp cppselectionchanger.h + cppsemanticinfo.h + cppsemanticinfoupdater.cpp cppsemanticinfoupdater.h + cppsourceprocessor.cpp cppsourceprocessor.h + cppsymbolinfo.h + cpptools.qrc + cpptools_clangtidychecks.h + cpptools_clazychecks.h + cpptools_global.h + cpptools_utils.h + cpptoolsbridge.cpp cpptoolsbridge.h + cpptoolsbridgeinterface.h + cpptoolsbridgeqtcreatorimplementation.cpp cpptoolsbridgeqtcreatorimplementation.h + cpptoolsconstants.h + cpptoolsjsextension.cpp cpptoolsjsextension.h + cpptoolsplugin.cpp cpptoolsplugin.h + cpptoolsreuse.cpp cpptoolsreuse.h + cpptoolssettings.cpp cpptoolssettings.h + cppvirtualfunctionassistprovider.cpp cppvirtualfunctionassistprovider.h + cppvirtualfunctionproposalitem.cpp cppvirtualfunctionproposalitem.h + cppworkingcopy.cpp cppworkingcopy.h + cursorineditor.h + doxygengenerator.cpp doxygengenerator.h + editordocumenthandle.cpp editordocumenthandle.h + followsymbolinterface.h + functionutils.cpp functionutils.h + generatedcodemodelsupport.cpp generatedcodemodelsupport.h + headerpathfilter.cpp headerpathfilter.h + includeutils.cpp includeutils.h + indexitem.cpp indexitem.h + insertionpointlocator.cpp insertionpointlocator.h + projectinfo.cpp projectinfo.h + projectpart.cpp projectpart.h + refactoringengineinterface.h + searchsymbols.cpp searchsymbols.h + semantichighlighter.cpp semantichighlighter.h + senddocumenttracker.cpp senddocumenttracker.h + stringtable.cpp stringtable.h + symbolfinder.cpp symbolfinder.h + symbolsfindfilter.cpp symbolsfindfilter.h + tidychecks.ui + typehierarchybuilder.cpp typehierarchybuilder.h + usages.h + wrappablelineedit.cpp wrappablelineedit.h +) + +if (WITH_TESTS) + target_sources(CppTools PRIVATE + cppcodegen_test.cpp + cppcompletion_test.cpp + cppheadersource_test.cpp + cpplocalsymbols_test.cpp + cpplocatorfilter_test.cpp + cppmodelmanager_test.cpp + cpppointerdeclarationformatter_test.cpp + cppsourceprocessertesthelper.cpp cppsourceprocessertesthelper.h + cppsourceprocessor_test.cpp + cpptoolstestcase.cpp cpptoolstestcase.h + modelmanagertesthelper.cpp modelmanagertesthelper.h + symbolsearcher_test.cpp + typehierarchybuilder_test.cpp + ) +endif() diff --git a/src/plugins/cvs/CMakeLists.txt b/src/plugins/cvs/CMakeLists.txt new file mode 100644 index 0000000000..e1f5413715 --- /dev/null +++ b/src/plugins/cvs/CMakeLists.txt @@ -0,0 +1,13 @@ +add_qtc_plugin(CVS + PLUGIN_DEPENDS Core TextEditor VcsBase + SOURCES + annotationhighlighter.cpp annotationhighlighter.h + cvsclient.cpp cvsclient.h + cvscontrol.cpp cvscontrol.h + cvseditor.cpp cvseditor.h + cvsplugin.cpp cvsplugin.h + cvssettings.cpp cvssettings.h + cvssubmiteditor.cpp cvssubmiteditor.h + cvsutils.cpp cvsutils.h + settingspage.cpp settingspage.h settingspage.ui +) diff --git a/src/plugins/debugger/CMakeLists.txt b/src/plugins/debugger/CMakeLists.txt new file mode 100644 index 0000000000..c0a2720e10 --- /dev/null +++ b/src/plugins/debugger/CMakeLists.txt @@ -0,0 +1,110 @@ +add_qtc_plugin(Debugger + DEPENDS LanguageUtils QmlDebug qmljs QtcSsh registryaccess + PLUGIN_DEPENDS Core CppTools ProjectExplorer QtSupport TextEditor + PLUGIN_RECOMMENDS QmakeProjectManager + SOURCES + analyzer/analyzerbase.qrc + analyzer/analyzerconstants.h + analyzer/analyzericons.h + analyzer/analyzermanager.h + analyzer/analyzerrunconfigwidget.cpp analyzer/analyzerrunconfigwidget.h + analyzer/analyzerutils.cpp analyzer/analyzerutils.h + analyzer/detailederrorview.cpp analyzer/detailederrorview.h + analyzer/diagnosticlocation.cpp analyzer/diagnosticlocation.h + analyzer/startremotedialog.cpp analyzer/startremotedialog.h + breakhandler.cpp breakhandler.h + breakpoint.cpp breakpoint.h + cdb/cdbengine.cpp cdb/cdbengine.h + cdb/cdboptionspage.cpp cdb/cdboptionspage.h + cdb/cdboptionspagewidget.ui + cdb/cdbparsehelpers.cpp cdb/cdbparsehelpers.h + cdb/stringinputstream.cpp cdb/stringinputstream.h + commonoptionspage.cpp commonoptionspage.h + console/console.cpp console/console.h + console/consoleedit.cpp console/consoleedit.h + console/consoleitem.cpp console/consoleitem.h + console/consoleitemdelegate.cpp console/consoleitemdelegate.h + console/consoleitemmodel.cpp console/consoleitemmodel.h + console/consoleproxymodel.cpp console/consoleproxymodel.h + console/consoleview.cpp console/consoleview.h + debugger.qrc + debugger_global.h + debuggeractions.cpp debuggeractions.h + debuggerconstants.h + debuggercore.h + debuggerdialogs.cpp debuggerdialogs.h + debuggerengine.cpp debuggerengine.h + debuggericons.cpp debuggericons.h + debuggerinternalconstants.h + debuggeritem.cpp debuggeritem.h + debuggeritemmanager.cpp debuggeritemmanager.h + debuggerkitinformation.cpp debuggerkitinformation.h + debuggermainwindow.cpp debuggermainwindow.h + debuggerplugin.cpp debuggerplugin.h + debuggerprotocol.cpp debuggerprotocol.h + debuggerrunconfigurationaspect.cpp debuggerrunconfigurationaspect.h + debuggerruncontrol.cpp debuggerruncontrol.h + debuggersourcepathmappingwidget.cpp debuggersourcepathmappingwidget.h + debuggertooltipmanager.cpp debuggertooltipmanager.h + disassembleragent.cpp disassembleragent.h + disassemblerlines.cpp disassemblerlines.h + gdb/gdbengine.cpp gdb/gdbengine.h + gdb/gdboptionspage.cpp + imageviewer.cpp imageviewer.h + enginemanager.cpp enginemanager.h + lldb/lldbengine.cpp lldb/lldbengine.h + loadcoredialog.cpp loadcoredialog.h + localsandexpressionswindow.cpp localsandexpressionswindow.h + logwindow.cpp logwindow.h + memoryagent.cpp memoryagent.h + moduleshandler.cpp moduleshandler.h + namedemangler/demanglerexceptions.h + namedemangler/globalparsestate.cpp namedemangler/globalparsestate.h + namedemangler/namedemangler.cpp namedemangler/namedemangler.h + namedemangler/parsetreenodes.cpp namedemangler/parsetreenodes.h + outputcollector.cpp outputcollector.h + pdb/pdbengine.cpp pdb/pdbengine.h + procinterrupt.cpp procinterrupt.h + qml/interactiveinterpreter.cpp qml/interactiveinterpreter.h + #qml/qmlcppengine.cpp qml/qmlcppengine.h + qml/qmlengine.cpp qml/qmlengine.h + qml/qmlengineutils.cpp qml/qmlengineutils.h + qml/qmlinspectoragent.cpp qml/qmlinspectoragent.h + qml/qmlv8debuggerclientconstants.h + registerhandler.cpp registerhandler.h + shared/backtrace.cpp shared/backtrace.h + shared/cdbsymbolpathlisteditor.cpp shared/cdbsymbolpathlisteditor.h + shared/hostutils.cpp shared/hostutils.h + shared/peutils.cpp shared/peutils.h + shared/symbolpathsdialog.cpp shared/symbolpathsdialog.h shared/symbolpathsdialog.ui + simplifytype.cpp simplifytype.h + sourceagent.cpp sourceagent.h + sourcefileshandler.cpp sourcefileshandler.h + sourceutils.cpp sourceutils.h + stackframe.cpp stackframe.h + stackhandler.cpp stackhandler.h + stackwindow.cpp stackwindow.h + terminal.cpp terminal.h + threaddata.h + threadshandler.cpp threadshandler.h + unstartedappwatcherdialog.cpp unstartedappwatcherdialog.h + watchdata.cpp watchdata.h + watchdelegatewidgets.cpp watchdelegatewidgets.h + watchhandler.cpp watchhandler.h + watchutils.cpp watchutils.h + watchwindow.cpp watchwindow.h +) + +if (WIN32) + target_sources(Debugger PRIVATE + registerpostmortemaction.cpp registerpostmortemaction.h + ) + target_compile_definitions(Debugger PRIVATE UNICODE _UNICODE) +endif() + +if (WITH_TESTS) + target_sources(Debugger PRIVATE + debuggerunittests.qrc + unit-tests/simple/main.cpp + ) +endif() diff --git a/src/plugins/designer/CMakeLists.txt b/src/plugins/designer/CMakeLists.txt new file mode 100644 index 0000000000..52f7b53e18 --- /dev/null +++ b/src/plugins/designer/CMakeLists.txt @@ -0,0 +1,41 @@ +# Qt5::DesignerComponents doesn't have a target, so we need to define our own:-/ +find_package(DesignerComponents) + +if (WITH_TESTS) + set(TST_COMPONENT CppEditor) +endif() + +add_qtc_plugin(Designer + CONDITION TARGET Qt5::DesignerComponents AND TARGET Qt5::Designer + DEPENDS designerintegrationv2 + Qt5::Designer Qt5::PrintSupport Qt5::DesignerComponents + DEFINES CPP_ENABLED + PLUGIN_DEPENDS Core CppTools ProjectExplorer QtSupport ResourceEditor TextEditor ${TST_COMPONENT} + SOURCES + codemodelhelpers.cpp codemodelhelpers.h + cpp/formclasswizard.cpp cpp/formclasswizard.h + cpp/formclasswizarddialog.cpp cpp/formclasswizarddialog.h + cpp/formclasswizardpage.cpp cpp/formclasswizardpage.h cpp/formclasswizardpage.ui + cpp/formclasswizardparameters.cpp cpp/formclasswizardparameters.h + designer_export.h + designerconstants.h + designercontext.cpp designercontext.h + editordata.h + editorwidget.cpp editorwidget.h + formeditorfactory.cpp formeditorfactory.h + formeditorplugin.cpp formeditorplugin.h + formeditorstack.cpp formeditorstack.h + formeditorw.cpp formeditorw.h + formtemplatewizardpage.cpp formtemplatewizardpage.h + formwindoweditor.cpp formwindoweditor.h + formwindowfile.cpp formwindowfile.h + qtcreatorintegration.cpp qtcreatorintegration.h + qtdesignerformclasscodegenerator.cpp qtdesignerformclasscodegenerator.h + resourcehandler.cpp resourcehandler.h + settingsmanager.cpp settingsmanager.h + settingspage.cpp settingspage.h +) + +if (WITH_TESTS) + target_sources(Designer PRIVATE gotoslot_test.cpp) +endif() diff --git a/src/plugins/diffeditor/CMakeLists.txt b/src/plugins/diffeditor/CMakeLists.txt new file mode 100644 index 0000000000..f5fbb9630c --- /dev/null +++ b/src/plugins/diffeditor/CMakeLists.txt @@ -0,0 +1,22 @@ +add_qtc_plugin(DiffEditor + PLUGIN_DEPENDS Core TextEditor + DEFINES DIFFEDITOR_LIBRARY + SOURCES + descriptionwidgetwatcher.cpp descriptionwidgetwatcher.h + diffeditor.cpp diffeditor.h + diffeditor.qrc + diffeditor_global.h + diffeditorconstants.h + diffeditorcontroller.cpp diffeditorcontroller.h + diffeditordocument.cpp diffeditordocument.h + diffeditorfactory.cpp diffeditorfactory.h + diffeditoricons.h + diffeditorplugin.cpp diffeditorplugin.h + diffeditorwidgetcontroller.cpp diffeditorwidgetcontroller.h + diffutils.cpp diffutils.h + diffview.cpp diffview.h + selectabletexteditorwidget.cpp selectabletexteditorwidget.h + sidebysidediffeditorwidget.cpp sidebysidediffeditorwidget.h + unifieddiffeditorwidget.cpp unifieddiffeditorwidget.h + EXPLICIT_MOC diffeditor.h +) diff --git a/src/plugins/emacskeys/CMakeLists.txt b/src/plugins/emacskeys/CMakeLists.txt new file mode 100644 index 0000000000..20fd37aa29 --- /dev/null +++ b/src/plugins/emacskeys/CMakeLists.txt @@ -0,0 +1,7 @@ +add_qtc_plugin(EmacsKeys + PLUGIN_DEPENDS Core TextEditor + SOURCES + emacskeysconstants.h + emacskeysplugin.cpp emacskeysplugin.h + emacskeysstate.cpp emacskeysstate.h +) diff --git a/src/plugins/fakevim/CMakeLists.txt b/src/plugins/fakevim/CMakeLists.txt new file mode 100644 index 0000000000..3363c12c75 --- /dev/null +++ b/src/plugins/fakevim/CMakeLists.txt @@ -0,0 +1,18 @@ +if (WITH_TESTS) + set(TST_COMPONENT CppEditor CppTools) +endif() + +add_qtc_plugin(FakeVim + PLUGIN_DEPENDS Core TextEditor ${TST_COMPONENT} + SOURCES ${TEST_SOURCES} + fakevim.qrc + fakevimactions.cpp fakevimactions.h + fakevimhandler.cpp fakevimhandler.h + fakevimoptions.ui + fakevimplugin.cpp fakevimplugin.h + fakevimtr.h +) + +if (WITH_TESTS) + target_sources(FakeVim PRIVATE fakevim_test.cpp) +endif() diff --git a/src/plugins/genericprojectmanager/CMakeLists.txt b/src/plugins/genericprojectmanager/CMakeLists.txt new file mode 100644 index 0000000000..6e6b8eff3b --- /dev/null +++ b/src/plugins/genericprojectmanager/CMakeLists.txt @@ -0,0 +1,21 @@ +if (WITH_TESTS) + set(TST_COMPONENT CppEditor) +endif() + +add_qtc_plugin(GenericProjectManager + PLUGIN_DEPENDS Core CppTools ProjectExplorer QtSupport TextEditor ${TST_COMPONENT} + SOURCES ${TEST_SOURCES} + filesselectionwizardpage.cpp filesselectionwizardpage.h + genericbuildconfiguration.cpp genericbuildconfiguration.h + genericmakestep.cpp genericmakestep.h + genericproject.cpp genericproject.h + genericprojectconstants.h + genericprojectfileseditor.cpp genericprojectfileseditor.h + genericprojectmanager.qrc + genericprojectplugin.cpp genericprojectplugin.h + genericprojectwizard.cpp genericprojectwizard.h +) + +if (WITH_TESTS) + target_sources(GenericProjectManager PRIVATE genericprojectplugin_test.cpp) +endif() diff --git a/src/plugins/git/CMakeLists.txt b/src/plugins/git/CMakeLists.txt new file mode 100644 index 0000000000..7bf50b3276 --- /dev/null +++ b/src/plugins/git/CMakeLists.txt @@ -0,0 +1,41 @@ +add_qtc_plugin(Git + PLUGIN_DEPENDS Core DiffEditor TextEditor VcsBase + SOURCES + annotationhighlighter.cpp annotationhighlighter.h + branchadddialog.cpp branchadddialog.h branchadddialog.ui + branchcheckoutdialog.cpp branchcheckoutdialog.h branchcheckoutdialog.ui + branchmodel.cpp branchmodel.h + branchview.cpp branchview.h + changeselectiondialog.cpp changeselectiondialog.h changeselectiondialog.ui + commitdata.cpp commitdata.h + gerrit/authenticationdialog.cpp gerrit/authenticationdialog.h gerrit/authenticationdialog.ui + gerrit/branchcombobox.cpp gerrit/branchcombobox.h + gerrit/gerritdialog.cpp gerrit/gerritdialog.h gerrit/gerritdialog.ui + gerrit/gerritmodel.cpp gerrit/gerritmodel.h + gerrit/gerritoptionspage.cpp gerrit/gerritoptionspage.h + gerrit/gerritparameters.cpp gerrit/gerritparameters.h + gerrit/gerritplugin.cpp gerrit/gerritplugin.h + gerrit/gerritpushdialog.cpp gerrit/gerritpushdialog.h gerrit/gerritpushdialog.ui + gerrit/gerritremotechooser.cpp gerrit/gerritremotechooser.h + gerrit/gerritserver.cpp gerrit/gerritserver.h + git.qrc + gitclient.cpp gitclient.h + gitconstants.h + giteditor.cpp giteditor.h + gitgrep.cpp gitgrep.h + githighlighters.cpp githighlighters.h + gitplugin.cpp gitplugin.h + gitsettings.cpp gitsettings.h + gitsubmiteditor.cpp gitsubmiteditor.h + gitsubmiteditorwidget.cpp gitsubmiteditorwidget.h + gitsubmitpanel.ui + gitutils.cpp gitutils.h + gitversioncontrol.cpp gitversioncontrol.h + logchangedialog.cpp logchangedialog.h + mergetool.cpp mergetool.h + remoteadditiondialog.ui + remotedialog.cpp remotedialog.h remotedialog.ui + remotemodel.cpp remotemodel.h + settingspage.cpp settingspage.h settingspage.ui + stashdialog.cpp stashdialog.h stashdialog.ui +) diff --git a/src/plugins/glsleditor/CMakeLists.txt b/src/plugins/glsleditor/CMakeLists.txt new file mode 100644 index 0000000000..9d5dc56629 --- /dev/null +++ b/src/plugins/glsleditor/CMakeLists.txt @@ -0,0 +1,13 @@ +add_qtc_plugin(GLSLEditor + DEPENDS GLSL + PLUGIN_DEPENDS Core CppTools TextEditor + SOURCES + glslautocompleter.cpp glslautocompleter.h + glslcompletionassist.cpp glslcompletionassist.h + glsleditor.cpp glsleditor.h + glsleditor.qrc + glsleditorconstants.h + glsleditorplugin.cpp glsleditorplugin.h + glslhighlighter.cpp glslhighlighter.h + glslindenter.cpp glslindenter.h +) diff --git a/src/plugins/helloworld/CMakeLists.txt b/src/plugins/helloworld/CMakeLists.txt new file mode 100644 index 0000000000..6b9c5df88d --- /dev/null +++ b/src/plugins/helloworld/CMakeLists.txt @@ -0,0 +1,6 @@ +add_qtc_plugin(HelloWorld + PLUGIN_DEPENDS Core + SOURCES + helloworldplugin.cpp helloworldplugin.h + helloworldwindow.cpp helloworldwindow.h +) diff --git a/src/plugins/help/CMakeLists.txt b/src/plugins/help/CMakeLists.txt new file mode 100644 index 0000000000..0b3a2a2397 --- /dev/null +++ b/src/plugins/help/CMakeLists.txt @@ -0,0 +1,45 @@ +add_qtc_plugin(Help + CONDITION TARGET Qt5::Help + DEPENDS shared_help + PLUGIN_DEPENDS Core ProjectExplorer + PLUGIN_RECOMMENDS TextEditor + SOURCES + centralwidget.cpp centralwidget.h + docsettingspage.cpp docsettingspage.h docsettingspage.ui + filtersettingspage.cpp filtersettingspage.h filtersettingspage.ui + generalsettingspage.cpp generalsettingspage.h generalsettingspage.ui + help.qrc + helpconstants.h + helpfindsupport.cpp helpfindsupport.h + helpindexfilter.cpp helpindexfilter.h + helpmanager.cpp helpmanager.h + helpmode.cpp helpmode.h + helpplugin.cpp helpplugin.h + helpviewer.cpp helpviewer.h + helpwidget.cpp helpwidget.h + localhelpmanager.cpp localhelpmanager.h + openpagesmanager.cpp openpagesmanager.h + openpagesmodel.cpp openpagesmodel.h + openpagesswitcher.cpp openpagesswitcher.h + openpageswidget.cpp openpageswidget.h + remotehelpfilter.cpp remotehelpfilter.h remotehelpfilter.ui + searchtaskhandler.cpp searchtaskhandler.h + searchwidget.cpp searchwidget.h + textbrowserhelpviewer.cpp textbrowserhelpviewer.h + xbelsupport.cpp xbelsupport.h +) + +if (APPLE) + find_library(FWWebKit WebKit) + find_library(FWAppKit AppKit) + target_link_libraries(Help PRIVATE ${FWWebKit} ${FWAppKit}) + target_compile_definitions(Help PRIVATE QTC_MAC_NATIVE_HELPVIEWER) + target_sources(Help PRIVATE macwebkithelpviewer.h macwebkithelpviewer.mm) +endif() + +find_package(Qt5WebEngineWidgets QUIET) + +if (TARGET Qt5::WebEngineWidgets) + target_sources(Help PRIVATE webenginehelpviewer.cpp webenginehelpviewer.h) + target_link_libraries(Help PRIVATE Qt5::WebEngineWidgets) +endif() diff --git a/src/plugins/imageviewer/CMakeLists.txt b/src/plugins/imageviewer/CMakeLists.txt new file mode 100644 index 0000000000..6bf9c9693c --- /dev/null +++ b/src/plugins/imageviewer/CMakeLists.txt @@ -0,0 +1,15 @@ +add_qtc_plugin(ImageViewer + DEPENDS OptionalSvg + PLUGIN_DEPENDS Core + SOURCES + exportdialog.cpp exportdialog.h + imageview.cpp imageview.h + imageviewer.cpp imageviewer.h + imageviewerconstants.h + imageviewerfactory.cpp imageviewerfactory.h + imageviewerfile.cpp imageviewerfile.h + imageviewerplugin.cpp imageviewerplugin.h + imageviewertoolbar.ui + multiexportdialog.cpp multiexportdialog.h + EXPLICIT_MOC imageviewer.h +) diff --git a/src/plugins/ios/CMakeLists.txt b/src/plugins/ios/CMakeLists.txt new file mode 100644 index 0000000000..d20d4fe983 --- /dev/null +++ b/src/plugins/ios/CMakeLists.txt @@ -0,0 +1,33 @@ +add_qtc_plugin(Ios + DEPENDS QmlDebug Qt5::Xml + PLUGIN_DEPENDS Core Debugger ProjectExplorer QmakeProjectManager + SOURCES + createsimulatordialog.cpp createsimulatordialog.h createsimulatordialog.ui + ios.qrc + iosbuildconfiguration.cpp iosbuildconfiguration.h + iosbuildstep.cpp iosbuildstep.h iosbuildstep.ui + iosconfigurations.cpp iosconfigurations.h + iosconstants.h + iosdeploystep.cpp iosdeploystep.h + iosdevice.cpp iosdevice.h + iosdsymbuildstep.cpp iosdsymbuildstep.h + iosplugin.cpp iosplugin.h + iospresetbuildstep.ui + iosprobe.cpp iosprobe.h + iosqtversion.cpp iosqtversion.h + iosrunconfiguration.cpp iosrunconfiguration.h + iosrunner.cpp iosrunner.h + iossettingspage.cpp iossettingspage.h + iossettingswidget.cpp iossettingswidget.h iossettingswidget.ui + iossimulator.cpp iossimulator.h + iostoolhandler.cpp iostoolhandler.h + simulatorcontrol.cpp simulatorcontrol.h + simulatorinfomodel.cpp simulatorinfomodel.h + simulatoroperationdialog.cpp simulatoroperationdialog.h simulatoroperationdialog.ui +) + +if (APPLE) + find_library(FWCoreFoundation CoreFoundation) + find_library(FWIOKit IOKit) + target_link_libraries(Ios PRIVATE ${FWCoreFoundation} ${FWIOKit}) +endif() diff --git a/src/plugins/languageclient/CMakeLists.txt b/src/plugins/languageclient/CMakeLists.txt new file mode 100644 index 0000000000..bb1222dd57 --- /dev/null +++ b/src/plugins/languageclient/CMakeLists.txt @@ -0,0 +1,21 @@ +add_qtc_plugin(LanguageClient + DEPENDS LanguageServerProtocol Qt5::Core + PLUGIN_DEPENDS ProjectExplorer Core TextEditor + SOURCES + client.cpp client.h + documentsymbolcache.cpp documentsymbolcache.h + dynamiccapabilities.cpp dynamiccapabilities.h + languageclient.qrc + languageclientcompletionassist.cpp languageclientcompletionassist.h + languageclienthoverhandler.cpp languageclienthoverhandler.h + languageclientinterface.cpp languageclientinterface.h + languageclientmanager.cpp languageclientmanager.h + languageclientoutline.cpp languageclientoutline.h + languageclientplugin.cpp languageclientplugin.h + languageclientquickfix.cpp languageclientquickfix.h + languageclientsettings.cpp languageclientsettings.h + languageclientutils.cpp languageclientutils.h + languageclient_dependencies.pri + languageclient_global.h + locatorfilter.cpp locatorfilter.h +) diff --git a/src/plugins/macros/CMakeLists.txt b/src/plugins/macros/CMakeLists.txt new file mode 100644 index 0000000000..544b16c5dd --- /dev/null +++ b/src/plugins/macros/CMakeLists.txt @@ -0,0 +1,19 @@ +add_qtc_plugin(Macros + PLUGIN_DEPENDS Core TextEditor + SOURCES + actionmacrohandler.cpp actionmacrohandler.h + findmacrohandler.cpp findmacrohandler.h + imacrohandler.cpp imacrohandler.h + macro.cpp macro.h + macroevent.cpp macroevent.h + macrolocatorfilter.cpp macrolocatorfilter.h + macromanager.cpp macromanager.h + macrooptionspage.cpp macrooptionspage.h + macrooptionswidget.cpp macrooptionswidget.h macrooptionswidget.ui + macros.qrc + macrosconstants.h + macrosplugin.cpp macrosplugin.h + macrotextfind.cpp macrotextfind.h + savedialog.cpp savedialog.h savedialog.ui + texteditormacrohandler.cpp texteditormacrohandler.h +) diff --git a/src/plugins/mercurial/CMakeLists.txt b/src/plugins/mercurial/CMakeLists.txt new file mode 100644 index 0000000000..c0ea4343f2 --- /dev/null +++ b/src/plugins/mercurial/CMakeLists.txt @@ -0,0 +1,18 @@ +add_qtc_plugin(Mercurial + PLUGIN_DEPENDS Core TextEditor VcsBase + SOURCES + annotationhighlighter.cpp annotationhighlighter.h + authenticationdialog.cpp authenticationdialog.h authenticationdialog.ui + commiteditor.cpp commiteditor.h + constants.h + mercurialclient.cpp mercurialclient.h + mercurialcommitpanel.ui + mercurialcommitwidget.cpp mercurialcommitwidget.h + mercurialcontrol.cpp mercurialcontrol.h + mercurialeditor.cpp mercurialeditor.h + mercurialplugin.cpp mercurialplugin.h + mercurialsettings.cpp mercurialsettings.h + optionspage.cpp optionspage.h optionspage.ui + revertdialog.cpp revertdialog.h revertdialog.ui + srcdestdialog.cpp srcdestdialog.h srcdestdialog.ui +) diff --git a/src/plugins/modeleditor/CMakeLists.txt b/src/plugins/modeleditor/CMakeLists.txt new file mode 100644 index 0000000000..69ff243b5c --- /dev/null +++ b/src/plugins/modeleditor/CMakeLists.txt @@ -0,0 +1,36 @@ +add_qtc_plugin(ModelEditor + DEFINES MODELEDITOR_LIBRARY + DEPENDS Modeling Qt5::Core Qt5::Gui Qt5::Widgets + PLUGIN_DEPENDS Core CppTools ProjectExplorer + SOURCES + actionhandler.cpp actionhandler.h + classviewcontroller.cpp classviewcontroller.h + componentviewcontroller.cpp componentviewcontroller.h + diagramsviewmanager.cpp diagramsviewmanager.h + dragtool.cpp dragtool.h + editordiagramview.cpp editordiagramview.h + elementtasks.cpp elementtasks.h + extdocumentcontroller.cpp extdocumentcontroller.h + extpropertiesmview.cpp extpropertiesmview.h + jsextension.cpp jsextension.h + modeldocument.cpp modeldocument.h + modeleditor.cpp modeleditor.h + modeleditor_constants.h + modeleditor_global.h + modeleditor_plugin.cpp modeleditor_plugin.h + modeleditorfactory.cpp modeleditorfactory.h + modelindexer.cpp modelindexer.h + modelsmanager.cpp modelsmanager.h + modelutilities.cpp modelutilities.h + openelementvisitor.cpp openelementvisitor.h + packageviewcontroller.cpp packageviewcontroller.h + pxnodecontroller.cpp pxnodecontroller.h + pxnodeutilities.cpp pxnodeutilities.h + resources/modeleditor.qrc + settingscontroller.cpp settingscontroller.h + uicontroller.cpp uicontroller.h + EXPLICIT_MOC + actionhandler.h + modeleditor.h + modeleditorfactory.h +) diff --git a/src/plugins/nim/CMakeLists.txt b/src/plugins/nim/CMakeLists.txt new file mode 100644 index 0000000000..ac450f76f4 --- /dev/null +++ b/src/plugins/nim/CMakeLists.txt @@ -0,0 +1,35 @@ +add_qtc_plugin(Nim + PLUGIN_DEPENDS Core TextEditor ProjectExplorer + SOURCES + editor/nimcompletionassistprovider.cpp editor/nimcompletionassistprovider.h + editor/nimeditorfactory.cpp editor/nimeditorfactory.h + editor/nimhighlighter.cpp editor/nimhighlighter.h + editor/nimindenter.cpp editor/nimindenter.h + nim.qrc + nimconstants.h + nimplugin.cpp nimplugin.h + project/nimbuildconfiguration.cpp project/nimbuildconfiguration.h + project/nimcompilerbuildstep.cpp project/nimcompilerbuildstep.h + project/nimcompilerbuildstepconfigwidget.cpp project/nimcompilerbuildstepconfigwidget.h project/nimcompilerbuildstepconfigwidget.ui + project/nimcompilercleanstep.cpp project/nimcompilercleanstep.h + project/nimcompilercleanstepconfigwidget.cpp project/nimcompilercleanstepconfigwidget.h project/nimcompilercleanstepconfigwidget.ui + project/nimproject.cpp project/nimproject.h + project/nimprojectnode.cpp project/nimprojectnode.h + project/nimrunconfiguration.cpp project/nimrunconfiguration.h + project/nimtoolchain.cpp project/nimtoolchain.h + project/nimtoolchainfactory.cpp project/nimtoolchainfactory.h + settings/nimcodestylepreferencesfactory.cpp settings/nimcodestylepreferencesfactory.h + settings/nimcodestylepreferenceswidget.cpp settings/nimcodestylepreferenceswidget.h settings/nimcodestylepreferenceswidget.ui + settings/nimcodestylesettingspage.cpp settings/nimcodestylesettingspage.h + settings/nimsettings.cpp settings/nimsettings.h + settings/nimtoolssettingspage.cpp settings/nimtoolssettingspage.h + settings/nimtoolssettingswidget.ui + suggest/client.cpp suggest/client.h + suggest/clientrequests.cpp suggest/clientrequests.h + suggest/nimsuggest.cpp suggest/nimsuggest.h + suggest/nimsuggestcache.cpp suggest/nimsuggestcache.h + suggest/server.cpp suggest/server.h + suggest/sexprlexer.h suggest/sexprparser.h + tools/nimlexer.cpp tools/nimlexer.h + tools/sourcecodestream.h +) diff --git a/src/plugins/perforce/CMakeLists.txt b/src/plugins/perforce/CMakeLists.txt new file mode 100644 index 0000000000..9a3dd9e59c --- /dev/null +++ b/src/plugins/perforce/CMakeLists.txt @@ -0,0 +1,17 @@ +add_qtc_plugin(Perforce + PLUGIN_DEPENDS Core TextEditor VcsBase + SOURCES + annotationhighlighter.cpp annotationhighlighter.h + changenumberdialog.cpp changenumberdialog.h changenumberdialog.ui + pendingchangesdialog.cpp pendingchangesdialog.h pendingchangesdialog.ui + perforcechecker.cpp perforcechecker.h + perforceeditor.cpp perforceeditor.h + perforceplugin.cpp perforceplugin.h + perforcesettings.cpp perforcesettings.h + perforcesubmiteditor.cpp perforcesubmiteditor.h + perforcesubmiteditorwidget.cpp perforcesubmiteditorwidget.h + perforceversioncontrol.cpp perforceversioncontrol.h + promptdialog.ui + settingspage.cpp settingspage.h settingspage.ui + submitpanel.ui +) diff --git a/src/plugins/perfprofiler/CMakeLists.txt b/src/plugins/perfprofiler/CMakeLists.txt new file mode 100644 index 0000000000..18f0137110 --- /dev/null +++ b/src/plugins/perfprofiler/CMakeLists.txt @@ -0,0 +1,41 @@ +add_qtc_plugin(PerfProfiler + DEPENDS Tracing Qt5::QuickWidgets + PLUGIN_DEPENDS Core Debugger ProjectExplorer QtSupport + SOURCES + perfconfigeventsmodel.cpp perfconfigeventsmodel.h + perfconfigwidget.cpp perfconfigwidget.h + perfconfigwidget.ui + perfdatareader.cpp perfdatareader.h + perfevent.h + perfeventtype.h + perfloaddialog.cpp perfloaddialog.h perfloaddialog.ui + perfoptionspage.cpp perfoptionspage.h + perfprofiler.qrc + perfprofilerconstants.h + perfprofilerflamegraphmodel.cpp perfprofilerflamegraphmodel.h + perfprofilerflamegraphview.cpp perfprofilerflamegraphview.h + perfprofilerplugin.cpp perfprofilerplugin.h + perfprofilerruncontrol.cpp perfprofilerruncontrol.h + perfprofilerstatisticsmodel.cpp perfprofilerstatisticsmodel.h + perfprofilerstatisticsview.cpp perfprofilerstatisticsview.h + perfprofilertool.cpp perfprofilertool.h + perfprofilertracefile.cpp perfprofilertracefile.h + perfprofilertracemanager.cpp perfprofilertracemanager.h + perfprofilertraceview.cpp perfprofilertraceview.h + perfprofiler_global.h + perfresourcecounter.cpp perfresourcecounter.h + perfrunconfigurationaspect.cpp perfrunconfigurationaspect.h + perfsettings.cpp perfsettings.h + perftimelinemodel.cpp perftimelinemodel.h + perftimelinemodelmanager.cpp perftimelinemodelmanager.h + perftimelineresourcesrenderpass.cpp perftimelineresourcesrenderpass.h + perftracepointdialog.cpp perftracepointdialog.h perftracepointdialog.ui +) + +if (WITH_TESTS) + target_sources(PerfProfiler PRIVATE + tests/perfprofilertracefile_test.cpp tests/perfprofilertracefile_test.h + tests/perfresourcecounter_test.cpp tests/perfresourcecounter_test.h + tests/tests.qrc + ) +endif() diff --git a/src/plugins/projectexplorer/CMakeLists.txt b/src/plugins/projectexplorer/CMakeLists.txt new file mode 100644 index 0000000000..af4cf26a3f --- /dev/null +++ b/src/plugins/projectexplorer/CMakeLists.txt @@ -0,0 +1,209 @@ +add_qtc_plugin(ProjectExplorer + DEPENDS QtcSsh Qt5::Qml + PLUGIN_DEPENDS Core TextEditor + SOURCES + abi.cpp abi.h + abiwidget.cpp abiwidget.h + abstractprocessstep.cpp abstractprocessstep.h + addrunconfigdialog.cpp addrunconfigdialog.h + allprojectsfilter.cpp allprojectsfilter.h + allprojectsfind.cpp allprojectsfind.h + ansifilterparser.cpp ansifilterparser.h + applicationlauncher.cpp applicationlauncher.h + appoutputpane.cpp appoutputpane.h + baseprojectwizarddialog.cpp baseprojectwizarddialog.h + buildconfiguration.cpp buildconfiguration.h + buildenvironmentwidget.cpp buildenvironmentwidget.h + buildinfo.cpp buildinfo.h + buildmanager.cpp buildmanager.h + buildprogress.cpp buildprogress.h + buildsettingspropertiespage.cpp buildsettingspropertiespage.h + buildstep.cpp buildstep.h + buildsteplist.cpp buildsteplist.h + buildstepspage.cpp buildstepspage.h + buildtargetinfo.h + clangparser.cpp clangparser.h + codestylesettingspropertiespage.cpp codestylesettingspropertiespage.h codestylesettingspropertiespage.ui + compileoutputwindow.cpp compileoutputwindow.h + configtaskhandler.cpp configtaskhandler.h + copytaskhandler.cpp copytaskhandler.h + currentprojectfilter.cpp currentprojectfilter.h + currentprojectfind.cpp currentprojectfind.h + customexecutablerunconfiguration.cpp customexecutablerunconfiguration.h + customparser.cpp customparser.h + customparserconfigdialog.cpp customparserconfigdialog.h customparserconfigdialog.ui + customtoolchain.cpp customtoolchain.h + customwizard/customwizard.cpp customwizard/customwizard.h + customwizard/customwizardpage.cpp customwizard/customwizardpage.h + customwizard/customwizardparameters.cpp customwizard/customwizardparameters.h + customwizard/customwizardscriptgenerator.cpp customwizard/customwizardscriptgenerator.h + dependenciespanel.cpp dependenciespanel.h + deployablefile.cpp deployablefile.h + deployconfiguration.cpp deployconfiguration.h + deploymentdata.cpp deploymentdata.h + deploymentdatamodel.cpp deploymentdatamodel.h + deploymentdataview.cpp deploymentdataview.h deploymentdataview.ui + devicesupport/desktopdevice.cpp devicesupport/desktopdevice.h + devicesupport/desktopdeviceconfigurationwidget.cpp devicesupport/desktopdeviceconfigurationwidget.h devicesupport/desktopdeviceconfigurationwidget.ui + devicesupport/desktopdevicefactory.cpp devicesupport/desktopdevicefactory.h + devicesupport/desktopdeviceprocess.cpp devicesupport/desktopdeviceprocess.h + devicesupport/desktopprocesssignaloperation.cpp devicesupport/desktopprocesssignaloperation.h + devicesupport/devicecheckbuildstep.cpp devicesupport/devicecheckbuildstep.h + devicesupport/devicefactoryselectiondialog.cpp devicesupport/devicefactoryselectiondialog.h devicesupport/devicefactoryselectiondialog.ui + devicesupport/devicemanager.cpp devicesupport/devicemanager.h + devicesupport/devicemanagermodel.cpp devicesupport/devicemanagermodel.h + devicesupport/deviceprocess.cpp devicesupport/deviceprocess.h + devicesupport/deviceprocessesdialog.cpp devicesupport/deviceprocessesdialog.h + devicesupport/deviceprocesslist.cpp devicesupport/deviceprocesslist.h + devicesupport/devicesettingspage.cpp devicesupport/devicesettingspage.h + devicesupport/devicesettingswidget.cpp devicesupport/devicesettingswidget.h devicesupport/devicesettingswidget.ui + devicesupport/devicetestdialog.cpp devicesupport/devicetestdialog.h devicesupport/devicetestdialog.ui + devicesupport/deviceusedportsgatherer.cpp devicesupport/deviceusedportsgatherer.h + devicesupport/idevice.cpp devicesupport/idevice.h + devicesupport/idevicefactory.cpp devicesupport/idevicefactory.h + devicesupport/idevicewidget.h + devicesupport/localprocesslist.cpp devicesupport/localprocesslist.h + devicesupport/sshdeviceprocess.cpp devicesupport/sshdeviceprocess.h + devicesupport/sshdeviceprocess.cpp devicesupport/sshdeviceprocess.h + devicesupport/sshdeviceprocesslist.cpp devicesupport/sshdeviceprocesslist.h + devicesupport/sshsettingspage.cpp devicesupport/sshsettingspage.h + editorconfiguration.cpp editorconfiguration.h + editorsettingspropertiespage.cpp editorsettingspropertiespage.h editorsettingspropertiespage.ui + environmentaspect.cpp environmentaspect.h + environmentaspectwidget.cpp environmentaspectwidget.h + environmentwidget.cpp environmentwidget.h + expanddata.cpp expanddata.h + extraabi.cpp extraabi.h + extracompiler.cpp extracompiler.h + fileinsessionfinder.cpp fileinsessionfinder.h + filterkitaspectsdialog.cpp filterkitaspectsdialog.h + foldernavigationwidget.cpp foldernavigationwidget.h + gccparser.cpp gccparser.h + gcctoolchain.cpp gcctoolchain.h + gcctoolchainfactories.h + gnumakeparser.cpp gnumakeparser.h + headerpath.h + importwidget.cpp importwidget.h + ioutputparser.cpp ioutputparser.h + ipotentialkit.h + itaskhandler.h + jsonwizard/jsonfieldpage.cpp jsonwizard/jsonfieldpage.h jsonwizard/jsonfieldpage_p.h + jsonwizard/jsonfilepage.cpp jsonwizard/jsonfilepage.h + jsonwizard/jsonkitspage.cpp jsonwizard/jsonkitspage.h + jsonwizard/jsonprojectpage.cpp jsonwizard/jsonprojectpage.h + jsonwizard/jsonsummarypage.cpp jsonwizard/jsonsummarypage.h + jsonwizard/jsonwizard.cpp jsonwizard/jsonwizard.h + jsonwizard/jsonwizardfactory.cpp jsonwizard/jsonwizardfactory.h + jsonwizard/jsonwizardfilegenerator.cpp jsonwizard/jsonwizardfilegenerator.h + jsonwizard/jsonwizardgeneratorfactory.cpp jsonwizard/jsonwizardgeneratorfactory.h + jsonwizard/jsonwizardpagefactory.cpp jsonwizard/jsonwizardpagefactory.h + jsonwizard/jsonwizardpagefactory_p.cpp + jsonwizard/jsonwizardpagefactory_p.h + jsonwizard/jsonwizardscannergenerator.cpp jsonwizard/jsonwizardscannergenerator.h + kit.cpp kit.h + kitchooser.cpp kitchooser.h + kitfeatureprovider.h + kitinformation.cpp kitinformation.h + kitmanager.cpp kitmanager.h + kitmanagerconfigwidget.cpp kitmanagerconfigwidget.h + kitmodel.cpp kitmodel.h + kitoptionspage.cpp kitoptionspage.h + ldparser.cpp ldparser.h + linuxiccparser.cpp linuxiccparser.h + localenvironmentaspect.cpp localenvironmentaspect.h + makestep.cpp makestep.h makestep.ui + miniprojecttargetselector.cpp miniprojecttargetselector.h + msvcparser.cpp msvcparser.h + msvctoolchain.cpp msvctoolchain.h + namedwidget.cpp namedwidget.h + osparser.cpp osparser.h + panelswidget.cpp panelswidget.h + processparameters.cpp processparameters.h + processstep.cpp processstep.h + project.cpp project.h + projectconfiguration.cpp projectconfiguration.h + projectconfigurationaspects.cpp projectconfigurationaspects.h + projectconfigurationmodel.cpp projectconfigurationmodel.h + projectexplorer.cpp projectexplorer.h + projectexplorer.qrc + projectexplorer_export.h + projectexplorer_global.h + projectexplorerconstants.h + projectexplorericons.cpp projectexplorericons.h + projectexplorersettings.h + projectexplorersettingspage.cpp projectexplorersettingspage.h projectexplorersettingspage.ui + projectfilewizardextension.cpp projectfilewizardextension.h + projectimporter.cpp projectimporter.h + projectmacro.cpp projectmacro.h + projectmacroexpander.cpp projectmacroexpander.h + projectmanager.h + projectmodels.cpp projectmodels.h + projectnodes.cpp projectnodes.h + projectpanelfactory.cpp projectpanelfactory.h + projecttree.cpp projecttree.h + projecttreewidget.cpp projecttreewidget.h + projectwelcomepage.cpp projectwelcomepage.h + projectwindow.cpp projectwindow.h + projectwizardpage.cpp projectwizardpage.h projectwizardpage.ui + removetaskhandler.cpp removetaskhandler.h + runconfiguration.cpp runconfiguration.h + runconfigurationaspects.cpp runconfigurationaspects.h + runcontrol.cpp runcontrol.h + runsettingspropertiespage.cpp runsettingspropertiespage.h + selectablefilesmodel.cpp selectablefilesmodel.h + session.cpp session.h + sessiondialog.cpp sessiondialog.h sessiondialog.ui + sessionmodel.cpp sessionmodel.h + sessionview.cpp sessionview.h + showineditortaskhandler.cpp showineditortaskhandler.h + showoutputtaskhandler.cpp showoutputtaskhandler.h + subscription.cpp subscription.h + target.cpp target.h + targetsettingspanel.cpp targetsettingspanel.h + targetsetuppage.cpp targetsetuppage.h + targetsetupwidget.cpp targetsetupwidget.h + task.cpp task.h + taskhub.cpp taskhub.h + taskmodel.cpp taskmodel.h + taskwindow.cpp taskwindow.h + toolchain.cpp toolchain.h + toolchaincache.h + toolchainconfigwidget.cpp toolchainconfigwidget.h + toolchainmanager.cpp toolchainmanager.h + toolchainoptionspage.cpp toolchainoptionspage.h + toolchainsettingsaccessor.cpp toolchainsettingsaccessor.h + treescanner.cpp treescanner.h + userfileaccessor.cpp userfileaccessor.h + vcsannotatetaskhandler.cpp vcsannotatetaskhandler.h + waitforstopdialog.cpp waitforstopdialog.h + xcodebuildparser.cpp xcodebuildparser.h +) + +if (TARGET libclang) + set(CLANG_BINDIR "$<TARGET_FILE_DIR:libclang>") +endif() +target_compile_definitions(ProjectExplorer PRIVATE CLANG_BINDIR="${CLANG_BINDIR}") + +if (WIN32) + target_sources(ProjectExplorer PRIVATE + windebuginterface.cpp windebuginterface.h) + target_compile_definitions(ProjectExplorer PRIVATE UNICODE _UNICODE) +endif() + +if (journald) + target_sources(ProjectExplorer PRIVATE + journaldwatcher.cpp journaldwatcher.h) + target_compile_definitions(ProjectExplorer PRIVATE WITH_JOURNALD) + target_link_libraries(ProjectExplorer PRIVATE systemd) +endif() + +if (WITH_TESTS) + target_sources(ProjectExplorer PRIVATE + jsonwizard/jsonwizard_test.cpp + outputparser_test.cpp outputparser_test.h + ) + set_source_files_properties(jsonwizard/jsonwizard_test.cpp + PROPERTIES HEADER_FILE_ONLY ON + ) +endif() + diff --git a/src/plugins/pythoneditor/CMakeLists.txt b/src/plugins/pythoneditor/CMakeLists.txt new file mode 100644 index 0000000000..1f0022ca15 --- /dev/null +++ b/src/plugins/pythoneditor/CMakeLists.txt @@ -0,0 +1,11 @@ +add_qtc_plugin(PythonEditor + PLUGIN_DEPENDS Core QtSupport ProjectExplorer TextEditor + SOURCES + pythoneditor.cpp pythoneditor.h + pythoneditorconstants.h + pythoneditorplugin.cpp pythoneditorplugin.h + pythonformattoken.h + pythonhighlighter.cpp pythonhighlighter.h + pythonindenter.cpp pythonindenter.h + pythonscanner.cpp pythonscanner.h +) diff --git a/src/plugins/qbsprojectmanager/CMakeLists.txt b/src/plugins/qbsprojectmanager/CMakeLists.txt new file mode 100644 index 0000000000..e02a516f1a --- /dev/null +++ b/src/plugins/qbsprojectmanager/CMakeLists.txt @@ -0,0 +1,38 @@ +find_package(Qbs) + +add_qtc_plugin(QbsProjectManager + CONDITION TARGET Qbs::QbsCore + DEPENDS Qbs::QbsCore Qt5::Widgets qmljs + DEFINES + QBS_INSTALL_DIR="${QBS_INSTALL_DIR}" + IDE_LIBRARY_BASENAME="${IDE_LIBRARY_BASE_PATH}" + PLUGIN_DEPENDS Core ProjectExplorer CppTools QtSupport QmlJSTools + SOURCES + customqbspropertiesdialog.cpp customqbspropertiesdialog.h customqbspropertiesdialog.ui + defaultpropertyprovider.cpp defaultpropertyprovider.h + propertyprovider.h + qbsbuildconfiguration.cpp qbsbuildconfiguration.h + qbsbuildstep.cpp qbsbuildstep.h + qbsbuildstepconfigwidget.ui + qbscleanstep.cpp qbscleanstep.h + qbscleanstepconfigwidget.ui + qbsinstallstep.cpp qbsinstallstep.h + qbsinstallstepconfigwidget.ui + qbskitinformation.cpp qbskitinformation.h + qbslogsink.cpp qbslogsink.h + qbsnodes.cpp qbsnodes.h + qbsnodetreebuilder.cpp qbsnodetreebuilder.h + qbsparser.cpp qbsparser.h + qbspmlogging.cpp qbspmlogging.h + qbsprofilessettingspage.cpp qbsprofilessettingspage.h + qbsprofilessettingswidget.ui + qbsproject.cpp qbsproject.h + qbsprojectimporter.cpp qbsprojectimporter.h + qbsprojectmanager.cpp qbsprojectmanager.h qbsprojectmanager.qrc + qbsprojectmanager_global.h + qbsprojectmanagerconstants.h + qbsprojectmanagerplugin.cpp qbsprojectmanagerplugin.h + qbsprojectmanagersettings.cpp qbsprojectmanagersettings.h + qbsprojectparser.cpp qbsprojectparser.h + qbsrunconfiguration.cpp qbsrunconfiguration.h +) diff --git a/src/plugins/qmakeprojectmanager/CMakeLists.txt b/src/plugins/qmakeprojectmanager/CMakeLists.txt new file mode 100644 index 0000000000..5cd7b6cc19 --- /dev/null +++ b/src/plugins/qmakeprojectmanager/CMakeLists.txt @@ -0,0 +1,53 @@ +add_qtc_plugin(QmakeProjectManager + DEPENDS qmljs + PLUGIN_DEPENDS Core CppTools QtSupport ResourceEditor TextEditor + PLUGIN_RECOMMENDS Designer + SOURCES + addlibrarywizard.cpp addlibrarywizard.h + applicationlauncher.h + customwidgetwizard/classdefinition.cpp customwidgetwizard/classdefinition.h customwidgetwizard/classdefinition.ui + customwidgetwizard/classlist.cpp customwidgetwizard/classlist.h + customwidgetwizard/customwidgetpluginwizardpage.cpp customwidgetwizard/customwidgetpluginwizardpage.h customwidgetwizard/customwidgetpluginwizardpage.ui + customwidgetwizard/customwidgetwidgetswizardpage.cpp customwidgetwizard/customwidgetwidgetswizardpage.h customwidgetwizard/customwidgetwidgetswizardpage.ui + customwidgetwizard/customwidgetwizard.cpp customwidgetwizard/customwidgetwizard.h + customwidgetwizard/customwidgetwizarddialog.cpp customwidgetwizard/customwidgetwizarddialog.h + customwidgetwizard/filenamingparameters.h + customwidgetwizard/plugingenerator.cpp customwidgetwizard/plugingenerator.h + customwidgetwizard/pluginoptions.h + desktopqmakerunconfiguration.cpp desktopqmakerunconfiguration.h + externaleditors.cpp externaleditors.h + librarydetailscontroller.cpp librarydetailscontroller.h + librarydetailswidget.ui + makefileparse.cpp makefileparse.h + profilecompletionassist.cpp profilecompletionassist.h + profileeditor.cpp profileeditor.h + profilehighlighter.cpp profilehighlighter.h + profilehoverhandler.cpp profilehoverhandler.h + qmakebuildconfiguration.cpp qmakebuildconfiguration.h + qmakebuildinfo.h + qmakekitinformation.cpp qmakekitinformation.h + qmakemakestep.cpp qmakemakestep.h + qmakenodes.cpp qmakenodes.h + qmakenodetreebuilder.cpp qmakenodetreebuilder.h + qmakeparser.cpp qmakeparser.h + qmakeparsernodes.cpp qmakeparsernodes.h + qmakeproject.cpp qmakeproject.h + qmakeprojectconfigwidget.cpp qmakeprojectconfigwidget.h + qmakeprojectimporter.cpp qmakeprojectimporter.h + qmakeprojectmanager.cpp qmakeprojectmanager.h + qmakeprojectmanager.qrc + qmakeprojectmanager_global.h + qmakeprojectmanagerconstants.h + qmakeprojectmanagerplugin.cpp qmakeprojectmanagerplugin.h + qmakesettings.cpp qmakesettings.h + qmakestep.cpp qmakestep.h qmakestep.ui + qtmodulesinfo.cpp qtmodulesinfo.h + wizards/filespage.cpp wizards/filespage.h + wizards/modulespage.cpp wizards/modulespage.h + wizards/qtprojectparameters.cpp wizards/qtprojectparameters.h + wizards/qtwizard.cpp wizards/qtwizard.h + wizards/simpleprojectwizard.cpp wizards/simpleprojectwizard.h + wizards/subdirsprojectwizard.cpp wizards/subdirsprojectwizard.h + wizards/subdirsprojectwizarddialog.cpp wizards/subdirsprojectwizarddialog.h + wizards/wizards.qrc +) diff --git a/src/plugins/qmakeprojectmanager/qmakeproject.cpp b/src/plugins/qmakeprojectmanager/qmakeproject.cpp index eb7a406051..81f3216b89 100644 --- a/src/plugins/qmakeprojectmanager/qmakeproject.cpp +++ b/src/plugins/qmakeprojectmanager/qmakeproject.cpp @@ -58,6 +58,7 @@ #include <projectexplorer/taskhub.h> #include <projectexplorer/toolchain.h> #include <proparser/qmakevfs.h> +#include <proparser/qmakeglobals.h> #include <qtsupport/profilereader.h> #include <qtsupport/qtcppkitinfo.h> #include <qtsupport/qtkitinformation.h> diff --git a/src/plugins/qmldesigner/CMakeLists.txt b/src/plugins/qmldesigner/CMakeLists.txt new file mode 100644 index 0000000000..31bddc830e --- /dev/null +++ b/src/plugins/qmldesigner/CMakeLists.txt @@ -0,0 +1,533 @@ +add_qtc_plugin(QmlDesigner + DEPENDS + qmljs LanguageUtils QmlEditorWidgets + Qt5::QuickWidgets Qt5::CorePrivate + DEFINES + DESIGNER_CORE_LIBRARY + IDE_LIBRARY_BASENAME=\"${IDE_LIBRARY_BASE_PATH}\" + INCLUDES + ${CMAKE_CURRENT_LIST_DIR}/designercore/include + PLUGIN_DEPENDS + Core ProjectExplorer QmlJSEditor QmakeProjectManager QmlProjectManager + QtSupport TextEditor + SOURCES + designersettings.cpp designersettings.h + designmodecontext.cpp designmodecontext.h + designmodewidget.cpp designmodewidget.h + documentmanager.cpp documentmanager.h + documentwarningwidget.cpp documentwarningwidget.h + openuiqmlfiledialog.cpp openuiqmlfiledialog.h openuiqmlfiledialog.ui + qmldesignerconstants.h + qmldesignericons.h + qmldesignerplugin.cpp qmldesignerplugin.h + settingspage.cpp settingspage.h settingspage.ui + shortcutmanager.cpp shortcutmanager.h + switchsplittabwidget.cpp switchsplittabwidget.h + EXPLICIT_MOC + components/propertyeditor/propertyeditorvalue.h + qmldesignerextension/connectioneditor/connectionviewwidget.h + SKIP_DEBUG_CMAKE_FILE_CHECK +) + +set(QmlDesignerPluginInstallPrefix "${IDE_PLUGIN_PATH}/qmldesigner") +if (APPLE) + set(QmlDesignerPluginInstallPrefix "${IDE_PLUGIN_PATH}/QmlDesigner") +endif() + +add_qtc_plugin(componentsplugin + DEPENDS Core QmlDesigner Utils Qt5::Qml + DEFINES COMPONENTS_LIBRARY + INCLUDES ${CMAKE_CURRENT_LIST_DIR}/designercore/include + SOURCES + componentsplugin/addtabdesigneraction.cpp componentsplugin/addtabdesigneraction.h + componentsplugin/addtabtotabviewdialog.cpp componentsplugin/addtabtotabviewdialog.h + componentsplugin/addtabtotabviewdialog.ui + componentsplugin/componentsplugin.cpp componentsplugin/componentsplugin.h + componentsplugin/componentsplugin.qrc + componentsplugin/entertabdesigneraction.cpp componentsplugin/entertabdesigneraction.h + componentsplugin/tabviewindexmodel.cpp componentsplugin/tabviewindexmodel.h + PLUGIN_PATH ${QmlDesignerPluginInstallPrefix} + SKIP_DEBUG_CMAKE_FILE_CHECK +) + +add_qtc_plugin(qtquickplugin + DEPENDS Core QmlDesigner Utils Qt5::Qml + DEFINES QTQUICK_LIBRARY + INCLUDES ${CMAKE_CURRENT_LIST_DIR}/designercore/include + SOURCES + qtquickplugin/qtquickplugin.cpp qtquickplugin/qtquickplugin.h + qtquickplugin/qtquickplugin.qrc + PLUGIN_PATH ${QmlDesignerPluginInstallPrefix} + SKIP_DEBUG_CMAKE_FILE_CHECK +) + +function(extend_qtc_plugin name directory) + foreach(source ${ARGN}) + list(APPEND source_list ${directory}/${source}) + 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 + idcontainer.cpp idcontainer.h + imagecontainer.cpp imagecontainer.h + informationcontainer.cpp informationcontainer.h + instancecontainer.cpp instancecontainer.h + mockuptypecontainer.cpp mockuptypecontainer.h + propertyabstractcontainer.cpp propertyabstractcontainer.h + propertybindingcontainer.cpp propertybindingcontainer.h + propertyvaluecontainer.cpp propertyvaluecontainer.h + reparentcontainer.cpp reparentcontainer.h + sharedmemory.h +) + +if (UNIX) + extend_qtc_plugin(QmlDesigner ../../../share/qtcreator/qml/qmlpuppet/container + sharedmemory_unix.cpp + ) + if (NOT APPLE) + target_link_libraries(QmlDesigner PRIVATE rt) + endif() +else() + extend_qtc_plugin(QmlDesigner ../../../share/qtcreator/qml/qmlpuppet/container + sharedmemory_qt.cpp + ) +endif() + +extend_qtc_plugin(QmlDesigner ../../../share/qtcreator/qml/qmlpuppet/commands + changeauxiliarycommand.cpp changeauxiliarycommand.h + changebindingscommand.cpp changebindingscommand.h + changefileurlcommand.cpp changefileurlcommand.h + changeidscommand.cpp changeidscommand.h + changenodesourcecommand.cpp changenodesourcecommand.h + changestatecommand.cpp changestatecommand.h + changevaluescommand.cpp changevaluescommand.h + childrenchangedcommand.cpp childrenchangedcommand.h + clearscenecommand.cpp clearscenecommand.h + completecomponentcommand.cpp completecomponentcommand.h + componentcompletedcommand.cpp componentcompletedcommand.h + createinstancescommand.cpp createinstancescommand.h + createscenecommand.cpp createscenecommand.h + debugoutputcommand.cpp debugoutputcommand.h + endpuppetcommand.cpp endpuppetcommand.h + informationchangedcommand.cpp informationchangedcommand.h + pixmapchangedcommand.cpp pixmapchangedcommand.h + puppetalivecommand.cpp puppetalivecommand.h + removeinstancescommand.cpp removeinstancescommand.h + removepropertiescommand.cpp removepropertiescommand.h + removesharedmemorycommand.cpp removesharedmemorycommand.h + reparentinstancescommand.cpp reparentinstancescommand.h + statepreviewimagechangedcommand.cpp statepreviewimagechangedcommand.h + synchronizecommand.cpp synchronizecommand.h + tokencommand.cpp tokencommand.h + valueschangedcommand.cpp valueschangedcommand.h +) + +extend_qtc_plugin(QmlDesigner ../../../share/qtcreator/qml/qmlpuppet/interfaces + nodeinstanceserverinterface.cpp + commondefines.h + nodeinstanceclientinterface.h + nodeinstanceglobal.h + nodeinstanceserverinterface.h +) + +extend_qtc_plugin(QmlDesigner ../../../share/qtcreator/qml/qmlpuppet/types + enumeration.cpp enumeration.h +) + +extend_qtc_plugin(QmlDesigner components/componentcore + abstractaction.cpp abstractaction.h + abstractactiongroup.cpp abstractactiongroup.h + actioninterface.h + addimagesdialog.cpp addimagesdialog.h + addsignalhandlerdialog.cpp addsignalhandlerdialog.h addsignalhandlerdialog.ui + changestyleaction.cpp changestyleaction.h + componentcore.qrc + componentcore_constants.h + crumblebar.cpp crumblebar.h + designeractionmanager.cpp designeractionmanager.h + designeractionmanagerview.cpp designeractionmanagerview.h + findimplementation.cpp findimplementation.h + layoutingridlayout.cpp layoutingridlayout.h + modelnodecontextmenu.cpp modelnodecontextmenu.h + modelnodecontextmenu_helper.cpp modelnodecontextmenu_helper.h + modelnodeoperations.cpp modelnodeoperations.h + qmldesignericonprovider.cpp qmldesignericonprovider.h + selectioncontext.cpp selectioncontext.h + theme.cpp theme.h + zoomaction.cpp zoomaction.h +) + +extend_qtc_plugin(QmlDesigner components/debugview + debugview.cpp debugview.h + debugviewwidget.cpp debugviewwidget.h debugviewwidget.ui +) + +extend_qtc_plugin(QmlDesigner components/formeditor + abstractcustomtool.cpp abstractcustomtool.h + abstractformeditortool.cpp abstractformeditortool.h + anchorindicator.cpp anchorindicator.h + anchorindicatorgraphicsitem.cpp anchorindicatorgraphicsitem.h + backgroundaction.cpp backgroundaction.h + bindingindicator.cpp bindingindicator.h + bindingindicatorgraphicsitem.cpp bindingindicatorgraphicsitem.h + contentnoteditableindicator.cpp contentnoteditableindicator.h + controlelement.cpp controlelement.h + dragtool.cpp dragtool.h + formeditor.qrc + formeditorgraphicsview.cpp formeditorgraphicsview.h + formeditoritem.cpp formeditoritem.h + formeditorscene.cpp formeditorscene.h + formeditorsubwindow.h + formeditortoolbutton.cpp formeditortoolbutton.h + formeditorview.cpp formeditorview.h + formeditorwidget.cpp formeditorwidget.h + itemutilfunctions.cpp itemutilfunctions.h + layeritem.cpp layeritem.h + lineeditaction.cpp lineeditaction.h + movemanipulator.cpp movemanipulator.h + movetool.cpp movetool.h + numberseriesaction.cpp numberseriesaction.h + onedimensionalcluster.cpp onedimensionalcluster.h + resizecontroller.cpp resizecontroller.h + resizehandleitem.cpp resizehandleitem.h + resizeindicator.cpp resizeindicator.h + resizemanipulator.cpp resizemanipulator.h + resizetool.cpp resizetool.h + rubberbandselectionmanipulator.cpp rubberbandselectionmanipulator.h + scaleitem.cpp scaleitem.h + scalemanipulator.cpp scalemanipulator.h + selectionindicator.cpp selectionindicator.h + selectionrectangle.cpp selectionrectangle.h + selectiontool.cpp selectiontool.h + singleselectionmanipulator.cpp singleselectionmanipulator.h + snapper.cpp snapper.h + snappinglinecreator.cpp snappinglinecreator.h + toolbox.cpp toolbox.h +) + +extend_qtc_plugin(QmlDesigner components/importmanager + importlabel.cpp importlabel.h + importmanager.qrc + importmanagercombobox.cpp importmanagercombobox.h + importmanagerview.cpp importmanagerview.h + importswidget.cpp importswidget.h +) + +extend_qtc_plugin(QmlDesigner components/integration + componentaction.cpp componentaction.h + componentview.cpp componentview.h + designdocument.cpp designdocument.h + designdocumentview.cpp designdocumentview.h + stackedutilitypanelcontroller.cpp stackedutilitypanelcontroller.h + utilitypanelcontroller.cpp utilitypanelcontroller.h +) + +extend_qtc_plugin(QmlDesigner components/itemlibrary + customfilesystemmodel.cpp customfilesystemmodel.h + itemlibrary.qrc + itemlibraryimageprovider.cpp itemlibraryimageprovider.h + itemlibraryitem.cpp itemlibraryitem.h + itemlibrarymodel.cpp itemlibrarymodel.h + itemlibraryresourceview.cpp itemlibraryresourceview.h + itemlibrarysection.cpp itemlibrarysection.h + itemlibrarysectionmodel.cpp itemlibrarysectionmodel.h + itemlibraryview.cpp itemlibraryview.h + itemlibrarywidget.cpp itemlibrarywidget.h +) + +extend_qtc_plugin(QmlDesigner components/navigator + iconcheckboxitemdelegate.cpp iconcheckboxitemdelegate.h + nameitemdelegate.cpp nameitemdelegate.h + navigator.qrc + navigatormodelinterface.h + navigatortreemodel.cpp navigatortreemodel.h + navigatortreeview.cpp navigatortreeview.h + navigatorview.cpp navigatorview.h + navigatorwidget.cpp navigatorwidget.h +) + +extend_qtc_plugin(QmlDesigner components/propertyeditor + designerpropertymap.cpp designerpropertymap.h + fileresourcesmodel.cpp fileresourcesmodel.h + gradientmodel.cpp gradientmodel.h + gradientpresetcustomlistmodel.cpp gradientpresetcustomlistmodel.h + gradientpresetdefaultlistmodel.cpp gradientpresetdefaultlistmodel.h + gradientpresetitem.cpp gradientpresetitem.h + gradientpresetlistmodel.cpp gradientpresetlistmodel.h + propertyeditorcontextobject.cpp propertyeditorcontextobject.h + propertyeditorqmlbackend.cpp propertyeditorqmlbackend.h + propertyeditortransaction.cpp propertyeditortransaction.h + propertyeditorvalue.cpp propertyeditorvalue.h + propertyeditorview.cpp propertyeditorview.h + propertyeditorwidget.cpp propertyeditorwidget.h + qmlanchorbindingproxy.cpp qmlanchorbindingproxy.h + qmlmodelnodeproxy.cpp qmlmodelnodeproxy.h + quick2propertyeditorview.cpp quick2propertyeditorview.h +) + +extend_qtc_plugin(QmlDesigner components + resources/resources.qrc +) + +extend_qtc_plugin(QmlDesigner components/stateseditor + stateseditorimageprovider.cpp stateseditorimageprovider.h + stateseditormodel.cpp stateseditormodel.h + stateseditorview.cpp stateseditorview.h + stateseditorwidget.cpp stateseditorwidget.h +) + +extend_qtc_plugin(QmlDesigner components/texteditor + texteditorstatusbar.cpp texteditorstatusbar.h + texteditorview.cpp texteditorview.h + texteditorwidget.cpp texteditorwidget.h +) + +extend_qtc_plugin(QmlDesigner designercore + exceptions/exception.cpp + exceptions/invalidargumentexception.cpp + exceptions/invalididexception.cpp + exceptions/invalidmetainfoexception.cpp + exceptions/invalidmodelnodeexception.cpp + exceptions/invalidmodelstateexception.cpp + exceptions/invalidpropertyexception.cpp + exceptions/invalidqmlsourceexception.cpp + exceptions/invalidreparentingexception.cpp + exceptions/invalidslideindexexception.cpp + exceptions/notimplementedexception.cpp + exceptions/removebasestateexception.cpp + exceptions/rewritingexception.cpp + + filemanager/addarraymembervisitor.cpp filemanager/addarraymembervisitor.h + filemanager/addobjectvisitor.cpp filemanager/addobjectvisitor.h + filemanager/addpropertyvisitor.cpp filemanager/addpropertyvisitor.h + filemanager/astobjecttextextractor.cpp filemanager/astobjecttextextractor.h + filemanager/changeimportsvisitor.cpp filemanager/changeimportsvisitor.h + filemanager/changeobjecttypevisitor.cpp filemanager/changeobjecttypevisitor.h + filemanager/changepropertyvisitor.cpp filemanager/changepropertyvisitor.h + filemanager/firstdefinitionfinder.cpp filemanager/firstdefinitionfinder.h + filemanager/moveobjectbeforeobjectvisitor.cpp filemanager/moveobjectbeforeobjectvisitor.h + filemanager/moveobjectvisitor.cpp filemanager/moveobjectvisitor.h + filemanager/objectlengthcalculator.cpp filemanager/objectlengthcalculator.h + filemanager/qmlrefactoring.cpp filemanager/qmlrefactoring.h + filemanager/qmlrewriter.cpp filemanager/qmlrewriter.h + filemanager/removepropertyvisitor.cpp filemanager/removepropertyvisitor.h + filemanager/removeuiobjectmembervisitor.cpp filemanager/removeuiobjectmembervisitor.h + + include/abstractproperty.h + include/abstractview.h + include/anchorline.h + include/basetexteditmodifier.h + include/bindingproperty.h + include/bytearraymodifier.h + include/componenttextmodifier.h + include/customnotifications.h + include/documentmessage.h + include/exception.h + include/forwardview.h + include/import.h + include/invalidargumentexception.h + include/invalididexception.h + include/invalidmetainfoexception.h + include/invalidmodelnodeexception.h + include/invalidmodelstateexception.h + include/invalidpropertyexception.h + include/invalidqmlsourceexception.h + include/invalidreparentingexception.h + include/invalidslideindexexception.h + include/itemlibraryinfo.h + include/iwidgetplugin.h + include/mathutils.h + include/metainfo.h + include/metainforeader.h + include/model.h + include/modelmerger.h + include/modelnode.h + include/modelnodepositionstorage.h + include/modificationgroupexception.h + include/modificationgrouptoken.h + include/nodeabstractproperty.h + include/nodeanchors.h + include/nodehints.h + include/nodeinstance.h + include/nodeinstanceview.h + include/nodelistproperty.h + include/nodemetainfo.h + include/nodeproperty.h + include/notimplementedexception.h + include/objectpropertybinding.h + include/plaintexteditmodifier.h + include/propertybinding.h + include/propertycontainer.h + include/propertynode.h + include/propertyparser.h + include/qmlanchors.h + include/qmlchangeset.h + include/qmldesignercorelib_global.h + include/qmlitemnode.h + include/qmlmodelnodefacade.h + include/qmlobjectnode.h + include/qmlstate.h + include/qmltimeline.h + include/qmltimelinekeyframegroup.h + include/removebasestateexception.h + include/rewriterview.h + include/rewritingexception.h + include/signalhandlerproperty.h + include/subcomponentmanager.h + include/textmodifier.h + include/variantproperty.h + include/viewmanager.h +) + +extend_qtc_plugin(QmlDesigner designercore/instances + nodeinstance.cpp + nodeinstanceserverproxy.cpp nodeinstanceserverproxy.h + nodeinstanceview.cpp + puppetbuildprogressdialog.cpp puppetbuildprogressdialog.h puppetbuildprogressdialog.ui + puppetcreator.cpp puppetcreator.h + puppetdialog.cpp puppetdialog.h puppetdialog.ui +) + +extend_qtc_plugin(QmlDesigner designercore + metainfo/itemlibraryinfo.cpp + metainfo/metainfo.cpp + metainfo/metainforeader.cpp + metainfo/nodehints.cpp + metainfo/nodemetainfo.cpp + metainfo/subcomponentmanager.cpp + + model/abstractproperty.cpp + model/abstractview.cpp + model/anchorline.cpp + model/basetexteditmodifier.cpp + model/bindingproperty.cpp + model/componenttextmodifier.cpp + model/documentmessage.cpp + model/import.cpp + model/internalbindingproperty.cpp model/internalbindingproperty.h + model/internalnode.cpp model/internalnode_p.h + model/internalnodeabstractproperty.cpp model/internalnodeabstractproperty.h + model/internalnodelistproperty.cpp model/internalnodelistproperty.h + model/internalnodeproperty.cpp model/internalnodeproperty.h + model/internalproperty.cpp model/internalproperty.h + model/internalsignalhandlerproperty.cpp model/internalsignalhandlerproperty.h + model/internalvariantproperty.cpp model/internalvariantproperty.h + model/model.cpp model/model_p.h + model/modelmerger.cpp + model/modelnode.cpp + model/modelnodepositionrecalculator.cpp model/modelnodepositionrecalculator.h + model/modelnodepositionstorage.cpp + model/modeltotextmerger.cpp model/modeltotextmerger.h + model/nodeabstractproperty.cpp + model/nodelistproperty.cpp + model/nodeproperty.cpp + model/plaintexteditmodifier.cpp + model/propertycontainer.cpp + model/propertynode.cpp + model/propertyparser.cpp + model/qmlanchors.cpp + model/qmlchangeset.cpp + model/qmlitemnode.cpp + model/qmlmodelnodefacade.cpp + model/qmlobjectnode.cpp + model/qmlstate.cpp + model/qmltextgenerator.cpp model/qmltextgenerator.h + model/qmltimeline.cpp + model/qmltimelinekeyframegroup.cpp + model/rewriteaction.cpp model/rewriteaction.h + model/rewriteactioncompressor.cpp model/rewriteactioncompressor.h + model/rewriterview.cpp + model/signalhandlerproperty.cpp + model/textmodifier.cpp + model/texttomodelmerger.cpp model/texttomodelmerger.h + model/variantproperty.cpp + model/viewmanager.cpp + + pluginmanager/widgetpluginmanager.cpp pluginmanager/widgetpluginmanager.h + pluginmanager/widgetpluginpath.cpp pluginmanager/widgetpluginpath.h + rewritertransaction.cpp rewritertransaction.h +) + +extend_qtc_plugin(QmlDesigner qmldesignerextension + colortool/colortool.cpp colortool/colortool.h +) + +extend_qtc_plugin(QmlDesigner qmldesignerextension/connectioneditor + addnewbackenddialog.cpp addnewbackenddialog.h addnewbackenddialog.ui + backendmodel.cpp backendmodel.h + bindingmodel.cpp bindingmodel.h + connectioneditor.qrc + connectionmodel.cpp connectionmodel.h + connectionview.cpp connectionview.h + connectionviewwidget.cpp connectionviewwidget.h connectionviewwidget.ui + delegates.cpp delegates.h + dynamicpropertiesmodel.cpp dynamicpropertiesmodel.h +) + +extend_qtc_plugin(QmlDesigner qmldesignerextension + pathtool/controlpoint.cpp pathtool/controlpoint.h + pathtool/cubicsegment.cpp pathtool/cubicsegment.h + pathtool/pathitem.cpp pathtool/pathitem.h + pathtool/pathselectionmanipulator.cpp pathtool/pathselectionmanipulator.h + pathtool/pathtool.cpp pathtool/pathtool.h + pathtool/pathtoolview.cpp pathtool/pathtoolview.h + + qmldesignerextensionconstants.h + qmldesignerextension_global.h + + sourcetool/sourcetool.cpp sourcetool/sourcetool.h + + texttool/textedititem.cpp texttool/textedititem.h + texttool/textedititemwidget.cpp texttool/textedititemwidget.h + texttool/texttool.cpp texttool/texttool.h +) + +extend_qtc_plugin(QmlDesigner qmldesignerextension/timelineeditor + canvas.cpp canvas.h + canvasstyledialog.cpp canvasstyledialog.h + easingcurve.cpp easingcurve.h + easingcurvedialog.cpp easingcurvedialog.h + preseteditor.cpp preseteditor.h + setframevaluedialog.cpp setframevaluedialog.h setframevaluedialog.ui + splineeditor.cpp splineeditor.h + timeline.qrc + timelineabstracttool.cpp timelineabstracttool.h + timelineactions.cpp timelineactions.h + timelineanimationform.cpp timelineanimationform.h timelineanimationform.ui + timelineconstants.h + timelinecontext.cpp timelinecontext.h + timelinecontrols.cpp timelinecontrols.h + timelineform.cpp timelineform.h timelineform.ui + timelinegraphicslayout.cpp timelinegraphicslayout.h + timelinegraphicsscene.cpp timelinegraphicsscene.h + timelineicons.h + timelineitem.cpp timelineitem.h + timelinemovableabstractitem.cpp timelinemovableabstractitem.h + timelinemovetool.cpp timelinemovetool.h + timelineplaceholder.cpp timelineplaceholder.h + timelinepropertyitem.cpp timelinepropertyitem.h + timelinesectionitem.cpp timelinesectionitem.h + timelineselectiontool.cpp timelineselectiontool.h + timelinesettingsdialog.cpp + timelinesettingsdialog.h timelinesettingsdialog.ui + timelinesettingsmodel.cpp timelinesettingsmodel.h + timelinetoolbar.cpp timelinetoolbar.h + timelinetoolbutton.cpp timelinetoolbutton.h + timelinetooldelegate.cpp timelinetooldelegate.h + timelineutils.cpp timelineutils.h + timelineview.cpp timelineview.h + timelinewidget.cpp timelinewidget.h +) + +# Do the file comparison at the end, due to all the extend_qtc_plugin calls +if (WITH_DEBUG_CMAKE) + foreach(plugin QmlDesigner componentsplugin qtquickplugin) + unset(plugin_sources) + get_target_property(plugin_sources ${plugin} SOURCES) + list(APPEND QmlDesignerSources ${plugin_sources}) + endforeach() + compare_sources_with_existing_disk_files(QmlDesigner "${QmlDesignerSources}") +endif() diff --git a/src/plugins/qmljseditor/CMakeLists.txt b/src/plugins/qmljseditor/CMakeLists.txt new file mode 100644 index 0000000000..c931d1729d --- /dev/null +++ b/src/plugins/qmljseditor/CMakeLists.txt @@ -0,0 +1,33 @@ +add_qtc_plugin(QmlJSEditor + DEPENDS LanguageUtils qmljs QmlEditorWidgets + PLUGIN_DEPENDS Core ProjectExplorer QmlJSTools TextEditor + SOURCES + qmlexpressionundercursor.cpp qmlexpressionundercursor.h + qmljsautocompleter.cpp qmljsautocompleter.h + qmljscompletionassist.cpp qmljscompletionassist.h + qmljscomponentfromobjectdef.cpp qmljscomponentfromobjectdef.h + qmljscomponentnamedialog.cpp qmljscomponentnamedialog.h qmljscomponentnamedialog.ui + qmljseditingsettingspage.cpp qmljseditingsettingspage.h qmljseditingsettingspage.ui + qmljseditor.cpp qmljseditor.h + qmljseditor_global.h + qmljseditorconstants.h + qmljseditordocument.cpp qmljseditordocument.h qmljseditordocument_p.h + qmljseditorplugin.cpp qmljseditorplugin.h + qmljsfindreferences.cpp qmljsfindreferences.h + qmljshighlighter.cpp qmljshighlighter.h + qmljshoverhandler.cpp qmljshoverhandler.h + qmljsoutline.cpp qmljsoutline.h + qmljsoutlinetreeview.cpp qmljsoutlinetreeview.h + qmljsquickfix.cpp qmljsquickfix.h + qmljsquickfixassist.cpp qmljsquickfixassist.h + qmljsquickfixes.cpp + qmljsreuse.cpp qmljsreuse.h + qmljssemantichighlighter.cpp qmljssemantichighlighter.h + qmljssemanticinfoupdater.cpp qmljssemanticinfoupdater.h + qmljstextmark.cpp qmljstextmark.h + qmljswrapinloader.cpp qmljswrapinloader.h + qmloutlinemodel.cpp qmloutlinemodel.h + qmltaskmanager.cpp qmltaskmanager.h + quicktoolbar.cpp quicktoolbar.h + EXPLICIT_MOC qmljseditor.h +) diff --git a/src/plugins/qmljseditor/qmljscompletionassist.cpp b/src/plugins/qmljseditor/qmljscompletionassist.cpp index b307cb59ab..a581a2a2f3 100644 --- a/src/plugins/qmljseditor/qmljscompletionassist.cpp +++ b/src/plugins/qmljseditor/qmljscompletionassist.cpp @@ -24,6 +24,7 @@ ****************************************************************************/ #include "qmljscompletionassist.h" +#include "qmljseditor.h" #include "qmljseditorconstants.h" #include "qmljsreuse.h" #include "qmlexpressionundercursor.h" diff --git a/src/plugins/qmljseditor/qmljscompletionassist.h b/src/plugins/qmljseditor/qmljscompletionassist.h index c737587f88..df697ef5e1 100644 --- a/src/plugins/qmljseditor/qmljscompletionassist.h +++ b/src/plugins/qmljseditor/qmljscompletionassist.h @@ -25,8 +25,9 @@ #pragma once -#include "qmljseditor.h" +#include "qmljseditor_global.h" +#include <qmljstools/qmljssemanticinfo.h> #include <texteditor/codeassist/assistproposalitem.h> #include <texteditor/codeassist/genericproposalmodel.h> #include <texteditor/codeassist/completionassistprovider.h> diff --git a/src/plugins/qmljseditor/qmljscomponentfromobjectdef.h b/src/plugins/qmljseditor/qmljscomponentfromobjectdef.h index e61b992996..1d6dc4cdc4 100644 --- a/src/plugins/qmljseditor/qmljscomponentfromobjectdef.h +++ b/src/plugins/qmljseditor/qmljscomponentfromobjectdef.h @@ -25,6 +25,7 @@ #pragma once +#include "qmljseditor_global.h" #include "qmljsquickfix.h" namespace QmlJSEditor { diff --git a/src/plugins/qmljseditor/qmljsoutline.h b/src/plugins/qmljseditor/qmljsoutline.h index 0a50667ae2..1e4b1d20d1 100644 --- a/src/plugins/qmljseditor/qmljsoutline.h +++ b/src/plugins/qmljseditor/qmljsoutline.h @@ -25,8 +25,6 @@ #pragma once -#include "qmljseditor.h" - #include <texteditor/ioutlinewidget.h> #include <QSortFilterProxyModel> @@ -42,6 +40,7 @@ namespace QmlJS { class Editor; } namespace QmlJSEditor { namespace Internal { +class QmlJSEditorWidget; class QmlJSOutlineTreeView; class QmlJSOutlineFilterModel : public QSortFilterProxyModel diff --git a/src/plugins/qmljseditor/qmljsquickfix.h b/src/plugins/qmljseditor/qmljsquickfix.h index 856b4f29c8..37d4c134b6 100644 --- a/src/plugins/qmljseditor/qmljsquickfix.h +++ b/src/plugins/qmljseditor/qmljsquickfix.h @@ -25,8 +25,6 @@ #pragma once -#include "qmljseditor.h" - #include <texteditor/quickfix.h> #include <qmljs/parser/qmljsastfwd_p.h> #include <qmljs/qmljsdocument.h> diff --git a/src/plugins/qmljseditor/qmljsquickfixassist.cpp b/src/plugins/qmljseditor/qmljsquickfixassist.cpp index 21b44faaa5..37efbaf39c 100644 --- a/src/plugins/qmljseditor/qmljsquickfixassist.cpp +++ b/src/plugins/qmljseditor/qmljsquickfixassist.cpp @@ -24,6 +24,7 @@ ****************************************************************************/ #include "qmljsquickfixassist.h" +#include "qmljseditor.h" #include "qmljseditorconstants.h" #include "qmljseditordocument.h" diff --git a/src/plugins/qmljseditor/qmljsquickfixassist.h b/src/plugins/qmljseditor/qmljsquickfixassist.h index f638465d4b..83d328fc80 100644 --- a/src/plugins/qmljseditor/qmljsquickfixassist.h +++ b/src/plugins/qmljseditor/qmljsquickfixassist.h @@ -25,9 +25,8 @@ #pragma once -#include "qmljseditor.h" - #include <qmljstools/qmljsrefactoringchanges.h> +#include <qmljstools/qmljssemanticinfo.h> #include <texteditor/codeassist/assistinterface.h> #include <texteditor/codeassist/iassistprovider.h> @@ -35,6 +34,8 @@ namespace QmlJSEditor { namespace Internal { +class QmlJSEditorWidget; + class QmlJSQuickFixAssistInterface : public TextEditor::AssistInterface { public: diff --git a/src/plugins/qmljseditor/qmljssemanticinfoupdater.h b/src/plugins/qmljseditor/qmljssemanticinfoupdater.h index 85a3fce29f..bfd32596fb 100644 --- a/src/plugins/qmljseditor/qmljssemanticinfoupdater.h +++ b/src/plugins/qmljseditor/qmljssemanticinfoupdater.h @@ -25,7 +25,8 @@ #pragma once -#include "qmljseditor.h" +#include <qmljs/qmljsdocument.h> +#include <qmljstools/qmljssemanticinfo.h> #include <QWaitCondition> #include <QModelIndex> diff --git a/src/plugins/qmljstools/CMakeLists.txt b/src/plugins/qmljstools/CMakeLists.txt new file mode 100644 index 0000000000..675ed50e51 --- /dev/null +++ b/src/plugins/qmljstools/CMakeLists.txt @@ -0,0 +1,25 @@ +add_qtc_plugin(QmlJSTools + DEPENDS LanguageUtils + PUBLIC_DEPENDS qmljs + PLUGIN_DEPENDS Core CppTools ProjectExplorer QtSupport TextEditor + SOURCES + qmljsbundleprovider.cpp qmljsbundleprovider.h + qmljscodestylepreferencesfactory.cpp qmljscodestylepreferencesfactory.h + qmljscodestylesettingspage.cpp qmljscodestylesettingspage.h qmljscodestylesettingspage.ui + qmljsfunctionfilter.cpp qmljsfunctionfilter.h + qmljsindenter.cpp qmljsindenter.h + qmljslocatordata.cpp qmljslocatordata.h + qmljsmodelmanager.cpp qmljsmodelmanager.h + qmljsqtstylecodeformatter.cpp qmljsqtstylecodeformatter.h + qmljsrefactoringchanges.cpp qmljsrefactoringchanges.h + qmljssemanticinfo.cpp qmljssemanticinfo.h + qmljstools.qrc + qmljstools_global.h + qmljstoolsconstants.h + qmljstoolsplugin.cpp qmljstoolsplugin.h + qmljstoolssettings.cpp qmljstoolssettings.h +) + +if (WITH_TESTS) + target_sources(QmlJSTools PRIVATE qmljstools_test.cpp) +endif() diff --git a/src/plugins/qmlpreview/CMakeLists.txt b/src/plugins/qmlpreview/CMakeLists.txt new file mode 100644 index 0000000000..04cb414e46 --- /dev/null +++ b/src/plugins/qmlpreview/CMakeLists.txt @@ -0,0 +1,18 @@ +add_qtc_plugin(QmlPreview + DEPENDS QmlDebug qmljs + PLUGIN_DEPENDS Core ProjectExplorer QmlJSTools QtSupport ResourceEditor + SOURCES + qmlpreviewclient.cpp qmlpreviewclient.h + qmlpreviewconnectionmanager.cpp qmlpreviewconnectionmanager.h + qmlpreviewfileontargetfinder.cpp qmlpreviewfileontargetfinder.h + qmlpreviewplugin.cpp qmlpreviewplugin.h + qmlpreviewruncontrol.cpp qmlpreviewruncontrol.h + qmlpreview_global.h +) + +if (WITH_TESTS) + target_sources(QmlPreview PRIVATE + tests/qmlpreviewclient_test.cpp tests/qmlpreviewclient_test.h + tests/qmlpreviewplugin_test.cpp tests/qmlpreviewplugin_test.h + ) +endif() diff --git a/src/plugins/qmlprofiler/CMakeLists.txt b/src/plugins/qmlprofiler/CMakeLists.txt new file mode 100644 index 0000000000..ab8ddb712c --- /dev/null +++ b/src/plugins/qmlprofiler/CMakeLists.txt @@ -0,0 +1,75 @@ +add_qtc_plugin(QmlProfiler + DEPENDS QmlDebug qmljs Tracing Qt5::QuickWidgets + PLUGIN_DEPENDS Core Debugger ProjectExplorer QtSupport TextEditor + SOURCES + debugmessagesmodel.cpp debugmessagesmodel.h + flamegraphmodel.cpp flamegraphmodel.h + flamegraphview.cpp flamegraphview.h + inputeventsmodel.cpp inputeventsmodel.h + memoryusagemodel.cpp memoryusagemodel.h + pixmapcachemodel.cpp pixmapcachemodel.h + qml/qmlprofiler.qrc + qmlevent.cpp qmlevent.h + qmleventlocation.cpp qmleventlocation.h + qmleventtype.cpp qmleventtype.h + qmlnote.cpp qmlnote.h + qmlprofiler_global.h + qmlprofileractions.cpp qmlprofileractions.h + qmlprofileranimationsmodel.cpp qmlprofileranimationsmodel.h + qmlprofilerattachdialog.cpp qmlprofilerattachdialog.h qmlprofilerattachdialog.ui + qmlprofilerbindingloopsrenderpass.cpp qmlprofilerbindingloopsrenderpass.h + qmlprofilerclientmanager.cpp qmlprofilerclientmanager.h + qmlprofilerconfigwidget.cpp qmlprofilerconfigwidget.h qmlprofilerconfigwidget.ui + qmlprofilerconstants.h + qmlprofilerdetailsrewriter.cpp qmlprofilerdetailsrewriter.h + qmlprofilereventsview.h + qmlprofilereventtypes.h + qmlprofilermodelmanager.cpp qmlprofilermodelmanager.h + qmlprofilernotesmodel.cpp qmlprofilernotesmodel.h + qmlprofileroptionspage.cpp qmlprofileroptionspage.h + qmlprofilerplugin.cpp qmlprofilerplugin.h + qmlprofilerrangemodel.cpp qmlprofilerrangemodel.h + qmlprofilerrunconfigurationaspect.cpp qmlprofilerrunconfigurationaspect.h + qmlprofilerruncontrol.cpp qmlprofilerruncontrol.h + qmlprofilersettings.cpp qmlprofilersettings.h + qmlprofilerstatemanager.cpp qmlprofilerstatemanager.h + qmlprofilerstatewidget.cpp qmlprofilerstatewidget.h + qmlprofilerstatisticsmodel.cpp qmlprofilerstatisticsmodel.h + qmlprofilerstatisticsview.cpp qmlprofilerstatisticsview.h + qmlprofilertextmark.cpp qmlprofilertextmark.h + qmlprofilertimelinemodel.cpp qmlprofilertimelinemodel.h + qmlprofilertool.cpp qmlprofilertool.h + qmlprofilertraceclient.cpp qmlprofilertraceclient.h + qmlprofilertracefile.cpp qmlprofilertracefile.h + qmlprofilertraceview.cpp qmlprofilertraceview.h + qmlprofilerviewmanager.cpp qmlprofilerviewmanager.h + qmltypedevent.cpp qmltypedevent.h + scenegraphtimelinemodel.cpp scenegraphtimelinemodel.h +) + +if (WITH_TESTS) + target_sources(QmlProfiler PRIVATE + tests/debugmessagesmodel_test.cpp tests/debugmessagesmodel_test.h + tests/fakedebugserver.cpp tests/fakedebugserver.h + tests/flamegraphmodel_test.cpp tests/flamegraphmodel_test.h + tests/flamegraphview_test.cpp tests/flamegraphview_test.h + tests/inputeventsmodel_test.cpp tests/inputeventsmodel_test.h + tests/localqmlprofilerrunner_test.cpp tests/localqmlprofilerrunner_test.h + tests/memoryusagemodel_test.cpp tests/memoryusagemodel_test.h + tests/pixmapcachemodel_test.cpp tests/pixmapcachemodel_test.h + tests/qmlevent_test.cpp tests/qmlevent_test.h + tests/qmleventlocation_test.cpp tests/qmleventlocation_test.h + tests/qmleventtype_test.cpp tests/qmleventtype_test.h + tests/qmlnote_test.cpp tests/qmlnote_test.h + tests/qmlprofileranimationsmodel_test.cpp tests/qmlprofileranimationsmodel_test.h + tests/qmlprofilerattachdialog_test.cpp tests/qmlprofilerattachdialog_test.h + tests/qmlprofilerbindingloopsrenderpass_test.cpp tests/qmlprofilerbindingloopsrenderpass_test.h + tests/qmlprofilerclientmanager_test.cpp tests/qmlprofilerclientmanager_test.h + tests/qmlprofilerconfigwidget_test.cpp tests/qmlprofilerconfigwidget_test.h + tests/qmlprofilerdetailsrewriter_test.cpp tests/qmlprofilerdetailsrewriter_test.h + tests/qmlprofilertool_test.cpp tests/qmlprofilertool_test.h + tests/qmlprofilertraceclient_test.cpp tests/qmlprofilertraceclient_test.h + tests/qmlprofilertraceview_test.cpp tests/qmlprofilertraceview_test.h + tests/tests.qrc + ) +endif() diff --git a/src/plugins/qmlprojectmanager/CMakeLists.txt b/src/plugins/qmlprojectmanager/CMakeLists.txt new file mode 100644 index 0000000000..ddef6f61f2 --- /dev/null +++ b/src/plugins/qmlprojectmanager/CMakeLists.txt @@ -0,0 +1,16 @@ +add_qtc_plugin(QmlProjectManager + DEPENDS qmljs + PLUGIN_DEPENDS Core ProjectExplorer QtSupport + SOURCES + fileformat/filefilteritems.cpp fileformat/filefilteritems.h + fileformat/qmlprojectfileformat.cpp fileformat/qmlprojectfileformat.h + fileformat/qmlprojectitem.cpp fileformat/qmlprojectitem.h + qmlproject.cpp qmlproject.h + qmlproject.qrc + qmlprojectconstants.h + qmlprojectmanager_global.h + qmlprojectmanagerconstants.h + qmlprojectnodes.cpp qmlprojectnodes.h + qmlprojectplugin.cpp qmlprojectplugin.h + qmlprojectrunconfiguration.cpp qmlprojectrunconfiguration.h +) diff --git a/src/plugins/qnx/CMakeLists.txt b/src/plugins/qnx/CMakeLists.txt new file mode 100644 index 0000000000..baf561ebce --- /dev/null +++ b/src/plugins/qnx/CMakeLists.txt @@ -0,0 +1,30 @@ +add_qtc_plugin(Qnx + DEPENDS QtcSsh QmlDebug Qt5::Xml + PLUGIN_DEPENDS Core Debugger ProjectExplorer QtSupport RemoteLinux + SOURCES + qnx.qrc + qnx_export.h + qnxanalyzesupport.cpp qnxanalyzesupport.h + qnxbaseqtconfigwidget.cpp qnxbaseqtconfigwidget.h + qnxconfiguration.cpp qnxconfiguration.h + qnxconfigurationmanager.cpp qnxconfigurationmanager.h + qnxconstants.h + qnxdebugsupport.cpp qnxdebugsupport.h + qnxdeployqtlibrariesdialog.cpp qnxdeployqtlibrariesdialog.h qnxdeployqtlibrariesdialog.ui + qnxdevice.cpp qnxdevice.h + qnxdevicefactory.cpp qnxdevicefactory.h + qnxdeviceprocess.cpp qnxdeviceprocess.h + qnxdeviceprocesslist.cpp qnxdeviceprocesslist.h + qnxdeviceprocesssignaloperation.cpp qnxdeviceprocesssignaloperation.h + qnxdevicetester.cpp qnxdevicetester.h + qnxdevicewizard.cpp qnxdevicewizard.h + qnxplugin.cpp qnxplugin.h + qnxqtversion.cpp qnxqtversion.h + qnxrunconfiguration.cpp qnxrunconfiguration.h + qnxsettingspage.cpp qnxsettingspage.h + qnxsettingswidget.cpp qnxsettingswidget.h qnxsettingswidget.ui + qnxtoolchain.cpp qnxtoolchain.h + qnxutils.cpp qnxutils.h + qnxversionnumber.cpp qnxversionnumber.h + slog2inforunner.cpp slog2inforunner.h +) diff --git a/src/plugins/qtsupport/CMakeLists.txt b/src/plugins/qtsupport/CMakeLists.txt new file mode 100644 index 0000000000..125e949b35 --- /dev/null +++ b/src/plugins/qtsupport/CMakeLists.txt @@ -0,0 +1,35 @@ +add_qtc_plugin(QtSupport + DEPENDS Qt5::Xml + PUBLIC_DEPENDS ProParser + PLUGIN_DEPENDS Core CppTools ProjectExplorer ResourceEditor + SOURCES + baseqtversion.cpp baseqtversion.h + codegenerator.cpp codegenerator.h + codegensettings.cpp codegensettings.h + codegensettingspage.cpp codegensettingspage.h + codegensettingspagewidget.ui + desktopqtversion.cpp desktopqtversion.h + exampleslistmodel.cpp exampleslistmodel.h + gettingstartedwelcomepage.cpp gettingstartedwelcomepage.h + profilereader.cpp profilereader.h + qmldumptool.cpp qmldumptool.h + qscxmlcgenerator.cpp qscxmlcgenerator.h + qtconfigwidget.cpp qtconfigwidget.h + qtcppkitinfo.cpp qtcppkitinfo.h + qtkitinformation.cpp qtkitinformation.h + qtoptionspage.cpp qtoptionspage.h + qtoutputformatter.cpp qtoutputformatter.h + qtparser.cpp qtparser.h + qtprojectimporter.cpp qtprojectimporter.h + qtsupport.qrc + qtsupport_global.h + qtsupportconstants.h + qtsupportplugin.cpp qtsupportplugin.h + qttestparser.cpp qttestparser.h + qtversionfactory.cpp qtversionfactory.h + qtversioninfo.ui + qtversionmanager.cpp qtversionmanager.h qtversionmanager.ui + screenshotcropper.cpp screenshotcropper.h + showbuildlog.ui + uicgenerator.cpp uicgenerator.h +) diff --git a/src/plugins/remotelinux/CMakeLists.txt b/src/plugins/remotelinux/CMakeLists.txt new file mode 100644 index 0000000000..63c97b1686 --- /dev/null +++ b/src/plugins/remotelinux/CMakeLists.txt @@ -0,0 +1,49 @@ +add_qtc_plugin(RemoteLinux + DEPENDS QmlDebug QtcSsh + PLUGIN_DEPENDS Core Debugger ProjectExplorer QtSupport + SOURCES + abstractpackagingstep.cpp abstractpackagingstep.h + abstractremotelinuxdeployservice.cpp abstractremotelinuxdeployservice.h + abstractremotelinuxdeploystep.cpp abstractremotelinuxdeploystep.h + abstractuploadandinstallpackageservice.cpp abstractuploadandinstallpackageservice.h + deploymenttimeinfo.cpp deploymenttimeinfo.h + embeddedlinuxqtversion.cpp embeddedlinuxqtversion.h + genericdirectuploadservice.cpp genericdirectuploadservice.h + genericdirectuploadstep.cpp genericdirectuploadstep.h + genericlinuxdeviceconfigurationwidget.cpp genericlinuxdeviceconfigurationwidget.h genericlinuxdeviceconfigurationwidget.ui + genericlinuxdeviceconfigurationwizard.cpp genericlinuxdeviceconfigurationwizard.h + genericlinuxdeviceconfigurationwizardpages.cpp genericlinuxdeviceconfigurationwizardpages.h + genericlinuxdeviceconfigurationwizardsetuppage.ui + linuxdevice.cpp linuxdevice.h + linuxdeviceprocess.cpp linuxdeviceprocess.h + linuxdevicetester.cpp linuxdevicetester.h + makeinstallstep.cpp makeinstallstep.h + packageuploader.cpp packageuploader.h + publickeydeploymentdialog.cpp publickeydeploymentdialog.h + remotelinux.qrc + remotelinux_constants.h + remotelinux_export.h + remotelinuxcheckforfreediskspaceservice.cpp remotelinuxcheckforfreediskspaceservice.h + remotelinuxcheckforfreediskspacestep.cpp remotelinuxcheckforfreediskspacestep.h + remotelinuxcustomcommanddeploymentstep.cpp remotelinuxcustomcommanddeploymentstep.h + remotelinuxcustomcommanddeployservice.cpp remotelinuxcustomcommanddeployservice.h + remotelinuxcustomrunconfiguration.cpp remotelinuxcustomrunconfiguration.h + remotelinuxdebugsupport.cpp remotelinuxdebugsupport.h + remotelinuxdeployconfiguration.cpp remotelinuxdeployconfiguration.h + remotelinuxenvironmentaspect.cpp remotelinuxenvironmentaspect.h + remotelinuxenvironmentaspectwidget.cpp remotelinuxenvironmentaspectwidget.h + remotelinuxenvironmentreader.cpp remotelinuxenvironmentreader.h + remotelinuxkillappservice.cpp remotelinuxkillappservice.h + remotelinuxkillappstep.cpp remotelinuxkillappstep.h + remotelinuxpackageinstaller.cpp remotelinuxpackageinstaller.h + remotelinuxplugin.cpp remotelinuxplugin.h + remotelinuxqmltoolingsupport.cpp remotelinuxqmltoolingsupport.h + remotelinuxrunconfiguration.cpp remotelinuxrunconfiguration.h + remotelinuxsignaloperation.cpp remotelinuxsignaloperation.h + remotelinuxx11forwardingaspect.cpp remotelinuxx11forwardingaspect.h + rsyncdeploystep.cpp rsyncdeploystep.h + sshkeydeployer.cpp sshkeydeployer.h + tarpackagecreationstep.cpp tarpackagecreationstep.h + typespecificdeviceconfigurationlistmodel.cpp typespecificdeviceconfigurationlistmodel.h + uploadandinstalltarpackagestep.cpp uploadandinstalltarpackagestep.h +) diff --git a/src/plugins/resourceeditor/CMakeLists.txt b/src/plugins/resourceeditor/CMakeLists.txt new file mode 100644 index 0000000000..e6d4003bf3 --- /dev/null +++ b/src/plugins/resourceeditor/CMakeLists.txt @@ -0,0 +1,16 @@ +add_qtc_plugin(ResourceEditor + DEPENDS Qt5::Xml + DEFINES RESOURCE_LIBRARY + PLUGIN_DEPENDS Core ProjectExplorer + SOURCES + qrceditor/qrceditor.cpp qrceditor/qrceditor.h qrceditor/qrceditor.ui + qrceditor/resourcefile.cpp qrceditor/resourcefile_p.h + qrceditor/resourceview.cpp qrceditor/resourceview.h + qrceditor/undocommands.cpp qrceditor/undocommands_p.h + resource_global.h + resourceeditorconstants.h + resourceeditorfactory.cpp resourceeditorfactory.h + resourceeditorplugin.cpp resourceeditorplugin.h + resourceeditorw.cpp resourceeditorw.h + resourcenode.cpp resourcenode.h +) diff --git a/src/plugins/scxmleditor/CMakeLists.txt b/src/plugins/scxmleditor/CMakeLists.txt new file mode 100644 index 0000000000..9a4925dfa2 --- /dev/null +++ b/src/plugins/scxmleditor/CMakeLists.txt @@ -0,0 +1,94 @@ +add_qtc_plugin(ScxmlEditor + INCLUDES common plugin_interface outputpane + PLUGIN_DEPENDS Core ProjectExplorer QtSupport TextEditor + SOURCES + common/colorpicker.cpp common/colorpicker.h common/colorpicker.ui + common/colorsettings.cpp common/colorsettings.h common/colorsettings.ui + common/colorthemedialog.cpp common/colorthemedialog.h common/colorthemedialog.ui + common/colorthemes.cpp common/colorthemes.h + common/colorthemeview.cpp common/colorthemeview.h + common/colortoolbutton.cpp common/colortoolbutton.h + common/common.qrc + common/dragshapebutton.cpp common/dragshapebutton.h + common/graphicsview.cpp common/graphicsview.h + common/magnifier.cpp common/magnifier.h common/magnifier.ui + common/mainwidget.cpp common/mainwidget.h + common/movableframe.cpp common/movableframe.h + common/navigator.cpp common/navigator.h + common/navigatorgraphicsview.cpp common/navigatorgraphicsview.h + common/navigatorslider.cpp common/navigatorslider.h common/navigatorslider.ui + common/search.cpp common/search.h common/search.ui + common/searchmodel.cpp common/searchmodel.h + common/shapegroupwidget.cpp common/shapegroupwidget.h + common/shapestoolbox.cpp common/shapestoolbox.h common/shapestoolbox.ui + common/sizegrip.cpp common/sizegrip.h + common/stateproperties.cpp common/stateproperties.h + common/stateview.cpp common/stateview.h common/stateview.ui + common/statistics.cpp common/statistics.h common/statistics.ui + common/statisticsdialog.cpp common/statisticsdialog.h common/statisticsdialog.ui + common/structure.cpp common/structure.h + common/structuremodel.cpp common/structuremodel.h + common/treeview.cpp common/treeview.h + outputpane/errorwidget.cpp outputpane/errorwidget.h + outputpane/outputpane.h + outputpane/outputtabwidget.cpp outputpane/outputtabwidget.h + outputpane/tableview.cpp outputpane/tableview.h + outputpane/warning.cpp outputpane/warning.h + outputpane/warningmodel.cpp outputpane/warningmodel.h + plugin_interface/actionhandler.cpp plugin_interface/actionhandler.h + plugin_interface/actionprovider.h + plugin_interface/attributeitemdelegate.cpp plugin_interface/attributeitemdelegate.h + plugin_interface/attributeitemmodel.cpp plugin_interface/attributeitemmodel.h + plugin_interface/baseitem.cpp plugin_interface/baseitem.h + plugin_interface/connectableitem.cpp plugin_interface/connectableitem.h + plugin_interface/cornergrabberitem.cpp plugin_interface/cornergrabberitem.h + plugin_interface/finalstateitem.cpp plugin_interface/finalstateitem.h + plugin_interface/genericscxmlplugin.cpp plugin_interface/genericscxmlplugin.h + plugin_interface/graphicsitemprovider.h + plugin_interface/graphicsscene.cpp plugin_interface/graphicsscene.h + plugin_interface/highlightitem.cpp plugin_interface/highlightitem.h + plugin_interface/historyitem.cpp plugin_interface/historyitem.h + plugin_interface/idwarningitem.cpp plugin_interface/idwarningitem.h + plugin_interface/imageprovider.cpp plugin_interface/imageprovider.h + plugin_interface/initialstateitem.cpp plugin_interface/initialstateitem.h + plugin_interface/initialwarningitem.cpp plugin_interface/initialwarningitem.h + plugin_interface/isceditor.h + plugin_interface/layoutitem.cpp plugin_interface/layoutitem.h + plugin_interface/mytypes.h + plugin_interface/parallelitem.cpp plugin_interface/parallelitem.h + plugin_interface/quicktransitionitem.cpp plugin_interface/quicktransitionitem.h + plugin_interface/scattributeitemdelegate.cpp plugin_interface/scattributeitemdelegate.h + plugin_interface/scattributeitemmodel.cpp plugin_interface/scattributeitemmodel.h + plugin_interface/sceneutils.cpp plugin_interface/sceneutils.h + plugin_interface/scgraphicsitemprovider.cpp plugin_interface/scgraphicsitemprovider.h + plugin_interface/scshapeprovider.cpp plugin_interface/scshapeprovider.h + plugin_interface/scutilsprovider.cpp plugin_interface/scutilsprovider.h + plugin_interface/scxmldocument.cpp plugin_interface/scxmldocument.h + plugin_interface/scxmlnamespace.cpp plugin_interface/scxmlnamespace.h + plugin_interface/scxmltag.cpp plugin_interface/scxmltag.h + plugin_interface/scxmltagutils.cpp plugin_interface/scxmltagutils.h + plugin_interface/scxmltypes.h + plugin_interface/scxmluifactory.cpp plugin_interface/scxmluifactory.h + plugin_interface/serializer.cpp plugin_interface/serializer.h + plugin_interface/shapeprovider.cpp plugin_interface/shapeprovider.h + plugin_interface/snapline.cpp plugin_interface/snapline.h + plugin_interface/stateitem.cpp plugin_interface/stateitem.h + plugin_interface/statewarningitem.cpp plugin_interface/statewarningitem.h + plugin_interface/tagtextitem.cpp plugin_interface/tagtextitem.h + plugin_interface/textitem.cpp plugin_interface/textitem.h + plugin_interface/transitionitem.cpp plugin_interface/transitionitem.h + plugin_interface/transitionwarningitem.cpp plugin_interface/transitionwarningitem.h + plugin_interface/undocommands.cpp plugin_interface/undocommands.h + plugin_interface/utilsprovider.cpp plugin_interface/utilsprovider.h + plugin_interface/warningitem.cpp plugin_interface/warningitem.h + plugin_interface/warningprovider.h + scxmlcontext.cpp scxmlcontext.h + scxmleditor_global.h + scxmleditorconstants.h + scxmleditordata.cpp scxmleditordata.h + scxmleditordocument.cpp scxmleditordocument.h + scxmleditorfactory.cpp scxmleditorfactory.h + scxmleditorplugin.cpp scxmleditorplugin.h + scxmleditorstack.cpp scxmleditorstack.h + scxmltexteditor.cpp scxmltexteditor.h +) diff --git a/src/plugins/serialterminal/CMakeLists.txt b/src/plugins/serialterminal/CMakeLists.txt new file mode 100644 index 0000000000..79bbddb219 --- /dev/null +++ b/src/plugins/serialterminal/CMakeLists.txt @@ -0,0 +1,13 @@ +add_qtc_plugin(SerialTerminal + CONDITION TARGET Qt5::SerialPort + DEPENDS Qt5::SerialPort + PLUGIN_DEPENDS Core TextEditor + SOURCES + consolelineedit.cpp consolelineedit.h + serialcontrol.cpp serialcontrol.h + serialdevicemodel.cpp serialdevicemodel.h + serialoutputpane.cpp serialoutputpane.h + serialterminalconstants.h + serialterminalplugin.cpp serialterminalplugin.h + serialterminalsettings.cpp serialterminalsettings.h +) diff --git a/src/plugins/silversearcher/CMakeLists.txt b/src/plugins/silversearcher/CMakeLists.txt new file mode 100644 index 0000000000..0f027a76a6 --- /dev/null +++ b/src/plugins/silversearcher/CMakeLists.txt @@ -0,0 +1,13 @@ +add_qtc_plugin(SilverSearcher + PLUGIN_DEPENDS Core TextEditor + SOURCES + findinfilessilversearcher.cpp findinfilessilversearcher.h + silversearcheroutputparser.cpp silversearcheroutputparser.h + silversearcherplugin.cpp silversearcherplugin.h +) + +if (WITH_TESTS) + target_sources(SilverSearcher PRIVATE + outputparser_test.cpp outputparser_test.h + ) +endif() diff --git a/src/plugins/studiowelcome/CMakeLists.txt b/src/plugins/studiowelcome/CMakeLists.txt new file mode 100644 index 0000000000..30e5cc62af --- /dev/null +++ b/src/plugins/studiowelcome/CMakeLists.txt @@ -0,0 +1,10 @@ +add_qtc_plugin(StudioWelcome + DEPENDS Qt5::QuickWidgets + PLUGIN_DEPENDS Core ProjectExplorer QtSupport + DEFINES STUDIO_QML_PATH="${CMAKE_CURRENT_SOURCE_DIR}/qml" + SOURCES + studiowelcomeplugin.cpp studiowelcomeplugin.h + studiowelcome_global.h + studiowelcome.qrc + "${PROJECT_SOURCE_DIR}/src/share/3rdparty/studiofonts/studiofonts.qrc" +) diff --git a/src/plugins/subversion/CMakeLists.txt b/src/plugins/subversion/CMakeLists.txt new file mode 100644 index 0000000000..4dc5885f15 --- /dev/null +++ b/src/plugins/subversion/CMakeLists.txt @@ -0,0 +1,13 @@ +add_qtc_plugin(Subversion + PLUGIN_DEPENDS Core DiffEditor TextEditor VcsBase + SOURCES + annotationhighlighter.cpp annotationhighlighter.h + settingspage.cpp settingspage.h settingspage.ui + subversionclient.cpp subversionclient.h + subversionconstants.h + subversioncontrol.cpp subversioncontrol.h + subversioneditor.cpp subversioneditor.h + subversionplugin.cpp subversionplugin.h + subversionsettings.cpp subversionsettings.h + subversionsubmiteditor.cpp subversionsubmiteditor.h +) diff --git a/src/plugins/tasklist/CMakeLists.txt b/src/plugins/tasklist/CMakeLists.txt new file mode 100644 index 0000000000..b82d633ec4 --- /dev/null +++ b/src/plugins/tasklist/CMakeLists.txt @@ -0,0 +1,8 @@ +add_qtc_plugin(TaskList + PLUGIN_DEPENDS Core ProjectExplorer + SOURCES + stopmonitoringhandler.cpp stopmonitoringhandler.h + taskfile.cpp taskfile.h + tasklistconstants.h + tasklistplugin.cpp tasklistplugin.h +) diff --git a/src/plugins/texteditor/CMakeLists.txt b/src/plugins/texteditor/CMakeLists.txt new file mode 100644 index 0000000000..83f7283ede --- /dev/null +++ b/src/plugins/texteditor/CMakeLists.txt @@ -0,0 +1,107 @@ +add_qtc_plugin(TextEditor + DEPENDS Qt5::Concurrent Qt5::Network Qt5::PrintSupport Qt5::Xml + PUBLIC_DEPENDS KSyntaxHighlighting + PLUGIN_DEPENDS Core + SOURCES + autocompleter.cpp autocompleter.h + basefilefind.cpp basefilefind.h + basehoverhandler.cpp basehoverhandler.h + behaviorsettings.cpp behaviorsettings.h + behaviorsettingspage.cpp behaviorsettingspage.h behaviorsettingspage.ui + behaviorsettingswidget.cpp behaviorsettingswidget.h behaviorsettingswidget.ui + blockrange.h + circularclipboard.cpp circularclipboard.h + circularclipboardassist.cpp circularclipboardassist.h + codeassist/assistenums.h + codeassist/assistinterface.cpp codeassist/assistinterface.h + codeassist/assistproposalitem.cpp codeassist/assistproposalitem.h + codeassist/assistproposaliteminterface.h + codeassist/codeassistant.cpp codeassist/codeassistant.h + codeassist/completionassistprovider.cpp codeassist/completionassistprovider.h + codeassist/documentcontentcompletion.cpp codeassist/documentcontentcompletion.h + codeassist/functionhintproposal.cpp codeassist/functionhintproposal.h + codeassist/functionhintproposalwidget.cpp codeassist/functionhintproposalwidget.h + codeassist/genericproposal.cpp codeassist/genericproposal.h + codeassist/genericproposalmodel.cpp codeassist/genericproposalmodel.h + codeassist/genericproposalwidget.cpp codeassist/genericproposalwidget.h + codeassist/iassistprocessor.cpp codeassist/iassistprocessor.h + codeassist/iassistproposal.cpp codeassist/iassistproposal.h + codeassist/iassistproposalmodel.cpp codeassist/iassistproposalmodel.h + codeassist/iassistproposalwidget.cpp codeassist/iassistproposalwidget.h + codeassist/iassistprovider.cpp codeassist/iassistprovider.h + codeassist/ifunctionhintproposalmodel.cpp codeassist/ifunctionhintproposalmodel.h + codeassist/keywordscompletionassist.cpp codeassist/keywordscompletionassist.h + codeassist/runner.cpp codeassist/runner.h + codeassist/textdocumentmanipulator.cpp codeassist/textdocumentmanipulator.h + codeassist/textdocumentmanipulatorinterface.h + codecselector.cpp codecselector.h + codestyleeditor.cpp codestyleeditor.h + codestylepool.cpp codestylepool.h + codestyleselectorwidget.cpp codestyleselectorwidget.h codestyleselectorwidget.ui + colorpreviewhoverhandler.cpp colorpreviewhoverhandler.h + colorscheme.cpp colorscheme.h + colorschemeedit.cpp colorschemeedit.h colorschemeedit.ui + command.cpp command.h + commentssettings.cpp commentssettings.h + completionsettings.cpp completionsettings.h + completionsettingspage.cpp completionsettingspage.h completionsettingspage.ui + displaysettings.cpp displaysettings.h + displaysettingspage.cpp displaysettingspage.h displaysettingspage.ui + extraencodingsettings.cpp extraencodingsettings.h + findincurrentfile.cpp findincurrentfile.h + findinfiles.cpp findinfiles.h + findinopenfiles.cpp findinopenfiles.h + fontsettings.cpp fontsettings.h + fontsettingspage.cpp fontsettingspage.h fontsettingspage.ui + formattexteditor.cpp formattexteditor.h + highlighter.cpp highlighter.h + highlightersettings.cpp highlightersettings.h + highlightersettingspage.cpp highlightersettingspage.h highlightersettingspage.ui + icodestylepreferences.cpp icodestylepreferences.h + icodestylepreferencesfactory.cpp icodestylepreferencesfactory.h + indenter.h + ioutlinewidget.h + linenumberfilter.cpp linenumberfilter.h + marginsettings.cpp marginsettings.h + normalindenter.cpp normalindenter.h + outlinefactory.cpp outlinefactory.h + plaintexteditorfactory.cpp plaintexteditorfactory.h + quickfix.cpp quickfix.h + refactoringchanges.cpp refactoringchanges.h + refactoroverlay.cpp refactoroverlay.h + semantichighlighter.cpp semantichighlighter.h + simplecodestylepreferences.cpp simplecodestylepreferences.h + simplecodestylepreferenceswidget.cpp simplecodestylepreferenceswidget.h + snippets/reuse.h + snippets/snippet.cpp snippets/snippet.h + snippets/snippetassistcollector.cpp snippets/snippetassistcollector.h + snippets/snippeteditor.cpp snippets/snippeteditor.h + snippets/snippetprovider.cpp snippets/snippetprovider.h + snippets/snippetscollection.cpp snippets/snippetscollection.h + snippets/snippetssettings.cpp snippets/snippetssettings.h + snippets/snippetssettingspage.cpp snippets/snippetssettingspage.h snippets/snippetssettingspage.ui + storagesettings.cpp storagesettings.h + syntaxhighlighter.cpp syntaxhighlighter.h + tabsettings.cpp tabsettings.h + tabsettingswidget.cpp tabsettingswidget.h tabsettingswidget.ui + textdocument.cpp textdocument.h + textdocumentlayout.cpp textdocumentlayout.h + texteditor.cpp texteditor.h + texteditor.qrc + texteditor_global.h + texteditor_p.h + texteditoractionhandler.cpp texteditoractionhandler.h + texteditorconstants.cpp texteditorconstants.h + texteditoroptionspage.cpp texteditoroptionspage.h + texteditoroverlay.cpp texteditoroverlay.h + texteditorplugin.cpp texteditorplugin.h + texteditorsettings.cpp texteditorsettings.h + textindenter.cpp textindenter.h + textmark.cpp textmark.h + textstyles.h + typingsettings.cpp typingsettings.h +) + +if (WITH_TESTS) + target_sources(TextEditor PRIVATE texteditor_test.cpp) +endif() diff --git a/src/plugins/todo/CMakeLists.txt b/src/plugins/todo/CMakeLists.txt new file mode 100644 index 0000000000..6283407272 --- /dev/null +++ b/src/plugins/todo/CMakeLists.txt @@ -0,0 +1,25 @@ +add_qtc_plugin(Todo + DEPENDS qmljs + PLUGIN_DEPENDS Core CppTools ProjectExplorer + SOURCES + constants.h + cpptodoitemsscanner.cpp cpptodoitemsscanner.h + keyword.cpp keyword.h + keyworddialog.cpp keyworddialog.h keyworddialog.ui + lineparser.cpp lineparser.h + optionsdialog.cpp optionsdialog.h optionsdialog.ui + optionspage.cpp optionspage.h + qmljstodoitemsscanner.cpp qmljstodoitemsscanner.h + settings.cpp settings.h + todoicons.cpp todoicons.h + todoitem.h + todoitemsmodel.cpp todoitemsmodel.h + todoitemsprovider.cpp todoitemsprovider.h + todoitemsscanner.cpp todoitemsscanner.h + todooutputpane.cpp todooutputpane.h + todooutputtreeview.cpp todooutputtreeview.h + todooutputtreeviewdelegate.cpp todooutputtreeviewdelegate.h + todoplugin.cpp todoplugin.h + todoplugin.qrc + todoprojectsettingswidget.cpp todoprojectsettingswidget.h todoprojectsettingswidget.ui +) diff --git a/src/plugins/updateinfo/CMakeLists.txt b/src/plugins/updateinfo/CMakeLists.txt new file mode 100644 index 0000000000..fe43e0be09 --- /dev/null +++ b/src/plugins/updateinfo/CMakeLists.txt @@ -0,0 +1,8 @@ +add_qtc_plugin(UpdateInfo + DEPENDS Qt5::Xml + PLUGIN_DEPENDS Core + PLUGIN_JSON_IN UPDATEINFO_EXPERIMENTAL_STR=true + SOURCES + settingspage.cpp settingspage.h settingspage.ui + updateinfoplugin.cpp updateinfoplugin.h +) diff --git a/src/plugins/valgrind/CMakeLists.txt b/src/plugins/valgrind/CMakeLists.txt new file mode 100644 index 0000000000..96534f256a --- /dev/null +++ b/src/plugins/valgrind/CMakeLists.txt @@ -0,0 +1,63 @@ +add_qtc_plugin(Valgrind + DEPENDS CPlusPlus QtcSsh + PLUGIN_DEPENDS Core Debugger ProjectExplorer TextEditor + SOURCES + callgrind/callgrindabstractmodel.h + callgrind/callgrindcallmodel.cpp callgrind/callgrindcallmodel.h + callgrind/callgrindcontroller.cpp callgrind/callgrindcontroller.h + callgrind/callgrindcostitem.cpp callgrind/callgrindcostitem.h + callgrind/callgrindcycledetection.cpp callgrind/callgrindcycledetection.h + callgrind/callgrinddatamodel.cpp callgrind/callgrinddatamodel.h + callgrind/callgrindfunction.cpp callgrind/callgrindfunction.h callgrind/callgrindfunction_p.h + callgrind/callgrindfunctioncall.cpp callgrind/callgrindfunctioncall.h + callgrind/callgrindfunctioncycle.cpp callgrind/callgrindfunctioncycle.h + callgrind/callgrindparsedata.cpp callgrind/callgrindparsedata.h + callgrind/callgrindparser.cpp callgrind/callgrindparser.h + callgrind/callgrindproxymodel.cpp callgrind/callgrindproxymodel.h + callgrind/callgrindstackbrowser.cpp callgrind/callgrindstackbrowser.h + callgrindcostdelegate.cpp callgrindcostdelegate.h + callgrindcostview.cpp callgrindcostview.h + callgrindengine.cpp callgrindengine.h + callgrindhelper.cpp callgrindhelper.h + callgrindnamedelegate.cpp callgrindnamedelegate.h + callgrindtextmark.cpp callgrindtextmark.h + callgrindtool.cpp callgrindtool.h + callgrindvisualisation.cpp callgrindvisualisation.h + memcheckerrorview.cpp memcheckerrorview.h + memchecktool.cpp memchecktool.h + suppressiondialog.cpp suppressiondialog.h + valgrind.qrc + valgrindconfigwidget.cpp valgrindconfigwidget.h valgrindconfigwidget.ui + valgrindengine.cpp valgrindengine.h + valgrindplugin.cpp valgrindplugin.h + valgrindrunner.cpp valgrindrunner.h + valgrindsettings.cpp valgrindsettings.h + xmlprotocol/announcethread.cpp xmlprotocol/announcethread.h + xmlprotocol/error.cpp xmlprotocol/error.h + xmlprotocol/errorlistmodel.cpp xmlprotocol/errorlistmodel.h + xmlprotocol/frame.cpp xmlprotocol/frame.h + xmlprotocol/modelhelpers.cpp xmlprotocol/modelhelpers.h + xmlprotocol/parser.cpp xmlprotocol/parser.h + xmlprotocol/stack.cpp xmlprotocol/stack.h + xmlprotocol/stackmodel.cpp xmlprotocol/stackmodel.h + xmlprotocol/status.cpp xmlprotocol/status.h + xmlprotocol/suppression.cpp xmlprotocol/suppression.h + xmlprotocol/threadedparser.cpp xmlprotocol/threadedparser.h +) + +if (WIN32) + target_compile_definitions(Valgrind PRIVATE UNICODE _UNICODE) +endif() + +if (WITH_TESTS) + target_sources(Valgrind PRIVATE + valgrindmemcheckparsertest.cpp valgrindmemcheckparsertest.h + valgrindtestrunnertest.cpp valgrindtestrunnertest.h + ) + target_compile_definitions(Valgrind PRIVATE + PARSERTESTS_DATA_DIR="${CMAKE_CURRENT_SOURCE_DIR}/unit_testdata" + VALGRIND_FAKE_PATH="${PROJECT_SOURCE_DIR}/src/tools/valgrindfake" + TESTRUNNER_SRC_DIR="${PROJECT_SOURCE_DIR}/tests/auto/valgrind/memcheck/testapps" + TESTRUNNER_APP_DIR="${PROJECT_BINARY_DIR}/tests/auto/valgrind/memcheck/testapps" + ) +endif() diff --git a/src/plugins/vcsbase/CMakeLists.txt b/src/plugins/vcsbase/CMakeLists.txt new file mode 100644 index 0000000000..aa1b511d26 --- /dev/null +++ b/src/plugins/vcsbase/CMakeLists.txt @@ -0,0 +1,38 @@ +add_qtc_plugin(VcsBase + PLUGIN_DEPENDS Core CppTools DiffEditor ProjectExplorer TextEditor + PLUGIN_RECOMMENDS CodePaster + SOURCES + baseannotationhighlighter.cpp baseannotationhighlighter.h + basevcseditorfactory.cpp basevcseditorfactory.h + basevcssubmiteditorfactory.cpp basevcssubmiteditorfactory.h + cleandialog.cpp cleandialog.h cleandialog.ui + commonsettingspage.cpp commonsettingspage.h commonsettingspage.ui + commonvcssettings.cpp commonvcssettings.h + diffandloghighlighter.cpp diffandloghighlighter.h + nicknamedialog.cpp nicknamedialog.h nicknamedialog.ui + submiteditorfile.cpp submiteditorfile.h + submiteditorwidget.cpp submiteditorwidget.h submiteditorwidget.ui + submitfieldwidget.cpp submitfieldwidget.h + submitfilemodel.cpp submitfilemodel.h + vcsbase.qrc + vcsbase_global.h + vcsbaseclient.cpp vcsbaseclient.h + vcsbaseclientsettings.cpp vcsbaseclientsettings.h + vcsbaseconstants.h + vcsbasediffeditorcontroller.cpp vcsbasediffeditorcontroller.h + vcsbaseeditor.cpp vcsbaseeditor.h + vcsbaseeditorconfig.cpp vcsbaseeditorconfig.h + vcsbaseoptionspage.cpp vcsbaseoptionspage.h + vcsbaseplugin.cpp vcsbaseplugin.h + vcsbasesubmiteditor.cpp vcsbasesubmiteditor.h + vcscommand.cpp vcscommand.h + vcsoutputwindow.cpp vcsoutputwindow.h + vcsplugin.cpp vcsplugin.h + wizard/vcscommandpage.cpp wizard/vcscommandpage.h + wizard/vcsconfigurationpage.cpp wizard/vcsconfigurationpage.h + wizard/vcsjsextension.cpp wizard/vcsjsextension.h +) + +if (WITH_TESTS) + target_compile_definitions(VcsBase PRIVATE SRC_DIR="${IDE_SOURCE_TREE}") +endif() diff --git a/src/plugins/welcome/CMakeLists.txt b/src/plugins/welcome/CMakeLists.txt new file mode 100644 index 0000000000..4b07301581 --- /dev/null +++ b/src/plugins/welcome/CMakeLists.txt @@ -0,0 +1,8 @@ +add_qtc_plugin(Welcome + DEPENDS + PLUGIN_DEPENDS Core + SOURCES + introductionwidget.cpp introductionwidget.h + welcome.qrc + welcomeplugin.cpp +) diff --git a/src/plugins/winrt/CMakeLists.txt b/src/plugins/winrt/CMakeLists.txt new file mode 100644 index 0000000000..693b544612 --- /dev/null +++ b/src/plugins/winrt/CMakeLists.txt @@ -0,0 +1,16 @@ +add_qtc_plugin(WinRt + PLUGIN_DEPENDS Core Debugger ProjectExplorer QtSupport + SOURCES + winrt.qrc + winrtconstants.h + winrtdebugsupport.cpp winrtdebugsupport.h + winrtdeployconfiguration.cpp winrtdeployconfiguration.h + winrtdevice.cpp winrtdevice.h + winrtpackagedeploymentstep.cpp winrtpackagedeploymentstep.h + winrtphoneqtversion.cpp winrtphoneqtversion.h + winrtplugin.cpp winrtplugin.h + winrtqtversion.cpp winrtqtversion.h + winrtrunconfiguration.cpp winrtrunconfiguration.h + winrtruncontrol.cpp winrtruncontrol.h + winrtrunnerhelper.cpp winrtrunnerhelper.h +) diff --git a/src/share/3rdparty/CMakeLists.txt b/src/share/3rdparty/CMakeLists.txt new file mode 100644 index 0000000000..3979168124 --- /dev/null +++ b/src/share/3rdparty/CMakeLists.txt @@ -0,0 +1,4 @@ +install( + DIRECTORY fonts + DESTINATION "${IDE_DATA_PATH}" +) diff --git a/src/share/CMakeLists.txt b/src/share/CMakeLists.txt new file mode 100644 index 0000000000..57850ff783 --- /dev/null +++ b/src/share/CMakeLists.txt @@ -0,0 +1,2 @@ +add_subdirectory(3rdparty) +add_subdirectory(qtcreator) diff --git a/src/share/qtcreator/CMakeLists.txt b/src/share/qtcreator/CMakeLists.txt new file mode 100644 index 0000000000..054cb7404e --- /dev/null +++ b/src/share/qtcreator/CMakeLists.txt @@ -0,0 +1 @@ +add_subdirectory(externaltools) diff --git a/src/share/qtcreator/externaltools/CMakeLists.txt b/src/share/qtcreator/externaltools/CMakeLists.txt new file mode 100644 index 0000000000..bf9f216787 --- /dev/null +++ b/src/share/qtcreator/externaltools/CMakeLists.txt @@ -0,0 +1,13 @@ +set(EXT_TOOLS_DIR "${IDE_DATA_PATH}/externaltools") + +install(FILES lrelease.xml lupdate.xml qmlscene.xml qmlviewer.xml + DESTINATION "${EXT_TOOLS_DIR}" +) + +if (WIN32) + install(FILES notepad_win.xml DESTINATION "${EXT_TOOLS_DIR}") +elseif (APPLE) + install(FILES vi_mac.xml DESTINATION "${EXT_TOOLS_DIR}") +else() + install(FILES vi.xml DESTINATION "${EXT_TOOLS_DIR}") +endif() diff --git a/src/shared/CMakeLists.txt b/src/shared/CMakeLists.txt new file mode 100644 index 0000000000..eeaad66af2 --- /dev/null +++ b/src/shared/CMakeLists.txt @@ -0,0 +1,6 @@ +add_subdirectory(designerintegrationv2) +add_subdirectory(proparser) +add_subdirectory(qtsingleapplication) +add_subdirectory(qtlockedfile) +add_subdirectory(help) +add_subdirectory(registryaccess) diff --git a/src/shared/designerintegrationv2/CMakeLists.txt b/src/shared/designerintegrationv2/CMakeLists.txt new file mode 100644 index 0000000000..a3bdb4c50a --- /dev/null +++ b/src/shared/designerintegrationv2/CMakeLists.txt @@ -0,0 +1,8 @@ +add_library(designerintegrationv2 STATIC + formresizer.cpp formresizer.h + sizehandlerect.cpp sizehandlerect.h + widgethostconstants.h + widgethost.cpp widgethost.h +) +target_link_libraries(designerintegrationv2 PUBLIC Qt5::Designer) +target_include_directories(designerintegrationv2 PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}") diff --git a/src/shared/help/CMakeLists.txt b/src/shared/help/CMakeLists.txt new file mode 100644 index 0000000000..1058d6d3ad --- /dev/null +++ b/src/shared/help/CMakeLists.txt @@ -0,0 +1,24 @@ +if (NOT TARGET Qt5::Help) + # Do not built without Qt5::Help being available + return() +endif() + +set(PLUGIN_SOURCE_DIR "${CMAKE_SOURCE_DIR}/src/plugins") + +add_qtc_library(shared_help STATIC + DEPENDS Utils PUBLIC Qt5::Help Qt5::PrintSupport Qt5::Widgets + PUBLIC_INCLUDES + "${PLUGIN_SOURCE_DIR}/help" + "${PLUGIN_SOURCE_DIR}" + "${CMAKE_CURRENT_BINARY_DIR}/shared_help_autogen/include" + "${CMAKE_CURRENT_BINARY_DIR}/" + "${CMAKE_CURRENT_SOURCE_DIR}" + SOURCES + bookmarkdialog.ui + bookmarkmanager.cpp bookmarkmanager.h + contentwindow.cpp contentwindow.h + filternamedialog.cpp filternamedialog.h filternamedialog.ui + helpicons.h + indexwindow.cpp indexwindow.h + topicchooser.cpp topicchooser.h topicchooser.ui +) diff --git a/src/shared/proparser/CMakeLists.txt b/src/shared/proparser/CMakeLists.txt new file mode 100644 index 0000000000..31881b84c5 --- /dev/null +++ b/src/shared/proparser/CMakeLists.txt @@ -0,0 +1,30 @@ +add_qtc_library(ProParser SHARED + DEPENDS Qt5::Core Utils + PUBLIC_DEFINES + QMAKE_BUILTIN_PRFS QMAKE_OVERRIDE_PRFS + PROPARSER_THREAD_SAFE PROEVALUATOR_CUMULATIVE PROEVALUATOR_DUAL_VFS + PROEVALUATOR_SETENV PROEVALUATOR_THREAD_SAFE + SOURCES + ioutils.cpp ioutils.h + profileevaluator.cpp profileevaluator.h + proitems.cpp proitems.h + proparser.qrc + prowriter.cpp prowriter.h + qmake_global.h + qmakebuiltins.cpp + qmakeevaluator.cpp qmakeevaluator.h qmakeevaluator_p.h + qmakeglobals.cpp qmakeglobals.h + qmakeparser.cpp qmakeparser.h + qmakevfs.cpp qmakevfs.h + registry.cpp registry_p.h + PROPERTIES + CXX_VISIBILITY_PRESET default + VISIBILITY_INLINES_HIDDEN OFF + WINDOWS_EXPORT_ALL_SYMBOLS ON +) + +if (WIN32) + target_compile_definitions(ProParser PRIVATE _UNICODE UNICODE) +endif() + +target_include_directories(ProParser PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/..") diff --git a/src/shared/qtlockedfile/CMakeLists.txt b/src/shared/qtlockedfile/CMakeLists.txt new file mode 100644 index 0000000000..5386c7c962 --- /dev/null +++ b/src/shared/qtlockedfile/CMakeLists.txt @@ -0,0 +1,13 @@ +if (WIN32) + set(OS_SOURCES qtlockedfile_win.cpp) +else() + set(OS_SOURCES qtlockedfile_unix.cpp) +endif() + +add_library(shared_qtlockedfile STATIC ${OS_SOURCES} qtlockedfile.cpp qtlockedfile.h) +target_link_libraries(shared_qtlockedfile Qt5::Core) +target_include_directories(shared_qtlockedfile PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}") +if (WIN32) + target_compile_definitions(shared_qtlockedfile PRIVATE + "QT_QTLOCKEDFILE_EXPORT=__declspec(dllexport)" _UNICODE UNICODE) +endif() diff --git a/src/shared/qtsingleapplication/CMakeLists.txt b/src/shared/qtsingleapplication/CMakeLists.txt new file mode 100644 index 0000000000..b31f8f93ed --- /dev/null +++ b/src/shared/qtsingleapplication/CMakeLists.txt @@ -0,0 +1,9 @@ +add_library(shared_qtsingleapplication STATIC + qtsingleapplication.cpp qtsingleapplication.h + qtlocalpeer.cpp qtlocalpeer.h +) +target_link_libraries(shared_qtsingleapplication shared_qtlockedfile Qt5::Core Qt5::Network Qt5::Widgets) +target_include_directories(shared_qtsingleapplication PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}") +if (WIN32) + target_compile_definitions(shared_qtsingleapplication PRIVATE "QT_QTSINGLEAPPLICATION_EXPORT=__declspec(dllexport)") +endif() diff --git a/src/shared/registryaccess/CMakeLists.txt b/src/shared/registryaccess/CMakeLists.txt new file mode 100644 index 0000000000..e289a0ba15 --- /dev/null +++ b/src/shared/registryaccess/CMakeLists.txt @@ -0,0 +1,8 @@ +if (WIN32) + add_library(registryaccess STATIC registryaccess.cpp registryaccess.h) + target_link_libraries(registryaccess PUBLIC advapi32 ole32 shell32 Qt5::Widgets) + target_compile_definitions(registryaccess PRIVATE _UNICODE UNICODE) + target_include_directories(registryaccess PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) +else() + add_library(registryaccess INTERFACE) +endif() diff --git a/src/tools/3rdparty/CMakeLists.txt b/src/tools/3rdparty/CMakeLists.txt new file mode 100644 index 0000000000..b82a82ceb0 --- /dev/null +++ b/src/tools/3rdparty/CMakeLists.txt @@ -0,0 +1 @@ +add_subdirectory(cplusplus-keywordgen) diff --git a/src/tools/3rdparty/cplusplus-keywordgen/CMakeLists.txt b/src/tools/3rdparty/cplusplus-keywordgen/CMakeLists.txt new file mode 100644 index 0000000000..0ab12f5bf2 --- /dev/null +++ b/src/tools/3rdparty/cplusplus-keywordgen/CMakeLists.txt @@ -0,0 +1,5 @@ +add_qtc_executable(cplusplus-keywordgen + DEPENDS CPlusPlus Utils + SOURCES cplusplus-keywordgen.cpp +) + diff --git a/src/tools/CMakeLists.txt b/src/tools/CMakeLists.txt new file mode 100644 index 0000000000..06491168bc --- /dev/null +++ b/src/tools/CMakeLists.txt @@ -0,0 +1,48 @@ +add_subdirectory(3rdparty) +add_subdirectory(buildoutputparser) +if (NOT Clang_FOUND) + message(WARNING "Could not find Clang installation - disabling clangbackend.") +else () + add_subdirectory(clangbackend) +endif () + +# add_subdirectory(clangrefactoringbackend) ## not building this at this time! + +option(BUILD_CPLUSPLUS_TOOLS "Build CPlusPlus tools" OFF) + +function(add_qtc_cpp_tool name) + add_qtc_executable(${name} + DEFINES + PATH_PREPROCESSOR_CONFIG=\"${CMAKE_CURRENT_SOURCE_DIR}/pp-configuration.inc\" + ${ARGN} + DEPENDS CPlusPlus Utils Qt5::Widgets + INCLUDES "${CMAKE_CURRENT_SOURCE_DIR}/cplusplus-shared" + "${CMAKE_CURRENT_SOURCE_DIR}/${name}" + SOURCES + cplusplus-shared/utils.cpp + "${name}/${name}.cpp" + ) +endfunction() + +if (BUILD_CPLUSPLUS_TOOLS) + add_qtc_cpp_tool(cplusplus-ast2png "") + add_qtc_cpp_tool(cplusplus-frontend "") + add_qtc_cpp_tool(cplusplus-mkvisitor PATH_AST_H=\"${CMAKE_CURRENT_SOURCE_DIR}/../../libs/3rdparty/cplusplus/AST.h\") + add_qtc_cpp_tool(cplusplus-update-frontend PATH_CPP_FRONTEND=\"${CMAKE_CURRENT_SOURCE_DIR}/../../libs/3rdparty/cplusplus\" PATH_DUMPERS_FILE=\"${CMAKE_CURRENT_SOURCE_DIR}/../cplusplus-ast2png/dumpers.inc\") +endif() + +# if (APPLE) +# add_subdirectory(iostool) ## mac only +# endif() + +# add_subdirectory(qml2puppet) ## ??? +# add_subdirectory(qtcdebugger) ## windows only +# add_subdirectory(qtcrashhandler) +add_subdirectory(qtcreatorcrashhandler) +# add_subdirectory(qtcreatorwidgets) ## qbs does not build this either +add_subdirectory(qtpromaker) +# add_subdirectory(screenshotcropper) ## qbs does not build this either +add_subdirectory(sdktool) +add_subdirectory(valgrindfake) +# add_subdirectory(wininterrupt) ## windows only +# add_subdirectory(winrtdebughelper) ## windows only diff --git a/src/tools/buildoutputparser/CMakeLists.txt b/src/tools/buildoutputparser/CMakeLists.txt new file mode 100644 index 0000000000..ff55e888a3 --- /dev/null +++ b/src/tools/buildoutputparser/CMakeLists.txt @@ -0,0 +1,6 @@ +add_qtc_executable(buildoutputparser + DEPENDS Utils ProjectExplorer QtSupport QmakeProjectManager + SOURCES + main.cpp + outputprocessor.cpp outputprocessor.h +) diff --git a/src/tools/clangbackend/CMakeLists.txt b/src/tools/clangbackend/CMakeLists.txt new file mode 100644 index 0000000000..827b0c6fbe --- /dev/null +++ b/src/tools/clangbackend/CMakeLists.txt @@ -0,0 +1,67 @@ +add_qtc_executable(clangbackend + DEPENDS ClangSupport libclang Sqlite Qt5::Core Qt5::Network + INCLUDES "${CMAKE_CURRENT_SOURCE_DIR}/source" ${CLANG_INCLUDE_DIRS} + SOURCES + ../qtcreatorcrashhandler/crashhandlersetup.cpp ../qtcreatorcrashhandler/crashhandlersetup.h + + clangbackendmain.cpp + source/clangasyncjob.h + source/clangbackend_global.h + source/clangclock.h + source/clangcodecompleteresults.cpp source/clangcodecompleteresults.h + source/clangcodemodelserver.cpp source/clangcodemodelserver.h + source/clangcompletecodejob.cpp source/clangcompletecodejob.h + source/clangdocument.cpp source/clangdocument.h + source/clangdocumentjob.h + source/clangdocumentprocessor.cpp source/clangdocumentprocessor.h + source/clangdocumentprocessors.cpp source/clangdocumentprocessors.h + source/clangdocuments.cpp source/clangdocuments.h + source/clangdocumentsuspenderresumer.cpp source/clangdocumentsuspenderresumer.h + source/clangexceptions.cpp source/clangexceptions.h + source/clangfilepath.cpp source/clangfilepath.h + source/clangfilesystemwatcher.cpp source/clangfilesystemwatcher.h + source/clangfollowsymbol.cpp source/clangfollowsymbol.h + source/clangfollowsymboljob.cpp source/clangfollowsymboljob.h + source/clangiasyncjob.cpp source/clangiasyncjob.h + source/clangjobcontext.cpp source/clangjobcontext.h + source/clangjobqueue.cpp source/clangjobqueue.h + source/clangjobrequest.cpp source/clangjobrequest.h + source/clangjobs.cpp source/clangjobs.h + source/clangparsesupportivetranslationunitjob.cpp source/clangparsesupportivetranslationunitjob.h + source/clangreferencescollector.cpp source/clangreferencescollector.h + source/clangrequestannotationsjob.cpp source/clangrequestannotationsjob.h + source/clangrequestreferencesjob.cpp source/clangrequestreferencesjob.h + source/clangrequesttooltipjob.cpp source/clangrequesttooltipjob.h + source/clangresumedocumentjob.cpp source/clangresumedocumentjob.h + source/clangstring.h + source/clangsupportivetranslationunitinitializer.cpp source/clangsupportivetranslationunitinitializer.h + source/clangsuspenddocumentjob.cpp source/clangsuspenddocumentjob.h + source/clangtooltipinfocollector.cpp source/clangtooltipinfocollector.h + source/clangtranslationunit.cpp source/clangtranslationunit.h + source/clangtranslationunits.cpp source/clangtranslationunits.h + source/clangtranslationunitupdater.cpp source/clangtranslationunitupdater.h + source/clangtype.cpp source/clangtype.h + source/clangunsavedfilesshallowarguments.cpp source/clangunsavedfilesshallowarguments.h + source/clangupdateannotationsjob.cpp source/clangupdateannotationsjob.h + source/clangupdateextraannotationsjob.cpp source/clangupdateextraannotationsjob.h + source/codecompleter.cpp source/codecompleter.h + source/codecompletionchunkconverter.cpp source/codecompletionchunkconverter.h + source/codecompletionsextractor.cpp source/codecompletionsextractor.h + source/commandlinearguments.cpp source/commandlinearguments.h + source/cursor.cpp source/cursor.h + source/diagnostic.cpp source/diagnostic.h + source/diagnosticset.cpp source/diagnosticset.h + source/diagnosticsetiterator.h + source/fixit.cpp source/fixit.h + source/fulltokeninfo.cpp source/fulltokeninfo.h + source/skippedsourceranges.cpp source/skippedsourceranges.h + source/sourcelocation.cpp source/sourcelocation.h + source/sourcerange.cpp source/sourcerange.h + source/token.cpp source/token.h + source/tokeninfo.cpp source/tokeninfo.h + source/tokenprocessor.h + source/tokenprocessoriterator.h + source/unsavedfile.cpp source/unsavedfile.h + source/unsavedfiles.cpp source/unsavedfiles.h + source/utf8positionfromlinecolumn.cpp source/utf8positionfromlinecolumn.h +) diff --git a/src/tools/clangrefactoringbackend/CMakeLists.txt b/src/tools/clangrefactoringbackend/CMakeLists.txt new file mode 100644 index 0000000000..184ff60aeb --- /dev/null +++ b/src/tools/clangrefactoringbackend/CMakeLists.txt @@ -0,0 +1,18 @@ +add_qtc_executable(clangrefactoringbackend + DEPENDS clangbackendipc + INCLUDES source + SOURCES + clangrefactoringbackendmain.cpp + source/clangquery.cpp source/clangquery.h + source/clangrefactoringbackend_global.h + source/clangtool.cpp source/clangtool.h + source/findcursorusr.h + source/findlocationsofusrs.h + source/findusrforcursoraction.cpp source/findusrforcursoraction.h + source/macropreprocessorcallbacks.cpp source/macropreprocessorcallbacks.h + source/refactoringcompilationdatabase.cpp source/refactoringcompilationdatabase.h + source/refactoringserver.cpp source/refactoringserver.h + source/sourcelocationsutils.h + source/symbolfinder.cpp source/symbolfinder.h + source/symbollocationfinderaction.cpp source/symbollocationfinderaction.h +) diff --git a/src/tools/iostool/CMakeLists.txt b/src/tools/iostool/CMakeLists.txt new file mode 100644 index 0000000000..5c0721841a --- /dev/null +++ b/src/tools/iostool/CMakeLists.txt @@ -0,0 +1,7 @@ +add_qtc_executable(iostool + DEPENDS Qt5::Network Qt5::Widgets Qt5::Xml + SOURCES + Info.plist + main.cpp + iosdevicemanager.cpp iosdevicemanager.h +) diff --git a/src/tools/qml2puppet/CMakeLists.txt b/src/tools/qml2puppet/CMakeLists.txt new file mode 100644 index 0000000000..8da2513a9f --- /dev/null +++ b/src/tools/qml2puppet/CMakeLists.txt @@ -0,0 +1,8 @@ +# +# Copyright (C) YourCompany. All rights reserved. +# +# GENERATED BY CPP-DEPENDENCIES - do not edit, your changes will be lost +# If you must edit, remove these two lines to avoid regeneration + + +add_subdirectory(qml2puppet) diff --git a/src/tools/qtcdebugger/CMakeLists.txt b/src/tools/qtcdebugger/CMakeLists.txt new file mode 100644 index 0000000000..22b1ca8e2d --- /dev/null +++ b/src/tools/qtcdebugger/CMakeLists.txt @@ -0,0 +1,18 @@ +# +# Copyright (C) YourCompany. All rights reserved. +# +# GENERATED BY CPP-DEPENDENCIES - do not edit, your changes will be lost +# If you must edit, remove these two lines to avoid regeneration + +project(src.tools.qtcdebugger) + + +add_library(${PROJECT_NAME} STATIC + main.cpp +) + +target_link_libraries(${PROJECT_NAME} + PRIVATE + src +) + diff --git a/src/tools/qtcrashhandler/CMakeLists.txt b/src/tools/qtcrashhandler/CMakeLists.txt new file mode 100644 index 0000000000..7868ec305d --- /dev/null +++ b/src/tools/qtcrashhandler/CMakeLists.txt @@ -0,0 +1,7 @@ +# +# Copyright (C) YourCompany. All rights reserved. +# +# GENERATED BY CPP-DEPENDENCIES - do not edit, your changes will be lost +# If you must edit, remove these two lines to avoid regeneration + + diff --git a/src/tools/qtcreatorcrashhandler/CMakeLists.txt b/src/tools/qtcreatorcrashhandler/CMakeLists.txt new file mode 100644 index 0000000000..74dfd2199f --- /dev/null +++ b/src/tools/qtcreatorcrashhandler/CMakeLists.txt @@ -0,0 +1,11 @@ +if (LINUX) # Debug build only! + add_qtc_executable(qtcreatorcrashhandler + DEPENDS Utils Qt5::Widgets + SOURCES + backtracecollector.cpp backtracecollector.h + crashhandler.cpp crashhandler.h + crashhandlerdialog.cpp crashhandlerdialog.h crashhandlerdialog.ui + main.cpp + utils.cpp utils.h + ) +endif() diff --git a/src/tools/qtcreatorwidgets/CMakeLists.txt b/src/tools/qtcreatorwidgets/CMakeLists.txt new file mode 100644 index 0000000000..80fd46c824 --- /dev/null +++ b/src/tools/qtcreatorwidgets/CMakeLists.txt @@ -0,0 +1,20 @@ +# +# Copyright (C) YourCompany. All rights reserved. +# +# GENERATED BY CPP-DEPENDENCIES - do not edit, your changes will be lost +# If you must edit, remove these two lines to avoid regeneration + +project(src.tools.qtcreatorwidgets) + + +add_library(${PROJECT_NAME} STATIC + customwidget.h + customwidgets.cpp + customwidgets.h +) + +target_link_libraries(${PROJECT_NAME} + PRIVATE + src.libs.utils +) + diff --git a/src/tools/qtpromaker/CMakeLists.txt b/src/tools/qtpromaker/CMakeLists.txt new file mode 100644 index 0000000000..70907c3d7c --- /dev/null +++ b/src/tools/qtpromaker/CMakeLists.txt @@ -0,0 +1,2 @@ +add_qtc_executable(qtpromaker DEPENDS Qt5::Core SOURCES main.cpp) +install(TARGETS qtpromaker DESTINATION "${IDE_LIBEXEC_PATH}") diff --git a/src/tools/screenshotcropper/CMakeLists.txt b/src/tools/screenshotcropper/CMakeLists.txt new file mode 100644 index 0000000000..c33a1311c8 --- /dev/null +++ b/src/tools/screenshotcropper/CMakeLists.txt @@ -0,0 +1,22 @@ +# +# Copyright (C) YourCompany. All rights reserved. +# +# GENERATED BY CPP-DEPENDENCIES - do not edit, your changes will be lost +# If you must edit, remove these two lines to avoid regeneration + +project(src.tools.screenshotcropper) + + +add_library(${PROJECT_NAME} STATIC + cropimageview.cpp + cropimageview.h + main.cpp + screenshotcropperwindow.cpp + screenshotcropperwindow.h +) + +target_link_libraries(${PROJECT_NAME} + PRIVATE + src.plugins.qtsupport +) + diff --git a/src/tools/sdktool/CMakeLists.txt b/src/tools/sdktool/CMakeLists.txt new file mode 100644 index 0000000000..3be2fb4f7d --- /dev/null +++ b/src/tools/sdktool/CMakeLists.txt @@ -0,0 +1,28 @@ +# TODO: Do not depend on Utils! Include relevant files instead. + +add_qtc_executable(sdktool + DEFINES DATA_PATH=\"${IDE_DATA_PATH}\" + DEPENDS Qt5::Core Utils app_version + SOURCES + addabiflavor.cpp addabiflavor.h + addcmakeoperation.cpp addcmakeoperation.h + adddebuggeroperation.cpp adddebuggeroperation.h + adddeviceoperation.cpp adddeviceoperation.h + addkeysoperation.cpp addkeysoperation.h + addkitoperation.cpp addkitoperation.h + addqtoperation.cpp addqtoperation.h + addtoolchainoperation.cpp addtoolchainoperation.h + findkeyoperation.cpp findkeyoperation.h + findvalueoperation.cpp findvalueoperation.h + getoperation.cpp getoperation.h + main.cpp + operation.cpp operation.h + rmcmakeoperation.cpp rmcmakeoperation.h + rmdebuggeroperation.cpp rmdebuggeroperation.h + rmdeviceoperation.cpp rmdeviceoperation.h + rmkeysoperation.cpp rmkeysoperation.h + rmkitoperation.cpp rmkitoperation.h + rmqtoperation.cpp rmqtoperation.h + rmtoolchainoperation.cpp rmtoolchainoperation.h + settings.cpp settings.h +) diff --git a/src/tools/valgrindfake/CMakeLists.txt b/src/tools/valgrindfake/CMakeLists.txt new file mode 100644 index 0000000000..93944f3913 --- /dev/null +++ b/src/tools/valgrindfake/CMakeLists.txt @@ -0,0 +1,5 @@ +add_qtc_executable(valgrind-fake + DEPENDS Qt5::Network Qt5::Xml + SOURCES main.cpp outputgenerator.cpp outputgenerator.h +) + diff --git a/src/tools/wininterrupt/CMakeLists.txt b/src/tools/wininterrupt/CMakeLists.txt new file mode 100644 index 0000000000..704b417ff5 --- /dev/null +++ b/src/tools/wininterrupt/CMakeLists.txt @@ -0,0 +1,12 @@ +# +# Copyright (C) YourCompany. All rights reserved. +# +# GENERATED BY CPP-DEPENDENCIES - do not edit, your changes will be lost +# If you must edit, remove these two lines to avoid regeneration + +project(src.tools.wininterrupt) + + +add_library(${PROJECT_NAME} INTERFACE +) + diff --git a/src/tools/winrtdebughelper/CMakeLists.txt b/src/tools/winrtdebughelper/CMakeLists.txt new file mode 100644 index 0000000000..0b19c9310c --- /dev/null +++ b/src/tools/winrtdebughelper/CMakeLists.txt @@ -0,0 +1,13 @@ +# +# Copyright (C) YourCompany. All rights reserved. +# +# GENERATED BY CPP-DEPENDENCIES - do not edit, your changes will be lost +# If you must edit, remove these two lines to avoid regeneration + +project(src.tools.winrtdebughelper) + + +add_library(${PROJECT_NAME} STATIC + winrtdebughelper.cpp +) + |