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

Side by Side Diff: tools/gn/ninja_target_writer.h

Issue 80463004: GN generator for GYP actions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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
« no previous file with comments | « tools/gn/gyp_target_writer.cc ('k') | tools/gn/scope_per_file_provider.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_TARGET_WRITER_H_ 5 #ifndef TOOLS_GN_NINJA_TARGET_WRITER_H_
6 #define TOOLS_GN_NINJA_TARGET_WRITER_H_ 6 #define TOOLS_GN_NINJA_TARGET_WRITER_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 17 matching lines...) Expand all
28 28
29 virtual void Run() = 0; 29 virtual void Run() = 0;
30 30
31 protected: 31 protected:
32 // Returns the string to be appended to source rules that encodes the 32 // Returns the string to be appended to source rules that encodes the
33 // order-only dependencies for the current target. This will include the 33 // order-only dependencies for the current target. This will include the
34 // "|" character so can just be appended to the source rules. If there are no 34 // "|" character so can just be appended to the source rules. If there are no
35 // implicit dependencies, returns the empty string. 35 // implicit dependencies, returns the empty string.
36 std::string GetSourcesImplicitDeps() const; 36 std::string GetSourcesImplicitDeps() const;
37 37
38 // Returns the FileTemplate constructed from the outputs variable. 38 // Returns the FileTemplate constructed from the outputs variable. This is
39 // like FileTemplate::GetForTargetOutputs except this additionally trims the
40 // build directory from the front so we can just write the names without
41 // further processing.
39 FileTemplate GetOutputTemplate() const; 42 FileTemplate GetOutputTemplate() const;
40 43
41 const Settings* settings_; // Non-owning. 44 const Settings* settings_; // Non-owning.
42 const Target* target_; // Non-owning. 45 const Target* target_; // Non-owning.
43 const Toolchain* toolchain_; // Non-owning. 46 const Toolchain* toolchain_; // Non-owning.
44 std::ostream& out_; 47 std::ostream& out_;
45 PathOutput path_output_; 48 PathOutput path_output_;
46 49
47 NinjaHelper helper_; 50 NinjaHelper helper_;
48 51
49 private: 52 private:
50 void WriteCopyRules(); 53 void WriteCopyRules();
51 54
52 DISALLOW_COPY_AND_ASSIGN(NinjaTargetWriter); 55 DISALLOW_COPY_AND_ASSIGN(NinjaTargetWriter);
53 }; 56 };
54 57
55 #endif // TOOLS_GN_NINJA_TARGET_WRITER_H_ 58 #endif // TOOLS_GN_NINJA_TARGET_WRITER_H_
OLDNEW
« no previous file with comments | « tools/gn/gyp_target_writer.cc ('k') | tools/gn/scope_per_file_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698