Qt Creator CMake port

Based on Tobias Hunger's work from a few months ago.

The CMake configuration needs libclang and Qt paths specified as
CMAKE_PREFIX_PATH.

Auto tests are run with "ctest". At the moment the pass rate is 87%.

Change-Id: Iba98e39bf22077d52706dce6c85986be67a6eab0
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Cristian Adam
2019-05-12 22:20:56 +02:00
parent f872a95fdd
commit d855b84c5d
232 changed files with 5998 additions and 138 deletions

1
.gitignore vendored
View File

@@ -45,6 +45,7 @@ wrapper.sh
*.pyqtc.user*
*.qbs.user*
*.qmlproject.user*
CMakeLists.txt.user
/share/qtcreator/externaltools
/share/qtcreator/fonts/
/share/qtcreator/generic-highlighter/

162
CMakeLists.txt Normal file
View File

@@ -0,0 +1,162 @@
cmake_minimum_required(VERSION 3.9)
include(FeatureSummary)
#BINARY_ARTIFACTS_BRANCH = master
#PROJECT_USER_FILE_EXTENSION = .user
set(IDE_VERSION "4.9.82" CACHE STRING "The IDE version.")
set(IDE_VERSION_COMPAT "4.9.82" CACHE STRING "The IDE Compatibility version.")
set(IDE_VERSION_DISPLAY "4.10.0-beta1" CACHE STRING "The IDE display version.")
set(IDE_COPYRIGHT_YEAR "2019" CACHE STRING "The IDE copyright year.")
set(IDE_REVISION FALSE CACHE BOOL "Marks the presence of IDE revision string.")
set(IDE_REVISION_STR "" CACHE STRING "The IDE revision string.")
set(IDE_SETTINGSVARIANT "QtProject" CACHE STRING "The IDE settings variation.")
set(IDE_COPY_SETTINGSVARIANT "Nokia" CACHE STRING "The IDE settings to initially import.")
set(IDE_DISPLAY_NAME "Qt Creator" CACHE STRING "The IDE display name.")
set(IDE_ID "qtcreator" CACHE STRING "The IDE id (no spaces, lowercase!)")
set(IDE_CASED_ID "QtCreator" CACHE STRING "The cased IDE id (no spaces!)")
mark_as_advanced(IDE_VERSION_COMPAT IDE_VERSION_DISPLAY IDE_COPYRIGHT_YEAR
IDE_REVISION IDE_REVISION_STR IDE_SETTINGSVARIANT IDE_COPY_SETTINGSVARIANT
IDE_DISPLAY_NAME IDE_ID IDE_CASED_ID)
project(QtCreator VERSION ${IDE_VERSION})
## Add paths to check for cmake modules:
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
# Force C++ standard, do not fall back, do not use compiler extensions
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
option(WITH_TESTS "Build Tests" OFF)
option(WITH_DEBUG_CMAKE "Enabled CMake project debugging functionality (e.g. source file disk checking)" OFF)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Set up Qt stuff:
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
if (WITH_TESTS)
set(_TEST_QT_COMPONENT Test)
set(_TEST_DEPENDS Qt5::Test)
endif()
find_package(Qt5
COMPONENTS Concurrent Core Network PrintSupport Qml Quick QuickWidgets
Script Sql ${_TEST_QT_COMPONENT}
REQUIRED
)
find_package(Qt5 COMPONENTS Designer Help SerialPort Svg QUIET)
function (set_if_target var target)
if (TARGET "${target}")
set(_result ON)
else()
set(_result OFF)
endif()
set(${var} "${_result}" PARENT_SCOPE)
endfunction()
set_if_target(_has_svg_target Qt5::Svg)
option(ENABLE_SVG_SUPPORT "Enable SVG support" "${_has_svg_target}")
add_library(OptionalSvg INTERFACE)
if (TARGET Qt5::Svg AND ENABLE_SVG_SUPPORT)
target_link_libraries(OptionalSvg INTERFACE Qt5::Svg)
else()
target_compile_definitions(OptionalSvg INTERFACE QT_NO_SVG)
endif()
find_package(LLVM QUIET)
find_package(Clang COMPONENTS libclang QUIET)
set(_IDE_APP_PATH "bin")
if (APPLE)
set(_IDE_APP_TARGET "Qt Creator")
set(_IDE_OUTPUT_PATH "${_IDE_APP_PATH}/${_IDE_APP_TARGET}.app/Contents")
set(_IDE_PLUGIN_PATH "${_IDE_OUTPUT_PATH}/PlugIns")
set(_IDE_LIBRARY_BASE_PATH "Frameworks")
set(_IDE_LIBRARY_PATH "${_IDE_OUTPUT_PATH}/Frameworks")
set(_IDE_LIBEXEC_PATH "${_IDE_OUTPUT_PATH}/Resources")
set(_IDE_DATA_PATH "${_IDE_OUTPUT_PATH}/Resources")
set(_IDE_DOC_PATH "${_IDE_OUTPUT_PATH}/Resources/doc")
set(_IDE_BIN_PATH "${_IDE_OUTPUT_PATH}/MacOS")
else ()
set(_IDE_APP_TARGET "qtcreator")
set(_IDE_LIBRARY_BASE_PATH "lib")
set(_IDE_LIBRARY_PATH "lib/qtcreator")
set(_IDE_PLUGIN_PATH "lib/qtcreator/plugins")
if (WIN32)
set(_IDE_LIBEXEC_PATH "bin")
else ()
set(_IDE_LIBEXEC_PATH "libexec/qtcreator/bin")
endif ()
set(_IDE_DATA_PATH "share/qtcreator")
set(_IDE_DOC_PATH "share/doc/qtcreator")
set(_IDE_BIN_PATH "bin")
endif ()
set(IDE_APP_PATH "${_IDE_APP_PATH}" CACHE PATH "The target path of the IDE application (relative to CMAKE_INSTALL_PREFIX).")
set(IDE_APP_TARGET "${_IDE_APP_TARGET}" CACHE PATH "The IDE application name.")
set(IDE_PLUGIN_PATH "${_IDE_PLUGIN_PATH}" CACHE PATH "The IDE plugin path (relative to CMAKE_INSTALL_PREFIX).")
set(IDE_LIBRARY_BASE_PATH "${_IDE_LIBRARY_BASE_PATH}" CACHE PATH "The IDE library base path (relative to CMAKE_INSTALL_PREFIX).")
set(IDE_LIBRARY_PATH "${_IDE_LIBRARY_PATH}" CACHE PATH "The IDE library path (relative to CMAKE_INSTALL_PREFIX).")
set(IDE_LIBEXEC_PATH "${_IDE_LIBEXEC_PATH}" CACHE PATH "The IDE libexec path (relative to CMAKE_INSTALL_PREFIX).")
set(IDE_DATA_PATH "${_IDE_DATA_PATH}" CACHE PATH "The IDE data path (relative to CMAKE_INSTALL_PREFIX).")
set(IDE_DOC_PATH "${_IDE_DOC_PATH}" CACHE PATH "The IDE documentation path (relative to CMAKE_INSTALL_PREFIX).")
set(IDE_BIN_PATH "${_IDE_BIN_PATH}" CACHE PATH "The IDE bin path (relative to CMAKE_INSTALL_PREFIX).")
file(RELATIVE_PATH RELATIVE_PLUGIN_PATH "/${IDE_BIN_PATH}" "/${IDE_PLUGIN_PATH}")
file(RELATIVE_PATH RELATIVE_LIBEXEC_PATH "/${IDE_BIN_PATH}" "/${IDE_LIBEXEC_PATH}")
file(RELATIVE_PATH RELATIVE_DATA_PATH "/${IDE_BIN_PATH}" "/${IDE_DATA_PATH}")
file(RELATIVE_PATH RELATIVE_DOC_PATH "/${IDE_BIN_PATH}" "/${IDE_DOC_PATH}")
list(APPEND DEFAULT_DEFINES
RELATIVE_PLUGIN_PATH="${RELATIVE_PLUGIN_PATH}"
RELATIVE_LIBEXEC_PATH="${RELATIVE_LIBEXEC_PATH}"
RELATIVE_DATA_PATH="${RELATIVE_DATA_PATH}"
RELATIVE_DOC_PATH="${RELATIVE_DOC_PATH}"
)
file(RELATIVE_PATH _PLUGIN_TO_LIB "/${IDE_PLUGIN_PATH}" "/${IDE_LIBRARY_PATH}")
if (APPLE)
set(_RPATH_BASE "@executable_path")
set(_LIB_RPATH "@loader_path")
set(_PLUGIN_RPATH "@loader_path;@loader_path/${_PLUGIN_TO_LIB}")
elseif (WIN32)
set(_RPATH_BASE "")
set(_LIB_RPATH "")
set(_PLUGIN_RPATH "")
else()
set(_RPATH_BASE "\$ORIGIN")
set(_LIB_RPATH "\$ORIGIN")
set(_PLUGIN_RPATH "\$ORIGIN;\$ORIGIN/${_PLUGIN_TO_LIB}")
endif ()
if (UNIX)
add_subdirectory(bin)
endif()
add_subdirectory(src)
add_subdirectory(share)
if (WITH_TESTS)
enable_testing()
add_subdirectory(tests)
endif()
feature_summary(INCLUDE_QUIET_PACKAGES WHAT
PACKAGES_FOUND PACKAGES_NOT_FOUND
ENABLED_FEATURES DISABLED_FEATURES
)

