Skip to content

Commit

Permalink
qtcreator: Eliminated a lot of uncessary libraries.
Browse files Browse the repository at this point in the history
  • Loading branch information
kwagyeman committed Nov 22, 2024
1 parent 5793b31 commit d6dc50b
Show file tree
Hide file tree
Showing 9 changed files with 53 additions and 31 deletions.
4 changes: 3 additions & 1 deletion src/libs/3rdparty/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
add_subdirectory(cplusplus)
# OPENMV-DIFF #
# add_subdirectory(cplusplus)
# OPENMV-DIFF #
add_subdirectory(syntax-highlighting)
add_subdirectory(libvterm)
add_subdirectory(libptyqt)
Expand Down
10 changes: 5 additions & 5 deletions src/libs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@ add_subdirectory(3rdparty)
# add_subdirectory(advanceddockingsystem)
# OPENMV-DIFF #
add_subdirectory(aggregation)
add_subdirectory(cplusplus)
# OPENMV-DIFF #
# add_subdirectory(cplusplus)
# OPENMV-DIFF #
add_subdirectory(extensionsystem)
# OPENMV-DIFF #
# add_subdirectory(glsl)
# OPENMV-DIFF #
add_subdirectory(languageserverprotocol)
add_subdirectory(languageutils)
# OPENMV-DIFF #
# add_subdirectory(languageutils)
# add_subdirectory(modelinglib)
# add_subdirectory(qmldebug)
# add_subdirectory(qmleditorwidgets)
# OPENMV-DIFF #
add_subdirectory(qmljs)
# OPENMV-DIFF #
# add_subdirectory(qmljs)
# add_subdirectory(qtcreatorcdbext)
# OPENMV-DIFF #
add_subdirectory(utils)
Expand Down
8 changes: 2 additions & 6 deletions src/plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ add_subdirectory(projectexplorer)
# add_subdirectory(cppeditor)
# add_subdirectory(haskell)
# add_subdirectory(help)
# OPENMV-DIFF #
add_subdirectory(resourceeditor)
# OPENMV-DIFF #
# add_subdirectory(resourceeditor)
# add_subdirectory(nim)
# add_subdirectory(conan)
# add_subdirectory(saferenderer)
Expand All @@ -58,9 +56,7 @@ add_subdirectory(tabbededitor)
# add_subdirectory(classview)
# add_subdirectory(glsleditor)
# add_subdirectory(modeleditor)
# OPENMV-DIFF #
add_subdirectory(qtsupport)
# OPENMV-DIFF #
# add_subdirectory(qtsupport)
# add_subdirectory(todo)
# add_subdirectory(vcsbase)
# OPENMV-DIFF #
Expand Down
20 changes: 14 additions & 6 deletions src/plugins/python/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
add_qtc_plugin(Python
DEPENDS QmlJS
PLUGIN_DEPENDS Core LanguageClient ProjectExplorer TextEditor QtSupport
# OPENMV-DIFF #
# DEPENDS QmlJS
# PLUGIN_DEPENDS Core LanguageClient ProjectExplorer TextEditor QtSupport
# OPENMV-DIFF #
PLUGIN_DEPENDS Core LanguageClient ProjectExplorer TextEditor
# OPENMV-DIFF #
SOURCES
pipsupport.cpp pipsupport.h
pyside.cpp pyside.h
pythonbuildconfiguration.cpp pythonbuildconfiguration.h
pysideuicextracompiler.cpp pysideuicextracompiler.h
# OPENMV-DIFF #
# pyside.cpp pyside.h
# pythonbuildconfiguration.cpp pythonbuildconfiguration.h
# pysideuicextracompiler.cpp pysideuicextracompiler.h
# OPENMV-DIFF #
python.qrc
pythonbuildsystem.cpp pythonbuildsystem.h
# OPENMV-DIFF #
# pythonbuildsystem.cpp pythonbuildsystem.h
# OPENMV-DIFF #
pythonconstants.h
pythoneditor.cpp pythoneditor.h
pythonformattoken.h
Expand Down
16 changes: 11 additions & 5 deletions src/plugins/python/pythoneditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@

#include "pythoneditor.h"

#include "pyside.h"
#include "pythonbuildconfiguration.h"
// OPENMV-DIFF //
// #include "pyside.h"
// #include "pythonbuildconfiguration.h"
// OPENMV-DIFF //
#include "pythonconstants.h"
#include "pythonhighlighter.h"
#include "pythonindenter.h"
Expand Down Expand Up @@ -175,8 +177,10 @@ void PythonEditorWidget::updateInterpretersSelector()
&& target->activeBuildConfiguration() == buildConfiguration) {
action->setChecked(true);
setButtonText(name);
if (auto pbc = qobject_cast<PythonBuildConfiguration *>(buildConfiguration))
m_interpreters->setToolTip(pbc->python().toUserOutput());
// OPENMV-DIFF //
// if (auto pbc = qobject_cast<PythonBuildConfiguration *>(buildConfiguration))
// m_interpreters->setToolTip(pbc->python().toUserOutput());
// OPENMV-DIFF //
}
connect(action,
&QAction::triggered,
Expand Down Expand Up @@ -311,7 +315,9 @@ void PythonDocument::updateCurrentPython()
void PythonDocument::updatePython(const FilePath &python)
{
openDocumentWithPython(python, this);
PySideInstaller::instance().checkPySideInstallation(python, this);
// OPENMV-DIFF //
// PySideInstaller::instance().checkPySideInstallation(python, this);
// OPENMV-DIFF //
emit pythonUpdated(python);
}

Expand Down
6 changes: 4 additions & 2 deletions src/plugins/python/pythonplugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,10 @@ class PythonPlugin final : public ExtensionSystem::IPlugin

setupPipSupport(this);

KitManager::setIrrelevantAspects(KitManager::irrelevantAspects()
+ QSet<Id>{PythonKitAspect::id()});
// OPENMV-DIFF //
// KitManager::setIrrelevantAspects(KitManager::irrelevantAspects()
// + QSet<Id>{PythonKitAspect::id()});
// OPENMV-DIFF //

ProjectManager::registerProjectType<PythonProject>(Constants::C_PY_PROJECT_MIME_TYPE);
ProjectManager::registerProjectType<PythonProject>(Constants::C_PY_PROJECT_MIME_TYPE_LEGACY);
Expand Down
8 changes: 6 additions & 2 deletions src/plugins/python/pythonproject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@

#include "pythonproject.h"

#include "pythonbuildsystem.h"
// OPENMV-DIFF //
// #include "pythonbuildsystem.h"
// OPENMV-DIFF //
#include "pythonconstants.h"
#include "pythonkitaspect.h"
#include "pythontr.h"
Expand All @@ -26,7 +28,9 @@ PythonProject::PythonProject(const FilePath &fileName)
setProjectLanguages(Context(ProjectExplorer::Constants::PYTHON_LANGUAGE_ID));
setDisplayName(fileName.completeBaseName());

setBuildSystemCreator([](Target *t) { return new PythonBuildSystem(t); });
// OPENMV-DIFF //
// setBuildSystemCreator([](Target *t) { return new PythonBuildSystem(t); });
// OPENMV-DIFF //
}

