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 #include <set> | 9 #include <set> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "tools/gn/args.h" | 15 #include "tools/gn/args.h" |
16 #include "tools/gn/scope.h" | 16 #include "tools/gn/scope.h" |
17 #include "tools/gn/source_dir.h" | 17 #include "tools/gn/source_dir.h" |
18 #include "tools/gn/source_file.h" | 18 #include "tools/gn/source_file.h" |
19 | 19 |
20 class Item; | 20 class Item; |
21 class OutputFile; | |
22 | 21 |
23 // Settings for one build, which is one toplevel output directory. There | 22 // Settings for one build, which is one toplevel output directory. There |
24 // may be multiple Settings objects that refer to this, one for each toolchain. | 23 // may be multiple Settings objects that refer to this, one for each toolchain. |
25 class BuildSettings { | 24 class BuildSettings { |
26 public: | 25 public: |
27 typedef base::Callback<void(scoped_ptr<Item>)> ItemDefinedCallback; | 26 typedef base::Callback<void(scoped_ptr<Item>)> ItemDefinedCallback; |
28 typedef base::Callback<void(const std::string&)> PrintCallback; | 27 typedef base::Callback<void(const std::string&)> PrintCallback; |
29 | 28 |
30 BuildSettings(); | 29 BuildSettings(); |
31 BuildSettings(const BuildSettings& other); | 30 BuildSettings(const BuildSettings& other); |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 | 106 |
108 ItemDefinedCallback item_defined_callback_; | 107 ItemDefinedCallback item_defined_callback_; |
109 PrintCallback print_callback_; | 108 PrintCallback print_callback_; |
110 | 109 |
111 scoped_ptr<std::set<SourceFile>> exec_script_whitelist_; | 110 scoped_ptr<std::set<SourceFile>> exec_script_whitelist_; |
112 | 111 |
113 BuildSettings& operator=(const BuildSettings& other); // Disallow. | 112 BuildSettings& operator=(const BuildSettings& other); // Disallow. |
114 }; | 113 }; |
115 | 114 |
116 #endif // TOOLS_GN_BUILD_SETTINGS_H_ | 115 #endif // TOOLS_GN_BUILD_SETTINGS_H_ |
OLD | NEW |