@@ -1426,6 +1426,11 @@ QList<QtDependency> findFilesRecursively(const Options &options, const QFileInfo
1426
1426
1427
1427
QList<QtDependency> findFilesRecursively (const Options &options, const QString &fileName)
1428
1428
{
1429
+ for (const auto &prefix : options.extraPrefixDirs ) {
1430
+ QFileInfo info (prefix + QLatin1Char (' /' ) + fileName);
1431
+ if (info.exists ())
1432
+ return findFilesRecursively (options, info, prefix + QLatin1Char (' /' ));
1433
+ }
1429
1434
QFileInfo info (options.qtInstallDirectory + QLatin1Char (' /' ) + fileName);
1430
1435
return findFilesRecursively (options, info, options.qtInstallDirectory + QLatin1Char (' /' ));
1431
1436
}
@@ -1435,7 +1440,7 @@ bool readAndroidDependencyXml(Options *options,
1435
1440
QSet<QString> *usedDependencies,
1436
1441
QSet<QString> *remainingDependencies)
1437
1442
{
1438
- QString androidDependencyName = options-> qtInstallDirectory + QString::fromLatin1 (" /lib/%1-android-dependencies.xml" ).arg (moduleName);
1443
+ QString androidDependencyName = absoluteFilePath ( options, QString::fromLatin1 (" /lib/%1-android-dependencies.xml" ).arg (moduleName) );
1439
1444
1440
1445
QFile androidDependencyFile (androidDependencyName);
1441
1446
if (androidDependencyFile.exists ()) {
@@ -1480,7 +1485,7 @@ bool readAndroidDependencyXml(Options *options,
1480
1485
int bundling = reader.attributes ().value (QLatin1String (" bundling" )).toInt ();
1481
1486
QString fileName = reader.attributes ().value (QLatin1String (" file" )).toString ();
1482
1487
if (bundling == (options->deploymentMechanism == Options::Bundled)) {
1483
- QtDependency dependency (fileName, options-> qtInstallDirectory + QLatin1Char ( ' / ' ) + fileName);
1488
+ QtDependency dependency (fileName, absoluteFilePath ( options, fileName) );
1484
1489
if (!usedDependencies->contains (dependency.absolutePath )) {
1485
1490
options->qtDependencies .append (dependency);
1486
1491
usedDependencies->insert (dependency.absolutePath );
0 commit comments