Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: trunk/src/tools/gn/ninja_script_target_writer.h

Issue 46313006: Revert 232657 "GN: toolchain threading cleanup" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_SCRIPT_TARGET_WRITER_H_ 5 #ifndef TOOLS_GN_NINJA_SCRIPT_TARGET_WRITER_H_
6 #define TOOLS_GN_NINJA_SCRIPT_TARGET_WRITER_H_ 6 #define TOOLS_GN_NINJA_SCRIPT_TARGET_WRITER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/gtest_prod_util.h" 11 #include "base/gtest_prod_util.h"
12 #include "tools/gn/ninja_target_writer.h" 12 #include "tools/gn/ninja_target_writer.h"
13 13
14 class FileTemplate; 14 class FileTemplate;
15 class OutputFile; 15 class OutputFile;
16 16
17 // Writes a .ninja file for a custom script target type. 17 // Writes a .ninja file for a custom script target type.
18 class NinjaScriptTargetWriter : public NinjaTargetWriter { 18 class NinjaScriptTargetWriter : public NinjaTargetWriter {
19 public: 19 public:
20 NinjaScriptTargetWriter(const Target* target, 20 NinjaScriptTargetWriter(const Target* target, std::ostream& out);
21 const Toolchain* toolchain,
22 std::ostream& out);
23 virtual ~NinjaScriptTargetWriter(); 21 virtual ~NinjaScriptTargetWriter();
24 22
25 virtual void Run() OVERRIDE; 23 virtual void Run() OVERRIDE;
26 24
27 private: 25 private:
28 FRIEND_TEST_ALL_PREFIXES(NinjaScriptTargetWriter, 26 FRIEND_TEST_ALL_PREFIXES(NinjaScriptTargetWriter,
29 WriteOutputFilesForBuildLine); 27 WriteOutputFilesForBuildLine);
30 FRIEND_TEST_ALL_PREFIXES(NinjaScriptTargetWriter, 28 FRIEND_TEST_ALL_PREFIXES(NinjaScriptTargetWriter,
31 WriteArgsSubstitutions); 29 WriteArgsSubstitutions);
32 30
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 65
68 // Path output writer that doesn't do any escaping or quoting. It does, 66 // Path output writer that doesn't do any escaping or quoting. It does,
69 // however, convert slashes. Used for 67 // however, convert slashes. Used for
70 // computing intermediate strings. 68 // computing intermediate strings.
71 PathOutput path_output_no_escaping_; 69 PathOutput path_output_no_escaping_;
72 70
73 DISALLOW_COPY_AND_ASSIGN(NinjaScriptTargetWriter); 71 DISALLOW_COPY_AND_ASSIGN(NinjaScriptTargetWriter);
74 }; 72 };
75 73
76 #endif // TOOLS_GN_NINJA_SCRIPT_TARGET_WRITER_H_ 74 #endif // TOOLS_GN_NINJA_SCRIPT_TARGET_WRITER_H_
OLDNEW
« no previous file with comments | « trunk/src/tools/gn/ninja_helper_unittest.cc ('k') | trunk/src/tools/gn/ninja_script_target_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698