return rule_->command_.Evaluate(&env);
}
+string Edge::EvaluateDepFile() {
+ EdgeEnv env(this);
+ return rule_->depfile_.Evaluate(&env);
+}
+
string Edge::GetDescription() {
EdgeEnv env(this);
return rule_->description_.Evaluate(&env);
bool Edge::LoadDepFile(State* state, DiskInterface* disk_interface,
string* err) {
- EdgeEnv env(this);
- string path = rule_->depfile_.Evaluate(&env);
-
+ string path = EvaluateDepFile();
string content = disk_interface->ReadFile(path, err);
if (!err->empty())
return false;
const string& command, Node* output);
string EvaluateCommand(); // XXX move to env, take env ptr
+ string EvaluateDepFile();
string GetDescription();
bool LoadDepFile(State* state, DiskInterface* disk_interface, string* err);