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 "tools/gn/build_settings.h" | 9 #include "tools/gn/build_settings.h" |
10 #include "tools/gn/import_manager.h" | 10 #include "tools/gn/import_manager.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 // the file with the toolchain declaration in it. | 26 // the file with the toolchain declaration in it. |
27 class Settings { | 27 class Settings { |
28 public: | 28 public: |
29 enum TargetOS { | 29 enum TargetOS { |
30 UNKNOWN, | 30 UNKNOWN, |
31 LINUX, | 31 LINUX, |
32 MAC, | 32 MAC, |
33 WIN | 33 WIN |
34 }; | 34 }; |
35 | 35 |
36 // Constructs a toolchain settings. The output_subdir_name is the name we | 36 // Constructs a toolchain settings. |
37 // should use for the subdirectory in the build output directory for this | 37 // |
38 // toolchain's outputs. It should have no slashes in it. The default | 38 // The output_subdir_name is the name we should use for the subdirectory in |
39 // toolchain should use an empty string. | 39 // the build output directory for this toolchain's outputs. The default |
| 40 // toolchain would use an empty string (it goes in the root build dir). |
| 41 // Otherwise, it must end in a slash. |
40 Settings(const BuildSettings* build_settings, | 42 Settings(const BuildSettings* build_settings, |
41 const std::string& output_subdir_name); | 43 const std::string& output_subdir_name); |
42 ~Settings(); | 44 ~Settings(); |
43 | 45 |
44 const BuildSettings* build_settings() const { return build_settings_; } | 46 const BuildSettings* build_settings() const { return build_settings_; } |
45 | 47 |
46 const Label& toolchain_label() const { return toolchain_label_; } | 48 const Label& toolchain_label() const { return toolchain_label_; } |
47 void set_toolchain_label(const Label& l) { toolchain_label_ = l; } | 49 void set_toolchain_label(const Label& l) { toolchain_label_ = l; } |
48 | 50 |
49 const Label& default_toolchain_label() const { | 51 const Label& default_toolchain_label() const { |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 SourceDir toolchain_gen_dir_; | 122 SourceDir toolchain_gen_dir_; |
121 | 123 |
122 Scope base_config_; | 124 Scope base_config_; |
123 | 125 |
124 bool greedy_target_generation_; | 126 bool greedy_target_generation_; |
125 | 127 |
126 DISALLOW_COPY_AND_ASSIGN(Settings); | 128 DISALLOW_COPY_AND_ASSIGN(Settings); |
127 }; | 129 }; |
128 | 130 |
129 #endif // TOOLS_GN_SETTINGS_H_ | 131 #endif // TOOLS_GN_SETTINGS_H_ |
OLD | NEW |