syncqt: Generate the deprecated header in the framework directory too
Generate the missing deprecated header in the framework directory for
the cross-module deprecation case.
Amends 7e84a04563
Pick-to: 6.5 6.6
Change-Id: Ibb2d262e41c6de7dfb34c39cabd6b19c43aa9636
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
bb10
parent
cab5ede6a3
commit
09c46d63af
|
|
@ -1634,8 +1634,16 @@ public:
|
|||
writeIfDifferent(outputDir + '/' + headerName, buffer.str());
|
||||
|
||||
// Add header file to staging installation directory for cross-module deprecation case.
|
||||
if (isCrossModuleDeprecation)
|
||||
writeIfDifferent(outputDir + "/.syncqt_staging/" + headerName, buffer.str());
|
||||
if (isCrossModuleDeprecation) {
|
||||
const std::string stagingDir = outputDir + "/.syncqt_staging/";
|
||||
writeIfDifferent(stagingDir + headerName, buffer.str());
|
||||
if (m_commandLineArgs->isFramework()) {
|
||||
const std::string frameworkStagingDir = stagingDir + moduleName
|
||||
+ ".framework/Versions/A/Headers/" QT_VERSION_STR "/"
|
||||
+ moduleName.substr(2) + '/';
|
||||
writeIfDifferent(frameworkStagingDir + headerName, buffer.str());
|
||||
}
|
||||
}
|
||||
m_producedHeaders.insert(headerName);
|
||||
}
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Reference in New Issue