diff options
author | Eike Ziller <eike.ziller@qt.io> | 2019-02-08 12:44:49 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2019-02-08 12:44:49 +0100 |
commit | d07d75a08af17305d317b363a7d3044ebeb54a2c (patch) | |
tree | a86b3526c7b77794e0fd14f231337558e7dd2f0e /src/plugins/autotoolsprojectmanager/makefileparser.cpp | |
parent | dbf7c9f658ce9a0984bd4704b73f02803b062eb2 (diff) | |
parent | e27744e966d7c689b69f515b60972b0a17acc4ed (diff) | |
download | qt-creator-d07d75a08af17305d317b363a7d3044ebeb54a2c.tar.gz |
Merge remote-tracking branch 'origin/4.8' into 4.9
Conflicts:
qtcreator.pri
Change-Id: I84dc8b9c7a029f2f40c4fa3ef78eef338247a6c0
Diffstat (limited to 'src/plugins/autotoolsprojectmanager/makefileparser.cpp')
-rw-r--r-- | src/plugins/autotoolsprojectmanager/makefileparser.cpp | 23 |
1 files changed, 19 insertions, 4 deletions
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; } |