summaryrefslogtreecommitdiffstats
path: root/qmake/generators
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2011-10-14 21:35:55 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2011-10-14 21:35:55 (GMT)
commitbb47d070b0ad0cccd3a60b6344292f97164c9231 (patch)
treeea99a9190065b35af5446dfadad497f65f686ab0 /qmake/generators
parent94d0bed992aad8e8a6edda129d4a75f9b4ffa163 (diff)
parentd2c7193107a170e2884db52272f4d0ee0da62856 (diff)
downloadQt-bb47d070b0ad0cccd3a60b6344292f97164c9231.zip
Qt-bb47d070b0ad0cccd3a60b6344292f97164c9231.tar.gz
Qt-bb47d070b0ad0cccd3a60b6344292f97164c9231.tar.bz2
Merge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into master-integration
* 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1: support the obj-c #import statement in the dependency generator
Diffstat (limited to 'qmake/generators')
-rw-r--r--qmake/generators/makefiledeps.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qmake/generators/makefiledeps.cpp b/qmake/generators/makefiledeps.cpp
index f9cbed1..4f4c1ff 100644
--- a/qmake/generators/makefiledeps.cpp
+++ b/qmake/generators/makefiledeps.cpp
@@ -568,7 +568,8 @@ bool QMakeSourceFileInfo::findDeps(SourceFile *file)
keyword_len++;
}
- if(keyword_len == 7 && !strncmp(keyword, "include", keyword_len)) {
+ if((keyword_len == 7 && !strncmp(keyword, "include", 7)) // C & Obj-C
+ || (keyword_len == 6 && !strncmp(keyword, "import", 6))) { // Obj-C
char term = *(buffer + x);
if(term == '<') {
try_local = false;