| 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. This should be set after | 63 // toolchain-specific root directories inside this. |
| 64 // the root path for the proper directory to be created. | |
| 65 const SourceDir& build_dir() const { return build_dir_; } | 64 const SourceDir& build_dir() const { return build_dir_; } |
| 66 void SetBuildDir(const SourceDir& dir); | 65 void SetBuildDir(const SourceDir& dir); |
| 67 | 66 |
| 68 // The inverse of relative_build_dir, ending with a separator. | 67 // The inverse of relative_build_dir, ending with a separator. |
| 69 // Example: relative_build_dir_ = "out/Debug/" this will be "../../" | 68 // Example: relative_build_dir_ = "out/Debug/" this will be "../../" |
| 70 const std::string& build_to_source_dir_string() const { | 69 const std::string& build_to_source_dir_string() const { |
| 71 return build_to_source_dir_string_; | 70 return build_to_source_dir_string_; |
| 72 } | 71 } |
| 73 | 72 |
| 74 // The build args are normally specified on the command-line. | 73 // The build args are normally specified on the command-line. |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 | 122 |
| 124 // See getters above. | 123 // See getters above. |
| 125 mutable ItemTree item_tree_; | 124 mutable ItemTree item_tree_; |
| 126 mutable TargetManager target_manager_; | 125 mutable TargetManager target_manager_; |
| 127 mutable ToolchainManager toolchain_manager_; | 126 mutable ToolchainManager toolchain_manager_; |
| 128 | 127 |
| 129 BuildSettings& operator=(const BuildSettings& other); // Disallow. | 128 BuildSettings& operator=(const BuildSettings& other); // Disallow. |
| 130 }; | 129 }; |
| 131 | 130 |
| 132 #endif // TOOLS_GN_BUILD_SETTINGS_H_ | 131 #endif // TOOLS_GN_BUILD_SETTINGS_H_ |
| OLD | NEW |