| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef TOOLS_GN_NINJA_WRITER_H_ | 5 #ifndef TOOLS_GN_NINJA_WRITER_H_ |
| 6 #define TOOLS_GN_NINJA_WRITER_H_ | 6 #define TOOLS_GN_NINJA_WRITER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 | 9 |
| 10 class BuildSettings; | 10 class BuildSettings; |
| 11 | 11 |
| 12 class NinjaWriter { | 12 class NinjaWriter { |
| 13 public: | 13 public: |
| 14 // On failure will print an error and will return false. |
| 14 static bool RunAndWriteFiles(const BuildSettings* build_settings); | 15 static bool RunAndWriteFiles(const BuildSettings* build_settings); |
| 15 | 16 |
| 16 private: | 17 private: |
| 17 NinjaWriter(const BuildSettings* build_settings); | 18 NinjaWriter(const BuildSettings* build_settings); |
| 18 ~NinjaWriter(); | 19 ~NinjaWriter(); |
| 19 | 20 |
| 20 bool WriteRootBuildfiles(); | 21 bool WriteRootBuildfiles(); |
| 21 | 22 |
| 22 const BuildSettings* build_settings_; | 23 const BuildSettings* build_settings_; |
| 23 | 24 |
| 24 DISALLOW_COPY_AND_ASSIGN(NinjaWriter); | 25 DISALLOW_COPY_AND_ASSIGN(NinjaWriter); |
| 25 }; | 26 }; |
| 26 | 27 |
| 27 #endif // TOOLS_GN_NINJA_WRITER_H_ | 28 #endif // TOOLS_GN_NINJA_WRITER_H_ |
| OLD | NEW |