1
bin/CMakeLists.txt Normal file
View File

@@ -0,0 +1 @@
install(PROGRAMS qtcreator.sh DESTINATION bin)

View File

@@ -0,0 +1,51 @@
#.rst:
# FindDesignerComponents
# ---------
#
# Try to locate the DesignerComponents library.
# If found, this will define the following variables:
#
# ``DesignerComponents_FOUND``
# True if the DesignerComponents library is available
# ``DesignerComponents_INCLUDE_DIRS``
# The DesignerComponents include directories
# ``DesignerComponents_LIBRARIES``
# The DesignerComponentscore library for linking
# ``DesignerComponents_INSTALL_DIR``
# Top level DesignerComponents installation directory
#
# If ``DesignerComponents_FOUND`` is TRUE, it will also define the following
# imported target:
#
# ``Qt5::DesignerComponents``
# The DesignerComponents library
find_package(Qt5Designer QUIET)
if (NOT Qt5Designer_FOUND)
set(DesignerComponents_FOUND OFF)
return()
endif()
find_path(DesignerComponents_INCLUDE_DIRS NAMES qtdesignercomponentsversion.h PATH_SUFFIXES QtDesignerComponents HINTS ${Qt5Designer_INCLUDE_DIRS})
find_library(DesignerComponents_LIBRARIES NAMES Qt5DesignerComponents)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(DesignerComponents DEFAULT_MSG
DesignerComponents_LIBRARIES DesignerComponents_INCLUDE_DIRS)
if(DesignerComponents_FOUND AND NOT TARGET DesignerComponents::DesignerComponents)
add_library(Qt5::DesignerComponents UNKNOWN IMPORTED)
set_target_properties(Qt5::DesignerComponents PROPERTIES
IMPORTED_LOCATION "${DesignerComponents_LIBRARIES}"
INTERFACE_INCLUDE_DIRECTORIES "${DesignerComponents_INCLUDE_DIRS}")
endif()
mark_as_advanced(DesignerComponents_INCLUDE_DIRS DesignerComponents_LIBRARIES)
include(FeatureSummary)
set_package_properties(DesignerComponents PROPERTIES
URL "https://qt.io/"
DESCRIPTION "Qt5 (Widget) DesignerComponents library")

