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

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

Issue 2152413002: GN: don't write separate files for non-binary targets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: typo Created 4 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
« no previous file with comments | « tools/gn/qt_creator_writer.cc ('k') | tools/gn/setup.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_SETTINGS_H_ 5 #ifndef TOOLS_GN_SETTINGS_H_
6 #define TOOLS_GN_SETTINGS_H_ 6 #define TOOLS_GN_SETTINGS_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "tools/gn/build_settings.h" 10 #include "tools/gn/build_settings.h"
(...skipping 21 matching lines...) Expand all
32 // The output_subdir_name is the name we should use for the subdirectory in 32 // The output_subdir_name is the name we should use for the subdirectory in
33 // the build output directory for this toolchain's outputs. The default 33 // the build output directory for this toolchain's outputs. The default
34 // toolchain would use an empty string (it goes in the root build dir). 34 // toolchain would use an empty string (it goes in the root build dir).
35 // Otherwise, it must end in a slash. 35 // Otherwise, it must end in a slash.
36 Settings(const BuildSettings* build_settings, 36 Settings(const BuildSettings* build_settings,
37 const std::string& output_subdir_name); 37 const std::string& output_subdir_name);
38 ~Settings(); 38 ~Settings();
39 39
40 const BuildSettings* build_settings() const { return build_settings_; } 40 const BuildSettings* build_settings() const { return build_settings_; }
41 41
42 // The actual Toolchain object pointer is not available on the settings
43 // object because it might not be resolved yet. Code running after the
44 // load is complete can ask the Builder for the Toolchain corresponding to
45 // this label.
42 const Label& toolchain_label() const { return toolchain_label_; } 46 const Label& toolchain_label() const { return toolchain_label_; }
43 void set_toolchain_label(const Label& l) { toolchain_label_ = l; } 47 void set_toolchain_label(const Label& l) { toolchain_label_ = l; }
44 48
45 const Label& default_toolchain_label() const { 49 const Label& default_toolchain_label() const {
46 return default_toolchain_label_; 50 return default_toolchain_label_;
47 } 51 }
48 void set_default_toolchain_label(const Label& default_label) { 52 void set_default_toolchain_label(const Label& default_label) {
49 default_toolchain_label_ = default_label; 53 default_toolchain_label_ = default_label;
50 } 54 }
51 55
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 SourceDir toolchain_gen_dir_; 111 SourceDir toolchain_gen_dir_;
108 112
109 Scope base_config_; 113 Scope base_config_;
110 114
111 bool greedy_target_generation_; 115 bool greedy_target_generation_;
112 116
113 DISALLOW_COPY_AND_ASSIGN(Settings); 117 DISALLOW_COPY_AND_ASSIGN(Settings);
114 }; 118 };
115 119
116 #endif // TOOLS_GN_SETTINGS_H_ 120 #endif // TOOLS_GN_SETTINGS_H_
OLDNEW
« no previous file with comments | « tools/gn/qt_creator_writer.cc ('k') | tools/gn/setup.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698