forked from qt-creator/qt-creator
CMakePM: Allow usage of custom output parsers for CMake output
Fixes: QTCREATORBUG-29992 Change-Id: Ia84871cc963263c34054d17742556b38a1f1934e Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -8,7 +8,12 @@
|
||||
#include <utils/environment.h>
|
||||
#include <utils/filepath.h>
|
||||
|
||||
namespace Utils { class MacroExpander; }
|
||||
#include <functional>
|
||||
|
||||
namespace Utils {
|
||||
class MacroExpander;
|
||||
class OutputLineParser;
|
||||
} // namespace Utils
|
||||
|
||||
namespace CMakeProjectManager::Internal {
|
||||
|
||||
@@ -38,6 +43,12 @@ public:
|
||||
QStringList additionalCMakeArguments;
|
||||
|
||||
Utils::MacroExpander* expander = nullptr;
|
||||
|
||||
QList<Utils::OutputLineParser*> outputParsers() const;
|
||||
|
||||
private:
|
||||
using OutputParserGenerator = std::function<QList<Utils::OutputLineParser*>()>;
|
||||
OutputParserGenerator outputParserGenerator;
|
||||
};
|
||||
|
||||
} // CMakeProjectManager::Internal
|
||||
|
||||
Reference in New Issue
Block a user