Nim: Introduce a NimBuildSystem

Change-Id: Ib9bdf52939c88f01fe861308d0c08b5c69efa624
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Tobias Hunger
2019-08-19 12:31:25 +02:00
parent fb21b78444
commit 67349baded
12 changed files with 304 additions and 162 deletions

View File

@@ -25,9 +25,9 @@
#include "nimcompilerbuildstep.h"
#include "nimbuildconfiguration.h"
#include "nimconstants.h"
#include "nimbuildsystem.h"
#include "nimcompilerbuildstepconfigwidget.h"
#include "nimproject.h"
#include "nimconstants.h"
#include "nimtoolchain.h"
#include <projectexplorer/buildconfiguration.h>
@@ -271,7 +271,8 @@ void NimCompilerBuildStep::updateTargetNimFile()
{
if (!m_targetNimFile.isEmpty())
return;
const Utils::FilePathList nimFiles = static_cast<NimProject *>(project())->nimFiles();
const Utils::FilePathList nimFiles = static_cast<NimBuildSystem *>(project()->buildSystem())
->nimFiles();
if (!nimFiles.isEmpty())
setTargetNimFile(nimFiles.at(0));
}