From 76beb4bbb26526dfae277fed4077c5538ee36b32 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Fri, 14 Oct 2011 12:55:28 +0200 Subject: [PATCH] support the obj-c #import statement in the dependency generator Task-number: QTBUG-21965 Reviewed-by: joerg (cherry picked from commit d2c7193107a170e2884db52272f4d0ee0da62856) Change-Id: I8a5eb47bfd2c2ee9d064f054565915e64e4902f8 Reviewed-by: Oswald Buddenhagen --- qmake/generators/makefiledeps.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qmake/generators/makefiledeps.cpp b/qmake/generators/makefiledeps.cpp index f9cbed1465..4f4c1ff57e 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;