aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/qbs/commandlinefrontend.cpp
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@qt.io>2016-07-12 16:29:41 -0700
committerJake Petroules <jake.petroules@qt.io>2016-07-26 16:18:20 +0000
commit5f41d70c4f1506e72800a4460d4acace38189b00 (patch)
tree28c9a51fe396427b514c1ab159d5c9ab8a9fcf2f /src/app/qbs/commandlinefrontend.cpp
parentf63abdc82543e3390bbf425714cc544ae927db80 (diff)
Forward parsed properties from the qbs CLI frontend to generators
This allows generated IDE project files to call back to qbs using the same set of property bindings as the build was originally invoked with. Change-Id: I682e015f3e46e6e654cf082c8c3515c2b1c78424 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/app/qbs/commandlinefrontend.cpp')
-rw-r--r--src/app/qbs/commandlinefrontend.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/app/qbs/commandlinefrontend.cpp b/src/app/qbs/commandlinefrontend.cpp
index 4c84ed77f..6044f26ac 100644
--- a/src/app/qbs/commandlinefrontend.cpp
+++ b/src/app/qbs/commandlinefrontend.cpp
@@ -498,7 +498,9 @@ void CommandLineFrontend::generate()
generator->clearProjects();
generator->addProjects(m_projects);
- generator->generate(m_parser.installOptions(m_projects.first().profile()));
+ generator->clearBuildConfigurations();
+ generator->addBuildConfigurations(m_parser.buildConfigurations());
+ generator->generate(m_parser.installOptions(QString()));
}
int CommandLineFrontend::runTarget()