| 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_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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |