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

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

Issue 440333002: Support more configurability in GN toolchains (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unsigned check Created 6 years, 4 months 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/ninja_binary_target_writer_unittest.cc ('k') | tools/gn/ninja_build_writer.cc » ('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_BUILD_WRITER_H_ 5 #ifndef TOOLS_GN_NINJA_BUILD_WRITER_H_
6 #define TOOLS_GN_NINJA_BUILD_WRITER_H_ 6 #define TOOLS_GN_NINJA_BUILD_WRITER_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 #include <vector> 9 #include <vector>
10 10
11 #include "tools/gn/ninja_helper.h"
12 #include "tools/gn/path_output.h" 11 #include "tools/gn/path_output.h"
13 12
14 class BuildSettings; 13 class BuildSettings;
15 class Settings; 14 class Settings;
16 class Target; 15 class Target;
17 16
18 // Generates the toplevel "build.ninja" file. This references the individual 17 // Generates the toplevel "build.ninja" file. This references the individual
19 // toolchain files and lists all input .gn files as dependencies of the 18 // toolchain files and lists all input .gn files as dependencies of the
20 // build itself. 19 // build itself.
21 class NinjaBuildWriter { 20 class NinjaBuildWriter {
(...skipping 20 matching lines...) Expand all
42 void WritePhonyRule(const Target* target, const OutputFile& target_file, 41 void WritePhonyRule(const Target* target, const OutputFile& target_file,
43 const std::string& phony_name); 42 const std::string& phony_name);
44 43
45 const BuildSettings* build_settings_; 44 const BuildSettings* build_settings_;
46 std::vector<const Settings*> all_settings_; 45 std::vector<const Settings*> all_settings_;
47 std::vector<const Target*> default_toolchain_targets_; 46 std::vector<const Target*> default_toolchain_targets_;
48 std::ostream& out_; 47 std::ostream& out_;
49 std::ostream& dep_out_; 48 std::ostream& dep_out_;
50 PathOutput path_output_; 49 PathOutput path_output_;
51 50
52 NinjaHelper helper_;
53
54 DISALLOW_COPY_AND_ASSIGN(NinjaBuildWriter); 51 DISALLOW_COPY_AND_ASSIGN(NinjaBuildWriter);
55 }; 52 };
56 53
57 #endif // TOOLS_GN_NINJA_BUILD_GENERATOR_H_ 54 #endif // TOOLS_GN_NINJA_BUILD_GENERATOR_H_
58 55
OLDNEW
« no previous file with comments | « tools/gn/ninja_binary_target_writer_unittest.cc ('k') | tools/gn/ninja_build_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698