qt5base-lts/qmake
Maximilian Blochberger bbad6440ae Ensure proper format of Info.plist
The Information Property List (Info.plist) is a property list that
contains information about macOS and iOS application and framework
bundles. There are multiple supported formats, those property lists can
be stored in, most notably XML and binary.

Problem
If the Info.plist file is edited with an external editor, such as Xcode,
it is possible that it is stored in binary format. A Makefile generated
by the qmake tool contains a call to sed, which works on text but not
binary files. Consequently, this call would fail.

Solution
Since Mac OS X 10.2, the plutil tool is available. It can be used to
convert the property lists into a specific format. The plutil tool is
now used to convert the plist to XML, so that the sed invocation
succeeds.

[ChangeLog][qmake] Fixed handling binary Info.plist files in generated
Makefiles by always converting them to XML before substituting
placeholders.

Fixes: QTBUG-45357
Change-Id: I066039301c391a5034710458500a096f09e5ca24
Pick-to: 6.2 6.4
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2022-10-19 12:06:09 +02:00
..
doc Doc: Clarify qmake's c++latest CONFIG value 2022-06-29 18:32:05 +02:00
generators Ensure proper format of Info.plist 2022-10-19 12:06:09 +02:00
library Port from qAsConst() to std::as_const() 2022-10-11 23:17:18 +02:00
cachekeys.h Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
CMakeLists.txt Replace the syncqt.pl script with syncqt tool 2022-09-27 13:12:11 +02:00
main.cpp Port from qAsConst() to std::as_const() 2022-10-11 23:17:18 +02:00
meta.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
meta.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
option.cpp Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
option.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
project.cpp Port from qAsConst() to std::as_const() 2022-10-11 23:17:18 +02:00
project.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
property.cpp Port from qAsConst() to std::as_const() 2022-10-11 23:17:18 +02:00
property.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
propertyprinter.cpp Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
propertyprinter.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qmake_pch.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qmakelibraryinfo.cpp Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
qmakelibraryinfo.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00