qmake: fix QMAKE_BUNDLE_DATA for (some) generated files
the source file must not be written with an absolute path to the makefile, as this won't match the name of the target which generates it, thus leading to an unsatisfied dependency. this is the proper fix for QTBUG-60413 and a bunch of others. amends historical f173e217cd. Change-Id: I28140351c4b4759de35e60daf63bc54b82d104ec Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
9917eb2ec6
commit
1a71fe0306
@ -943,7 +943,9 @@ UnixMakefileGenerator::writeMakeParts(QTextStream &t)
|
||||
QString fn = files.at(file).toQString();
|
||||
QString src = fileFixify(fn, FileFixifyAbsolute);
|
||||
if (!QFile::exists(src))
|
||||
src = fn;
|
||||
src = fileFixify(fn, FileFixifyFromOutdir);
|
||||
else
|
||||
src = fileFixify(fn);
|
||||
QString dst = path + Option::dir_sep + fileInfo(fn).fileName();
|
||||
bundledFiles << dst;
|
||||
alldeps << dst;
|
||||
|
Loading…
Reference in New Issue
Block a user