aboutsummaryrefslogtreecommitdiffstats
path: root/src/app
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@qt.io>2016-08-11 18:16:53 -0700
committerJake Petroules <jake.petroules@qt.io>2016-08-22 15:12:35 +0000
commit323a52542f4e1a670f838082e1d88f0fdbf155da (patch)
treefbaffc53986b182690272ccb6fa895a5afa7220d /src/app
parentb44df152e922cead8510ccc6f94e0c35db284012 (diff)
Flesh out generators API
This puts in place some of the infrastructure needed by subsequent commits that will introduce the Visual Studio and Xcode generators. Change-Id: Ic8f127acef5c26e26edb7083ebd423848d81a6ff Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/app')
-rw-r--r--src/app/qbs/commandlinefrontend.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/app/qbs/commandlinefrontend.cpp b/src/app/qbs/commandlinefrontend.cpp
index 56b8c1aac..5e935e6bd 100644
--- a/src/app/qbs/commandlinefrontend.cpp
+++ b/src/app/qbs/commandlinefrontend.cpp
@@ -497,11 +497,9 @@ void CommandLineFrontend::generate()
.arg(generatorNames));
}
- generator->clearProjects();
- generator->addProjects(m_projects);
- generator->clearBuildConfigurations();
- generator->addBuildConfigurations(m_parser.buildConfigurations());
- generator->generate(m_parser.installOptions(QString()));
+ generator->generate(m_projects,
+ m_parser.buildConfigurations(),
+ m_parser.installOptions(QString()));
}
int CommandLineFrontend::runTarget()