forked from qt-creator/qt-creator
Nim: Add support for the nimble build system
Change-Id: Id3bd977f14bc9d2ec3fa92e162238bbff0513de1 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -28,12 +28,17 @@
|
||||
#include "nimconstants.h"
|
||||
#include "editor/nimeditorfactory.h"
|
||||
#include "editor/nimhighlighter.h"
|
||||
#include "project/nimblerunconfiguration.h"
|
||||
#include "project/nimblebuildconfiguration.h"
|
||||
#include "project/nimbuildconfiguration.h"
|
||||
#include "project/nimcompilerbuildstep.h"
|
||||
#include "project/nimcompilercleanstep.h"
|
||||
#include "project/nimproject.h"
|
||||
#include "project/nimbleproject.h"
|
||||
#include "project/nimrunconfiguration.h"
|
||||
#include "project/nimtoolchainfactory.h"
|
||||
#include "project/nimblebuildstep.h"
|
||||
#include "project/nimbletaskstep.h"
|
||||
#include "settings/nimcodestylepreferencesfactory.h"
|
||||
#include "settings/nimcodestylesettingspage.h"
|
||||
#include "settings/nimtoolssettingspage.h"
|
||||
@@ -66,12 +71,21 @@ public:
|
||||
NimSettings settings;
|
||||
NimEditorFactory editorFactory;
|
||||
NimBuildConfigurationFactory buildConfigFactory;
|
||||
NimRunConfigurationFactory runConfigFactory;
|
||||
RunWorkerFactory runWorkerFactory{
|
||||
NimbleBuildConfigurationFactory nimbleBuildConfigFactory;
|
||||
NimRunConfigurationFactory nimRunConfigFactory;
|
||||
NimbleRunConfigurationFactory nimbleRunConfigFactory;
|
||||
RunWorkerFactory nimRunWorkerFactory {
|
||||
RunWorkerFactory::make<SimpleTargetRunner>(),
|
||||
{ProjectExplorer::Constants::NORMAL_RUN_MODE},
|
||||
{runConfigFactory.id()}
|
||||
{nimRunConfigFactory.id()}
|
||||
};
|
||||
RunWorkerFactory nimbleRunWorkerFactory {
|
||||
RunWorkerFactory::make<SimpleTargetRunner>(),
|
||||
{ProjectExplorer::Constants::NORMAL_RUN_MODE},
|
||||
{nimbleRunConfigFactory.id()}
|
||||
};
|
||||
NimbleBuildStepFactory nimbleBuildStepFactory;
|
||||
NimbleTaskStepFactory nimbleTaskStepFactory;
|
||||
NimCompilerBuildStepFactory buildStepFactory;
|
||||
NimCompilerCleanStepFactory cleanStepFactory;
|
||||
NimCodeStyleSettingsPage codeStyleSettingsPage;
|
||||
@@ -99,6 +113,7 @@ bool NimPlugin::initialize(const QStringList &arguments, QString *errorMessage)
|
||||
&NimEditorFactory::decorateEditor);
|
||||
|
||||
ProjectManager::registerProjectType<NimProject>(Constants::C_NIM_PROJECT_MIMETYPE);
|
||||
ProjectManager::registerProjectType<NimbleProject>(Constants::C_NIMBLE_MIMETYPE);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -112,6 +127,7 @@ void NimPlugin::extensionsInitialized()
|
||||
if (!icon.isNull()) {
|
||||
Core::FileIconProvider::registerIconOverlayForMimeType(icon, Constants::C_NIM_MIMETYPE);
|
||||
Core::FileIconProvider::registerIconOverlayForMimeType(icon, Constants::C_NIM_SCRIPT_MIMETYPE);
|
||||
Core::FileIconProvider::registerIconOverlayForMimeType(icon, Constants::C_NIMBLE_MIMETYPE);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user