summaryrefslogtreecommitdiffstats
path: root/qmake/generators/mac/pbuilder_pbx.h
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2019-08-26 15:21:03 +0200
committerJörg Bornemann <joerg.bornemann@qt.io>2019-08-31 07:56:54 +0000
commit7b82d27429cde931114776f1a26f4c3850c8bb72 (patch)
treef2ac22003a6d54b2401e05c8b3c5ff779128f31d /qmake/generators/mac/pbuilder_pbx.h
parent1232205e32464d90e871f39eb1e14fcf9b78a163 (diff)
Fix library suffix replacement for xcode projects
In xcode projects we replace the _debug part of referenced libraries with the variable $(QT_LIBRARY_SUFFIX). This only worked for libraries passed with -l. Make the library suffix replacement work for libraries passed as absolute paths too. Fixes: QTBUG-77804 Change-Id: Iac2dbd2f67c3fa0f415ac43cbab5a906657164e5 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'qmake/generators/mac/pbuilder_pbx.h')
-rw-r--r--qmake/generators/mac/pbuilder_pbx.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/qmake/generators/mac/pbuilder_pbx.h b/qmake/generators/mac/pbuilder_pbx.h
index f15c814cb4..a7b21a0dab 100644
--- a/qmake/generators/mac/pbuilder_pbx.h
+++ b/qmake/generators/mac/pbuilder_pbx.h
@@ -41,6 +41,8 @@ class ProjectBuilderMakefileGenerator : public UnixMakefileGenerator
bool writeSubDirs(QTextStream &);
bool writeMakeParts(QTextStream &);
bool writeMakefile(QTextStream &) override;
+ bool replaceLibrarySuffix(const QString &lib_file, const ProString &opt, QString &name,
+ QString &library);
QString pbxbuild();
QHash<QString, QString> keys;