55
cmake/FindQbs.cmake Normal file
View File

@@ -0,0 +1,55 @@
#.rst:
# FindQbs
# ---------
#
# Try to locate the Qbs library.
# If found, this will define the following variables:
#
# ``QBS_FOUND``
# True if the qbs library is available
# ``QBS_INCLUDE_DIRS``
# The qbs include directories
# ``QBSCORE_LIBRARIES``
# The qbscore library for linking
# ``QBS_INSTALL_DIR``
# Top level qbs installation directory
#
# If ``QBS_FOUND`` is TRUE, it will also define the following
# imported target:
#
# ``QBS::QBS``
# The qbs library
find_program(QBS_BINARY NAMES qbs)
if(QBS_BINARY STREQUAL "QBS_BINARY-NOTFOUND")
set(_QBS_INSTALL_DIR "QBS_INSTALL_DIR-NOTFOUND")
else()
get_filename_component(_QBS_BIN_DIR "${QBS_BINARY}" DIRECTORY)
get_filename_component(_QBS_INSTALL_DIR "${_QBS_BIN_DIR}" DIRECTORY)
endif()
set(QBS_INSTALL_DIR "${_QBS_INSTALL_DIR}" CACHE PATH "Qbs install directory")
find_path(QBS_INCLUDE_DIRS NAMES qbs.h PATH_SUFFIXES qbs HINTS "${QBS_INSTALL_DIR}/include")
find_library(QBSCORE_LIBRARIES NAMES qbscore HINTS "${QBS_INSTALL_DIR}/lib")
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(QBS DEFAULT_MSG QBSCORE_LIBRARIES QBS_INCLUDE_DIRS)
if(QBS_FOUND AND NOT TARGET Qbs::QbsCore)
add_library(Qbs::QbsCore UNKNOWN IMPORTED)
# FIXME: Detect whether QBS_ENABLE_PROJECT_FILE_UPDATES is set in qbscore!
set_target_properties(Qbs::QbsCore PROPERTIES
IMPORTED_LOCATION "${QBSCORE_LIBRARIES}"
INTERFACE_INCLUDE_DIRECTORIES "${QBS_INCLUDE_DIRS}"
INTERFACE_COMPILE_DEFINITIONS "QBS_ENABLE_PROJECT_FILE_UPDATES")
endif()
mark_as_advanced(QBS_INCLUDE_DIRS QBSCORE_LIBRARIES QBS_INSTALL_DIR)
include(FeatureSummary)
set_package_properties(QBS PROPERTIES
URL "https://qt.io/qbs"
DESCRIPTION "QBS build system")

