diff options
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/3rdparty/CMakeLists.txt | 1 | ||||
-rw-r--r-- | src/tools/3rdparty/cplusplus-keywordgen/CMakeLists.txt | 5 | ||||
-rw-r--r-- | src/tools/CMakeLists.txt | 48 | ||||
-rw-r--r-- | src/tools/buildoutputparser/CMakeLists.txt | 6 | ||||
-rw-r--r-- | src/tools/clangbackend/CMakeLists.txt | 67 | ||||
-rw-r--r-- | src/tools/clangrefactoringbackend/CMakeLists.txt | 18 | ||||
-rw-r--r-- | src/tools/iostool/CMakeLists.txt | 7 | ||||
-rw-r--r-- | src/tools/qml2puppet/CMakeLists.txt | 8 | ||||
-rw-r--r-- | src/tools/qtcdebugger/CMakeLists.txt | 18 | ||||
-rw-r--r-- | src/tools/qtcrashhandler/CMakeLists.txt | 7 | ||||
-rw-r--r-- | src/tools/qtcreatorcrashhandler/CMakeLists.txt | 11 | ||||
-rw-r--r-- | src/tools/qtcreatorwidgets/CMakeLists.txt | 20 | ||||
-rw-r--r-- | src/tools/qtpromaker/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/tools/screenshotcropper/CMakeLists.txt | 22 | ||||
-rw-r--r-- | src/tools/sdktool/CMakeLists.txt | 28 | ||||
-rw-r--r-- | src/tools/valgrindfake/CMakeLists.txt | 5 | ||||
-rw-r--r-- | src/tools/wininterrupt/CMakeLists.txt | 12 | ||||
-rw-r--r-- | src/tools/winrtdebughelper/CMakeLists.txt | 13 |
18 files changed, 298 insertions, 0 deletions
diff --git a/src/tools/3rdparty/CMakeLists.txt b/src/tools/3rdparty/CMakeLists.txt new file mode 100644 index 0000000000..b82a82ceb0 --- /dev/null +++ b/src/tools/3rdparty/CMakeLists.txt @@ -0,0 +1 @@ +add_subdirectory(cplusplus-keywordgen) diff --git a/src/tools/3rdparty/cplusplus-keywordgen/CMakeLists.txt b/src/tools/3rdparty/cplusplus-keywordgen/CMakeLists.txt new file mode 100644 index 0000000000..0ab12f5bf2 --- /dev/null +++ b/src/tools/3rdparty/cplusplus-keywordgen/CMakeLists.txt @@ -0,0 +1,5 @@ +add_qtc_executable(cplusplus-keywordgen + DEPENDS CPlusPlus Utils + SOURCES cplusplus-keywordgen.cpp +) + diff --git a/src/tools/CMakeLists.txt b/src/tools/CMakeLists.txt new file mode 100644 index 0000000000..06491168bc --- /dev/null +++ b/src/tools/CMakeLists.txt @@ -0,0 +1,48 @@ +add_subdirectory(3rdparty) +add_subdirectory(buildoutputparser) +if (NOT Clang_FOUND) + message(WARNING "Could not find Clang installation - disabling clangbackend.") +else () + add_subdirectory(clangbackend) +endif () + +# add_subdirectory(clangrefactoringbackend) ## not building this at this time! + +option(BUILD_CPLUSPLUS_TOOLS "Build CPlusPlus tools" OFF) + +function(add_qtc_cpp_tool name) + add_qtc_executable(${name} + DEFINES + PATH_PREPROCESSOR_CONFIG=\"${CMAKE_CURRENT_SOURCE_DIR}/pp-configuration.inc\" + ${ARGN} + DEPENDS CPlusPlus Utils Qt5::Widgets + INCLUDES "${CMAKE_CURRENT_SOURCE_DIR}/cplusplus-shared" + "${CMAKE_CURRENT_SOURCE_DIR}/${name}" + SOURCES + cplusplus-shared/utils.cpp + "${name}/${name}.cpp" + ) +endfunction() + +if (BUILD_CPLUSPLUS_TOOLS) + add_qtc_cpp_tool(cplusplus-ast2png "") + add_qtc_cpp_tool(cplusplus-frontend "") + add_qtc_cpp_tool(cplusplus-mkvisitor PATH_AST_H=\"${CMAKE_CURRENT_SOURCE_DIR}/../../libs/3rdparty/cplusplus/AST.h\") + add_qtc_cpp_tool(cplusplus-update-frontend PATH_CPP_FRONTEND=\"${CMAKE_CURRENT_SOURCE_DIR}/../../libs/3rdparty/cplusplus\" PATH_DUMPERS_FILE=\"${CMAKE_CURRENT_SOURCE_DIR}/../cplusplus-ast2png/dumpers.inc\") +endif() + +# if (APPLE) +# add_subdirectory(iostool) ## mac only +# endif() + +# add_subdirectory(qml2puppet) ## ??? +# add_subdirectory(qtcdebugger) ## windows only +# add_subdirectory(qtcrashhandler) +add_subdirectory(qtcreatorcrashhandler) +# add_subdirectory(qtcreatorwidgets) ## qbs does not build this either +add_subdirectory(qtpromaker) +# add_subdirectory(screenshotcropper) ## qbs does not build this either +add_subdirectory(sdktool) +add_subdirectory(valgrindfake) +# add_subdirectory(wininterrupt) ## windows only +# add_subdirectory(winrtdebughelper) ## windows only diff --git a/src/tools/buildoutputparser/CMakeLists.txt b/src/tools/buildoutputparser/CMakeLists.txt new file mode 100644 index 0000000000..ff55e888a3 --- /dev/null +++ b/src/tools/buildoutputparser/CMakeLists.txt @@ -0,0 +1,6 @@ +add_qtc_executable(buildoutputparser + DEPENDS Utils ProjectExplorer QtSupport QmakeProjectManager + SOURCES + main.cpp + outputprocessor.cpp outputprocessor.h +) diff --git a/src/tools/clangbackend/CMakeLists.txt b/src/tools/clangbackend/CMakeLists.txt new file mode 100644 index 0000000000..827b0c6fbe --- /dev/null +++ b/src/tools/clangbackend/CMakeLists.txt @@ -0,0 +1,67 @@ +add_qtc_executable(clangbackend + DEPENDS ClangSupport libclang Sqlite Qt5::Core Qt5::Network + INCLUDES "${CMAKE_CURRENT_SOURCE_DIR}/source" ${CLANG_INCLUDE_DIRS} + SOURCES + ../qtcreatorcrashhandler/crashhandlersetup.cpp ../qtcreatorcrashhandler/crashhandlersetup.h + + clangbackendmain.cpp + source/clangasyncjob.h + source/clangbackend_global.h + source/clangclock.h + source/clangcodecompleteresults.cpp source/clangcodecompleteresults.h + source/clangcodemodelserver.cpp source/clangcodemodelserver.h + source/clangcompletecodejob.cpp source/clangcompletecodejob.h + source/clangdocument.cpp source/clangdocument.h + source/clangdocumentjob.h + source/clangdocumentprocessor.cpp source/clangdocumentprocessor.h + source/clangdocumentprocessors.cpp source/clangdocumentprocessors.h + source/clangdocuments.cpp source/clangdocuments.h + source/clangdocumentsuspenderresumer.cpp source/clangdocumentsuspenderresumer.h + source/clangexceptions.cpp source/clangexceptions.h + source/clangfilepath.cpp source/clangfilepath.h + source/clangfilesystemwatcher.cpp source/clangfilesystemwatcher.h + source/clangfollowsymbol.cpp source/clangfollowsymbol.h + source/clangfollowsymboljob.cpp source/clangfollowsymboljob.h + source/clangiasyncjob.cpp source/clangiasyncjob.h + source/clangjobcontext.cpp source/clangjobcontext.h + source/clangjobqueue.cpp source/clangjobqueue.h + source/clangjobrequest.cpp source/clangjobrequest.h + source/clangjobs.cpp source/clangjobs.h + source/clangparsesupportivetranslationunitjob.cpp source/clangparsesupportivetranslationunitjob.h + source/clangreferencescollector.cpp source/clangreferencescollector.h + source/clangrequestannotationsjob.cpp source/clangrequestannotationsjob.h + source/clangrequestreferencesjob.cpp source/clangrequestreferencesjob.h + source/clangrequesttooltipjob.cpp source/clangrequesttooltipjob.h + source/clangresumedocumentjob.cpp source/clangresumedocumentjob.h + source/clangstring.h + source/clangsupportivetranslationunitinitializer.cpp source/clangsupportivetranslationunitinitializer.h + source/clangsuspenddocumentjob.cpp source/clangsuspenddocumentjob.h + source/clangtooltipinfocollector.cpp source/clangtooltipinfocollector.h + source/clangtranslationunit.cpp source/clangtranslationunit.h + source/clangtranslationunits.cpp source/clangtranslationunits.h + source/clangtranslationunitupdater.cpp source/clangtranslationunitupdater.h + source/clangtype.cpp source/clangtype.h + source/clangunsavedfilesshallowarguments.cpp source/clangunsavedfilesshallowarguments.h + source/clangupdateannotationsjob.cpp source/clangupdateannotationsjob.h + source/clangupdateextraannotationsjob.cpp source/clangupdateextraannotationsjob.h + source/codecompleter.cpp source/codecompleter.h + source/codecompletionchunkconverter.cpp source/codecompletionchunkconverter.h + source/codecompletionsextractor.cpp source/codecompletionsextractor.h + source/commandlinearguments.cpp source/commandlinearguments.h + source/cursor.cpp source/cursor.h + source/diagnostic.cpp source/diagnostic.h + source/diagnosticset.cpp source/diagnosticset.h + source/diagnosticsetiterator.h + source/fixit.cpp source/fixit.h + source/fulltokeninfo.cpp source/fulltokeninfo.h + source/skippedsourceranges.cpp source/skippedsourceranges.h + source/sourcelocation.cpp source/sourcelocation.h + source/sourcerange.cpp source/sourcerange.h + source/token.cpp source/token.h + source/tokeninfo.cpp source/tokeninfo.h + source/tokenprocessor.h + source/tokenprocessoriterator.h + source/unsavedfile.cpp source/unsavedfile.h + source/unsavedfiles.cpp source/unsavedfiles.h + source/utf8positionfromlinecolumn.cpp source/utf8positionfromlinecolumn.h +) diff --git a/src/tools/clangrefactoringbackend/CMakeLists.txt b/src/tools/clangrefactoringbackend/CMakeLists.txt new file mode 100644 index 0000000000..184ff60aeb --- /dev/null +++ b/src/tools/clangrefactoringbackend/CMakeLists.txt @@ -0,0 +1,18 @@ +add_qtc_executable(clangrefactoringbackend + DEPENDS clangbackendipc + INCLUDES source + SOURCES + clangrefactoringbackendmain.cpp + source/clangquery.cpp source/clangquery.h + source/clangrefactoringbackend_global.h + source/clangtool.cpp source/clangtool.h + source/findcursorusr.h + source/findlocationsofusrs.h + source/findusrforcursoraction.cpp source/findusrforcursoraction.h + source/macropreprocessorcallbacks.cpp source/macropreprocessorcallbacks.h + source/refactoringcompilationdatabase.cpp source/refactoringcompilationdatabase.h + source/refactoringserver.cpp source/refactoringserver.h + source/sourcelocationsutils.h + source/symbolfinder.cpp source/symbolfinder.h + source/symbollocationfinderaction.cpp source/symbollocationfinderaction.h +) diff --git a/src/tools/iostool/CMakeLists.txt b/src/tools/iostool/CMakeLists.txt new file mode 100644 index 0000000000..5c0721841a --- /dev/null +++ b/src/tools/iostool/CMakeLists.txt @@ -0,0 +1,7 @@ +add_qtc_executable(iostool + DEPENDS Qt5::Network Qt5::Widgets Qt5::Xml + SOURCES + Info.plist + main.cpp + iosdevicemanager.cpp iosdevicemanager.h +) diff --git a/src/tools/qml2puppet/CMakeLists.txt b/src/tools/qml2puppet/CMakeLists.txt new file mode 100644 index 0000000000..8da2513a9f --- /dev/null +++ b/src/tools/qml2puppet/CMakeLists.txt @@ -0,0 +1,8 @@ +# +# Copyright (C) YourCompany. All rights reserved. +# +# GENERATED BY CPP-DEPENDENCIES - do not edit, your changes will be lost +# If you must edit, remove these two lines to avoid regeneration + + +add_subdirectory(qml2puppet) diff --git a/src/tools/qtcdebugger/CMakeLists.txt b/src/tools/qtcdebugger/CMakeLists.txt new file mode 100644 index 0000000000..22b1ca8e2d --- /dev/null +++ b/src/tools/qtcdebugger/CMakeLists.txt @@ -0,0 +1,18 @@ +# +# Copyright (C) YourCompany. All rights reserved. +# +# GENERATED BY CPP-DEPENDENCIES - do not edit, your changes will be lost +# If you must edit, remove these two lines to avoid regeneration + +project(src.tools.qtcdebugger) + + +add_library(${PROJECT_NAME} STATIC + main.cpp +) + +target_link_libraries(${PROJECT_NAME} + PRIVATE + src +) + diff --git a/src/tools/qtcrashhandler/CMakeLists.txt b/src/tools/qtcrashhandler/CMakeLists.txt new file mode 100644 index 0000000000..7868ec305d --- /dev/null +++ b/src/tools/qtcrashhandler/CMakeLists.txt @@ -0,0 +1,7 @@ +# +# Copyright (C) YourCompany. All rights reserved. +# +# GENERATED BY CPP-DEPENDENCIES - do not edit, your changes will be lost +# If you must edit, remove these two lines to avoid regeneration + + diff --git a/src/tools/qtcreatorcrashhandler/CMakeLists.txt b/src/tools/qtcreatorcrashhandler/CMakeLists.txt new file mode 100644 index 0000000000..74dfd2199f --- /dev/null +++ b/src/tools/qtcreatorcrashhandler/CMakeLists.txt @@ -0,0 +1,11 @@ +if (LINUX) # Debug build only! + add_qtc_executable(qtcreatorcrashhandler + DEPENDS Utils Qt5::Widgets + SOURCES + backtracecollector.cpp backtracecollector.h + crashhandler.cpp crashhandler.h + crashhandlerdialog.cpp crashhandlerdialog.h crashhandlerdialog.ui + main.cpp + utils.cpp utils.h + ) +endif() diff --git a/src/tools/qtcreatorwidgets/CMakeLists.txt b/src/tools/qtcreatorwidgets/CMakeLists.txt new file mode 100644 index 0000000000..80fd46c824 --- /dev/null +++ b/src/tools/qtcreatorwidgets/CMakeLists.txt @@ -0,0 +1,20 @@ +# +# Copyright (C) YourCompany. All rights reserved. +# +# GENERATED BY CPP-DEPENDENCIES - do not edit, your changes will be lost +# If you must edit, remove these two lines to avoid regeneration + +project(src.tools.qtcreatorwidgets) + + +add_library(${PROJECT_NAME} STATIC + customwidget.h + customwidgets.cpp + customwidgets.h +) + +target_link_libraries(${PROJECT_NAME} + PRIVATE + src.libs.utils +) + diff --git a/src/tools/qtpromaker/CMakeLists.txt b/src/tools/qtpromaker/CMakeLists.txt new file mode 100644 index 0000000000..70907c3d7c --- /dev/null +++ b/src/tools/qtpromaker/CMakeLists.txt @@ -0,0 +1,2 @@ +add_qtc_executable(qtpromaker DEPENDS Qt5::Core SOURCES main.cpp) +install(TARGETS qtpromaker DESTINATION "${IDE_LIBEXEC_PATH}") diff --git a/src/tools/screenshotcropper/CMakeLists.txt b/src/tools/screenshotcropper/CMakeLists.txt new file mode 100644 index 0000000000..c33a1311c8 --- /dev/null +++ b/src/tools/screenshotcropper/CMakeLists.txt @@ -0,0 +1,22 @@ +# +# Copyright (C) YourCompany. All rights reserved. +# +# GENERATED BY CPP-DEPENDENCIES - do not edit, your changes will be lost +# If you must edit, remove these two lines to avoid regeneration + +project(src.tools.screenshotcropper) + + +add_library(${PROJECT_NAME} STATIC + cropimageview.cpp + cropimageview.h + main.cpp + screenshotcropperwindow.cpp + screenshotcropperwindow.h +) + +target_link_libraries(${PROJECT_NAME} + PRIVATE + src.plugins.qtsupport +) + diff --git a/src/tools/sdktool/CMakeLists.txt b/src/tools/sdktool/CMakeLists.txt new file mode 100644 index 0000000000..3be2fb4f7d --- /dev/null +++ b/src/tools/sdktool/CMakeLists.txt @@ -0,0 +1,28 @@ +# TODO: Do not depend on Utils! Include relevant files instead. + +add_qtc_executable(sdktool + DEFINES DATA_PATH=\"${IDE_DATA_PATH}\" + DEPENDS Qt5::Core Utils app_version + SOURCES + addabiflavor.cpp addabiflavor.h + addcmakeoperation.cpp addcmakeoperation.h + adddebuggeroperation.cpp adddebuggeroperation.h + adddeviceoperation.cpp adddeviceoperation.h + addkeysoperation.cpp addkeysoperation.h + addkitoperation.cpp addkitoperation.h + addqtoperation.cpp addqtoperation.h + addtoolchainoperation.cpp addtoolchainoperation.h + findkeyoperation.cpp findkeyoperation.h + findvalueoperation.cpp findvalueoperation.h + getoperation.cpp getoperation.h + main.cpp + operation.cpp operation.h + rmcmakeoperation.cpp rmcmakeoperation.h + rmdebuggeroperation.cpp rmdebuggeroperation.h + rmdeviceoperation.cpp rmdeviceoperation.h + rmkeysoperation.cpp rmkeysoperation.h + rmkitoperation.cpp rmkitoperation.h + rmqtoperation.cpp rmqtoperation.h + rmtoolchainoperation.cpp rmtoolchainoperation.h + settings.cpp settings.h +) diff --git a/src/tools/valgrindfake/CMakeLists.txt b/src/tools/valgrindfake/CMakeLists.txt new file mode 100644 index 0000000000..93944f3913 --- /dev/null +++ b/src/tools/valgrindfake/CMakeLists.txt @@ -0,0 +1,5 @@ +add_qtc_executable(valgrind-fake + DEPENDS Qt5::Network Qt5::Xml + SOURCES main.cpp outputgenerator.cpp outputgenerator.h +) + diff --git a/src/tools/wininterrupt/CMakeLists.txt b/src/tools/wininterrupt/CMakeLists.txt new file mode 100644 index 0000000000..704b417ff5 --- /dev/null +++ b/src/tools/wininterrupt/CMakeLists.txt @@ -0,0 +1,12 @@ +# +# Copyright (C) YourCompany. All rights reserved. +# +# GENERATED BY CPP-DEPENDENCIES - do not edit, your changes will be lost +# If you must edit, remove these two lines to avoid regeneration + +project(src.tools.wininterrupt) + + +add_library(${PROJECT_NAME} INTERFACE +) + diff --git a/src/tools/winrtdebughelper/CMakeLists.txt b/src/tools/winrtdebughelper/CMakeLists.txt new file mode 100644 index 0000000000..0b19c9310c --- /dev/null +++ b/src/tools/winrtdebughelper/CMakeLists.txt @@ -0,0 +1,13 @@ +# +# Copyright (C) YourCompany. All rights reserved. +# +# GENERATED BY CPP-DEPENDENCIES - do not edit, your changes will be lost +# If you must edit, remove these two lines to avoid regeneration + +project(src.tools.winrtdebughelper) + + +add_library(${PROJECT_NAME} STATIC + winrtdebughelper.cpp +) + |