Tasks PythonProject::projectIssues(const Kit *k) const
Expand Down
10 changes: 7 additions & 3 deletions src/plugins/python/pythonutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@

#include "pythonutils.h"

#include "pythonbuildconfiguration.h"
// OPENMV-DIFF //
// #include "pythonbuildconfiguration.h"
// OPENMV-DIFF //
#include "pythonconstants.h"
#include "pythonkitaspect.h"
#include "pythonproject.h"
Expand Down Expand Up @@ -45,8 +47,10 @@ FilePath detectPython(const FilePath &documentPath)

if (project && project->mimeType() == Constants::C_PY_PROJECT_MIME_TYPE) {
if (const Target *target = project->activeTarget()) {
if (auto bc = qobject_cast<PythonBuildConfiguration *>(target->activeBuildConfiguration()))
return bc->python();
// OPENMV-DIFF //
// if (auto bc = qobject_cast<PythonBuildConfiguration *>(target->activeBuildConfiguration()))
// return bc->python();
// OPENMV-DIFF //
if (const std::optional<Interpreter> python = PythonKitAspect::python(target->kit()))
return python->command;
}
Expand Down
2 changes: 1 addition & 1 deletion src/shared/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# OPENMV-DIFF #
# add_subdirectory(designerintegrationv2)
# add_subdirectory(proparser)
# OPENMV-DIFF #
add_subdirectory(proparser)
add_subdirectory(qtsingleapplication)
# OPENMV-DIFF #
# add_subdirectory(help)
Expand Down

0 comments on commit d6dc50b

Please sign in to comment.