1
share/CMakeLists.txt Normal file
View File

@@ -0,0 +1 @@
add_subdirectory(qtcreator)

View File

@@ -0,0 +1,10 @@
install(
DIRECTORY cplusplus debugger glsl modeleditor qml qmldesigner
qmlicons qml-type-descriptions schemes snippets styles templates themes welcomescreen
DESTINATION "${IDE_DATA_PATH}"
)
install(
FILES indexer_preincludes/qglobal.h indexer_preincludes/windows.h
DESTINATION "${IDE_DATA_PATH}/indexer_preincludes"
)

431
src/CMakeLists.txt Normal file
View File

@@ -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)

19
src/app/CMakeLists.txt Normal file
View File

@@ -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}")

View File

@@ -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

2
src/libs/3rdparty/CMakeLists.txt vendored Normal file
View File

@@ -0,0 +1,2 @@
add_subdirectory(cplusplus)
add_subdirectory(syntax-highlighting)

View File

@@ -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
)

View File

@@ -1,134 +1,38 @@
cmake_minimum_required(VERSION 3.0)
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
set(KF5_VERSION "5.52.0")
project(KSyntaxHighlighting VERSION ${KF5_VERSION})
data/themes/theme-data.qrc
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"
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)

View File

@@ -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)

21
src/libs/CMakeLists.txt Normal file
View File

@@ -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()

View File

@@ -0,0 +1,6 @@
add_qtc_library(Aggregation
DEPENDS Qt5::Core
SOURCES
aggregate.cpp aggregate.h
aggregation_global.h
)

View File

@@ -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
)

View File

@@ -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
)

View File

@@ -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
)

View File

@@ -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
)

View File

@@ -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
)

View File

@@ -0,0 +1,7 @@
add_qtc_library(LanguageUtils
PUBLIC_DEPENDS Qt5::Core
SOURCES
componentversion.cpp componentversion.h
fakemetaobject.cpp fakemetaobject.h
languageutils_global.h
)

View File

@@ -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
)

View File

@@ -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
)

View File

@@ -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
)

View File

@@ -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
)

View File

@@ -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
)

View File

@@ -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
)

View File

@@ -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
)

View File

@@ -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
)

View File

@@ -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})

View File

@@ -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)

View File

@@ -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
)

View File

@@ -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()

