From 977d07a3ae47ef204665d1eda2d642e5064724f3 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 24 Jun 2019 12:01:19 +0200 Subject: Split build system into library and driver --- libbuild2/dump.hxx | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 libbuild2/dump.hxx (limited to 'libbuild2/dump.hxx') diff --git a/libbuild2/dump.hxx b/libbuild2/dump.hxx new file mode 100644 index 0000000..fd1886b --- /dev/null +++ b/libbuild2/dump.hxx @@ -0,0 +1,34 @@ +// file : libbuild2/dump.hxx -*- C++ -*- +// copyright : Copyright (c) 2014-2019 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +#ifndef LIBBUILD2_DUMP_HXX +#define LIBBUILD2_DUMP_HXX + +#include +#include + +#include + +#include + +namespace build2 +{ + class scope; + class target; + + // Dump the build state to diag_stream. If action is specified, then assume + // rules have been matched for this action and dump action-specific + // information (like rule-specific variables). + // + LIBBUILD2_SYMEXPORT void + dump (optional = nullopt); + + LIBBUILD2_SYMEXPORT void + dump (const scope&, const char* ind = ""); + + LIBBUILD2_SYMEXPORT void + dump (const target&, const char* ind = ""); +} + +#endif // LIBBUILD2_DUMP_HXX -- cgit v1.1