Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Side by Side Diff: tools/gn/build_settings.h

Issue 1130183007: Add runtime dependency extraction for GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make msvc happy Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/gn/BUILD.gn ('k') | tools/gn/command_desc.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « tools/gn/BUILD.gn ('k') | tools/gn/command_desc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698