View File

@@ -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
)

View File

@@ -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
)

View File

@@ -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
)

View File

@@ -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
)

View File

@@ -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
)

View File

@@ -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
)

View File

@@ -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()

View File

@@ -0,0 +1,4 @@
git checkout -- clangcodemodelplugin.h
git checkout -- clangcompletionassistinterface.cpp
git checkout -- clangcompletionassistinterface.h
git checkout -- clangcompletionassistprocessor.cpp

View File

@@ -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
)

View File

@@ -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
)

View File

@@ -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
)

View File

@@ -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()

View File

@@ -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
)

View File

@@ -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
)

View File

@@ -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
)

View File

@@ -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()

View File

@@ -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()

View File

@@ -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
)

View File

@@ -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
)

View File

@@ -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()

View File

@@ -27,6 +27,7 @@
#include "cppautocompleter.h"
#include "cppcodemodelinspectordialog.h"
#include "cppeditor.h"
#include "cppeditorconstants.h"
#include "cppeditorwidget.h"
#include "cppeditordocument.h"

View File

@@ -25,6 +25,7 @@
#include "cppoutline.h"
#include "cppeditor.h"
#include <cpptools/cppeditoroutline.h>
#include <cpptools/cppoverviewmodel.h>

View File

@@ -25,7 +25,6 @@
#pragma once
#include "cppeditor.h"
#include "cppeditorwidget.h"
#include <texteditor/ioutlinewidget.h>

View File

@@ -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()

View File

@@ -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
)

View File

@@ -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()

View File

@@ -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()

View File

@@ -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
)

View File

@@ -0,0 +1,7 @@
add_qtc_plugin(EmacsKeys
PLUGIN_DEPENDS Core TextEditor
SOURCES
emacskeysconstants.h
emacskeysplugin.cpp emacskeysplugin.h
emacskeysstate.cpp emacskeysstate.h
)

View File

@@ -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()

View File

@@ -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()

View File

@@ -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
)

View File

@@ -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
)

View File

@@ -0,0 +1,6 @@
add_qtc_plugin(HelloWorld
PLUGIN_DEPENDS Core
SOURCES
helloworldplugin.cpp helloworldplugin.h
helloworldwindow.cpp helloworldwindow.h
)

View File

@@ -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()

View File

@@ -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
)

View File

@@ -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()

View File

@@ -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
)

View File

@@ -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
)

View File

@@ -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
)

View File

@@ -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
)

View File

@@ -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
)

View File

@@ -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
)

View File

@@ -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()

View File

@@ -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()

View File

@@ -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
)

View File

@@ -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
)

View File

@@ -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
)

View File

@@ -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>

View File

@@ -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()

View File

@@ -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
)

View File

@@ -24,6 +24,7 @@
****************************************************************************/
#include "qmljscompletionassist.h"
#include "qmljseditor.h"
#include "qmljseditorconstants.h"
#include "qmljsreuse.h"
#include "qmlexpressionundercursor.h"

View File

@@ -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>

View File

@@ -25,6 +25,7 @@
#pragma once
#include "qmljseditor_global.h"
#include "qmljsquickfix.h"
namespace QmlJSEditor {

View File

@@ -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

View File

@@ -25,8 +25,6 @@
#pragma once
#include "qmljseditor.h"
#include <texteditor/quickfix.h>
#include <qmljs/parser/qmljsastfwd_p.h>
#include <qmljs/qmljsdocument.h>

View File

@@ -24,6 +24,7 @@
****************************************************************************/
#include "qmljsquickfixassist.h"
#include "qmljseditor.h"
#include "qmljseditorconstants.h"
#include "qmljseditordocument.h"

View File

@@ -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:

View File

@@ -25,7 +25,8 @@
#pragma once
#include "qmljseditor.h"
#include <qmljs/qmljsdocument.h>
#include <qmljstools/qmljssemanticinfo.h>
#include <QWaitCondition>
#include <QModelIndex>

View File

@@ -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()

View File

@@ -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()

View File

@@ -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()

View File

@@ -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
)

View File

@@ -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
)

View File

@@ -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
)

View File

@@ -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
)

Some files were not shown because too many files have changed in this diff Show More