aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2019-02-08 12:44:49 +0100
committerEike Ziller <eike.ziller@qt.io>2019-02-08 12:44:49 +0100
commitd07d75a08af17305d317b363a7d3044ebeb54a2c (patch)
treea86b3526c7b77794e0fd14f231337558e7dd2f0e /src
parentdbf7c9f658ce9a0984bd4704b73f02803b062eb2 (diff)
parente27744e966d7c689b69f515b60972b0a17acc4ed (diff)
Merge remote-tracking branch 'origin/4.8' into 4.9
Conflicts: qtcreator.pri Change-Id: I84dc8b9c7a029f2f40c4fa3ef78eef338247a6c0
Diffstat (limited to 'src')
-rw-r--r--src/app/app-Info.plist2
-rw-r--r--src/plugins/autotoolsprojectmanager/makefileparser.cpp23
2 files changed, 21 insertions, 4 deletions
diff --git a/src/app/app-Info.plist b/src/app/app-Info.plist
index 5d7142a863..5893f062a8 100644
--- a/src/app/app-Info.plist
+++ b/src/app/app-Info.plist
@@ -274,3 +274,5 @@
<string>A user application wants to access the photo library.</string>
<key>NSRemindersUsageDescription</key>
<string>A user application wants to access the reminders.</string>
+</dict>
+</plist>
diff --git a/src/plugins/autotoolsprojectmanager/makefileparser.cpp b/src/plugins/autotoolsprojectmanager/makefileparser.cpp
index 4587f7bacf..39596a724e 100644
--- a/src/plugins/autotoolsprojectmanager/makefileparser.cpp
+++ b/src/plugins/autotoolsprojectmanager/makefileparser.cpp
@@ -291,12 +291,27 @@ void MakefileParser::parseSubDirs()
foreach (const QString& source, parser.sources())
m_sources.append(subDir + slash + source);
- // Duplicates might be possible in combination with several
- // "..._SUBDIRS" targets
- m_makefiles.removeDuplicates();
- m_sources.removeDuplicates();
+ // Append the include paths of the sub directory
+ m_includePaths.append(parser.includePaths());
+
+ // Append the flags of the sub directory
+ m_cflags.append(parser.cflags());
+ m_cxxflags.append(parser.cxxflags());
+
+ // Append the macros of the sub directory
+ foreach (const auto& m, parser.macros())
+ {
+ if (!m_macros.contains(m))
+ m_macros.append(m);
+ }
+
}
+ // Duplicates might be possible in combination with several
+ // "..._SUBDIRS" targets
+ m_makefiles.removeDuplicates();
+ m_sources.removeDuplicates();
+
if (subDirs.isEmpty())
m_success = false;
}