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

Unified Diff: tools/gn/ninja_build_writer.h

Issue 2006923004: Add support for user defined "pool" to GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: tools/gn/ninja_build_writer.h
diff --git a/tools/gn/ninja_build_writer.h b/tools/gn/ninja_build_writer.h
index e94f93de24e60ce5ec215a9ec15e40c42b9b32ba..358ecc68aa16070682cb709135bf21570f80c008 100644
--- a/tools/gn/ninja_build_writer.h
+++ b/tools/gn/ninja_build_writer.h
@@ -14,6 +14,7 @@
class BuildSettings;
class Err;
+class Pool;
class Settings;
class Target;
class Toolchain;
@@ -28,12 +29,14 @@ class NinjaBuildWriter {
const std::vector<const Settings*>& all_settings,
const Toolchain* default_toolchain,
const std::vector<const Target*>& default_toolchain_targets,
+ const std::vector<const Pool*>& all_pools,
Err* err);
NinjaBuildWriter(const BuildSettings* settings,
const std::vector<const Settings*>& all_settings,
const Toolchain* default_toolchain,
const std::vector<const Target*>& default_toolchain_targets,
+ const std::vector<const Pool*>& all_pools,
std::ostream& out,
std::ostream& dep_out);
~NinjaBuildWriter();
@@ -42,7 +45,7 @@ class NinjaBuildWriter {
private:
void WriteNinjaRules();
- void WriteLinkPool();
+ void WriteAllPools();
void WriteSubninjas();
bool WritePhonyAndAllRules(Err* err);
@@ -52,6 +55,7 @@ class NinjaBuildWriter {
std::vector<const Settings*> all_settings_;
const Toolchain* default_toolchain_;
std::vector<const Target*> default_toolchain_targets_;
+ std::vector<const Pool*> all_pools_;
std::ostream& out_;
std::ostream& dep_out_;
PathOutput path_output_;
« tools/gn/functions.cc ('K') | « tools/gn/item.cc ('k') | tools/gn/ninja_build_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698