| 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_BUILD_SETTINGS_H_ | 5 #ifndef TOOLS_GN_BUILD_SETTINGS_H_ |
| 6 #define TOOLS_GN_BUILD_SETTINGS_H_ | 6 #define TOOLS_GN_BUILD_SETTINGS_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 53 |
| 54 // Path of the python executable to run scripts with. | 54 // Path of the python executable to run scripts with. |
| 55 base::FilePath python_path() const { return python_path_; } | 55 base::FilePath python_path() const { return python_path_; } |
| 56 void set_python_path(const base::FilePath& p) { python_path_ = p; } | 56 void set_python_path(const base::FilePath& p) { python_path_ = p; } |
| 57 | 57 |
| 58 const SourceFile& build_config_file() const { return build_config_file_; } | 58 const SourceFile& build_config_file() const { return build_config_file_; } |
| 59 void set_build_config_file(const SourceFile& f) { build_config_file_ = f; } | 59 void set_build_config_file(const SourceFile& f) { build_config_file_ = f; } |
| 60 | 60 |
| 61 // The build directory is the root of all output files. The default toolchain | 61 // The build directory is the root of all output files. The default toolchain |
| 62 // files go into here, and non-default toolchains will have separate | 62 // files go into here, and non-default toolchains will have separate |
| 63 // toolchain-specific root directories inside this. | 63 // toolchain-specific root directories inside this. This should be set after |
| 64 // the root path for the proper directory to be created. |
| 64 const SourceDir& build_dir() const { return build_dir_; } | 65 const SourceDir& build_dir() const { return build_dir_; } |
| 65 void SetBuildDir(const SourceDir& dir); | 66 void SetBuildDir(const SourceDir& dir); |
| 66 | 67 |
| 67 // The inverse of relative_build_dir, ending with a separator. | 68 // The inverse of relative_build_dir, ending with a separator. |
| 68 // Example: relative_build_dir_ = "out/Debug/" this will be "../../" | 69 // Example: relative_build_dir_ = "out/Debug/" this will be "../../" |
| 69 const std::string& build_to_source_dir_string() const { | 70 const std::string& build_to_source_dir_string() const { |
| 70 return build_to_source_dir_string_; | 71 return build_to_source_dir_string_; |
| 71 } | 72 } |
| 72 | 73 |
| 73 // The build args are normally specified on the command-line. | 74 // The build args are normally specified on the command-line. |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 123 |
| 123 // See getters above. | 124 // See getters above. |
| 124 mutable ItemTree item_tree_; | 125 mutable ItemTree item_tree_; |
| 125 mutable TargetManager target_manager_; | 126 mutable TargetManager target_manager_; |
| 126 mutable ToolchainManager toolchain_manager_; | 127 mutable ToolchainManager toolchain_manager_; |
| 127 | 128 |
| 128 BuildSettings& operator=(const BuildSettings& other); // Disallow. | 129 BuildSettings& operator=(const BuildSettings& other); // Disallow. |
| 129 }; | 130 }; |
| 130 | 131 |
| 131 #endif // TOOLS_GN_BUILD_SETTINGS_H_ | 132 #endif // TOOLS_GN_BUILD_SETTINGS_H_ |
| OLD | NEW |