diff options
authorTor Arne Vestbø <>2013-09-13 18:36:13 +0200
committerThe Qt Project <>2013-09-13 21:43:38 +0200
commit3e3297242a67e44559b32d60e0b341e7f8b5d9e4 (patch)
parente19e1aae6990e46c766c5f7af02dfb5ffbf7c169 (diff)
Xcode: Resolve extra compiler (e.g qrc) dependencies
The Xcode generator relies on the generic makefile generator for extra compilers such as qrc and moc, by generating makefiles that are then executed as separate build steps in the Xcode build. These makefiles are generated by entering a special mode in the Xcode generator, in which case we _do_ want to resolve dependencies, so that e.g. the files referenced inside a qrc file are added as dependencies to the makefile rule that generates the qrc-cpp file. Change-Id: I96bdcb165e9774a6328ae1980986fa2c6b00c6d9 Reviewed-by: Andy Shaw <>
1 files changed, 1 insertions, 1 deletions
diff --git a/qmake/generators/mac/pbuilder_pbx.h b/qmake/generators/mac/pbuilder_pbx.h
index 255dd43348..aef373b549 100644
--- a/qmake/generators/mac/pbuilder_pbx.h
+++ b/qmake/generators/mac/pbuilder_pbx.h
@@ -83,7 +83,7 @@ protected:
virtual QString escapeFilePath(const QString &path) const;
ProString escapeFilePath(const ProString &path) const { return MakefileGenerator::escapeFilePath(path); }
bool doPrecompiledHeaders() const { return false; }
- virtual bool doDepends() const { return false; } //never necesary
+ virtual bool doDepends() const { return writingUnixMakefileGenerator && UnixMakefileGenerator::doDepends(); }
inline ProjectBuilderMakefileGenerator::~ProjectBuilderMakefileGenerator()