forked from qt-creator/qt-creator
qmljs: add explicit -relocatable flag to qmlplugindumper and use it
This will allow changing the default to nonrelocatable. Change-Id: I80746a3e70f94040a407cc25cec9ad6fac8b6fec Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
@@ -135,9 +135,11 @@ ModelManagerInterface::ProjectInfo QmlJSTools::defaultProjectInfoForProject(
|
||||
toolChain,
|
||||
preferDebugDump, &projectInfo.qmlDumpPath,
|
||||
&projectInfo.qmlDumpEnvironment);
|
||||
projectInfo.qmlDumpHasRelocatableFlag = qtVersion->hasQmlDumpWithRelocatableFlag();
|
||||
} else {
|
||||
projectInfo.qmlDumpPath.clear();
|
||||
projectInfo.qmlDumpEnvironment.clear();
|
||||
projectInfo.qmlDumpHasRelocatableFlag = true;
|
||||
}
|
||||
setupProjectInfoQmlBundles(projectInfo);
|
||||
return projectInfo;
|
||||
|
||||
@@ -433,6 +433,8 @@ void PluginDumper::dump(const Plugin &plugin)
|
||||
if (ComponentVersion(plugin.importVersion).isValid())
|
||||
args << plugin.importVersion;
|
||||
} else {
|
||||
if (info.qmlDumpHasRelocatableFlag)
|
||||
args << QLatin1String("-relocatable");
|
||||
args << plugin.importUri;
|
||||
args << plugin.importVersion;
|
||||
args << plugin.importPath;
|
||||
|
||||
Reference in New Issue
Block a user