| Index: tools/gn/gyp_target_writer.h
|
| diff --git a/tools/gn/gyp_target_writer.h b/tools/gn/gyp_target_writer.h
|
| index 597a609c75b2613df23bba09dbbe6ec69214c2b9..df44dab32eabb3a2b589bf6bba654a386ecaae37 100644
|
| --- a/tools/gn/gyp_target_writer.h
|
| +++ b/tools/gn/gyp_target_writer.h
|
| @@ -10,6 +10,7 @@
|
|
|
| #include "base/basictypes.h"
|
| #include "tools/gn/gyp_helper.h"
|
| +#include "tools/gn/path_output.h"
|
|
|
| class BuilderRecord;
|
| class Err;
|
| @@ -32,7 +33,9 @@ class GypTargetWriter {
|
| const BuilderRecord* host_release;
|
| };
|
|
|
| - GypTargetWriter(const Target* target, std::ostream& out);
|
| + GypTargetWriter(const Target* target,
|
| + const SourceDir& gyp_dir,
|
| + std::ostream& out);
|
| virtual ~GypTargetWriter();
|
|
|
| static void WriteFile(const SourceFile& gyp_file,
|
| @@ -42,11 +45,19 @@ class GypTargetWriter {
|
| virtual void Run() = 0;
|
|
|
| protected:
|
| + // Writes the given number of spaces to the output stream and returns it.
|
| + std::ostream& Indent(int spaces);
|
| + static std::ostream& Indent(std::ostream& out, int spaces);
|
| +
|
| + static const int kExtraIndent = 2;
|
| +
|
| const Settings* settings_; // Non-owning.
|
| const Target* target_; // Non-owning.
|
| + SourceDir gyp_dir_; // Dir of GYP file.
|
| std::ostream& out_;
|
|
|
| GypHelper helper_;
|
| + PathOutput path_output_;
|
|
|
| private:
|
| DISALLOW_COPY_AND_ASSIGN(GypTargetWriter);
|
|
|