| Index: tools/gn/scheduler.h
|
| diff --git a/tools/gn/scheduler.h b/tools/gn/scheduler.h
|
| index 45225ceb6f7f1a3ed474ccfab939d1f770e673c2..a9bb036512259af6622f24b52997d484b24effb8 100644
|
| --- a/tools/gn/scheduler.h
|
| +++ b/tools/gn/scheduler.h
|
| @@ -15,6 +15,9 @@
|
| #include "base/synchronization/lock.h"
|
| #include "base/threading/sequenced_worker_pool.h"
|
| #include "tools/gn/input_file_manager.h"
|
| +#include "tools/gn/label.h"
|
| +#include "tools/gn/source_file.h"
|
| +#include "tools/gn/token.h"
|
|
|
| class Target;
|
|
|
| @@ -57,6 +60,11 @@ class Scheduler {
|
| // inputs (see AddUnknownGeneratedInput below).
|
| void AddWrittenFile(const SourceFile& file);
|
|
|
| + // Schedules a file to be written due to a target setting write_runtime_deps.
|
| + void AddWriteRuntimeDepsTarget(const Target* entry);
|
| + std::vector<const Target*> GetWriteRuntimeDepsTargets() const;
|
| + bool IsFileGeneratedByWriteRuntimeDeps(const OutputFile& file) const;
|
| +
|
| // Unknown generated inputs are files that a target declares as an input
|
| // in the output directory, but which aren't generated by any dependency.
|
| //
|
| @@ -113,6 +121,7 @@ class Scheduler {
|
| // Protected by the lock. See the corresponding Add/Get functions above.
|
| std::vector<base::FilePath> gen_dependencies_;
|
| std::vector<SourceFile> written_files_;
|
| + std::vector<const Target*> write_runtime_deps_targets_;
|
| std::multimap<SourceFile, const Target*> unknown_generated_inputs_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(Scheduler);
|
|
|