Lines Matching refs:BuilderRecord
17 typedef BuilderRecord::BuilderRecordSet BuilderRecordSet;
28 bool RecursiveFindCycle(const BuilderRecord* search_in,
29 std::vector<const BuilderRecord*>* path) {
32 const BuilderRecord::BuilderRecordSet& unresolved =
34 for (BuilderRecord::BuilderRecordSet::const_iterator i = unresolved.begin();
36 const BuilderRecord* cur = *i;
38 std::vector<const BuilderRecord*>::iterator found =
67 BuilderRecord::ItemType type = BuilderRecord::TypeOfItem(item.get());
70 BuilderRecord* record =
93 case BuilderRecord::ITEM_TARGET:
99 case BuilderRecord::ITEM_TOOLCHAIN:
115 const BuilderRecord* record = GetRecord(label);
122 const BuilderRecord* record = GetRecord(label);
130 std::vector<const BuilderRecord*> Builder::GetAllRecords() const {
131 std::vector<const BuilderRecord*> result;
144 if (i->second->type() == BuilderRecord::ITEM_TARGET &&
151 const BuilderRecord* Builder::GetRecord(const Label& label) const {
156 BuilderRecord* Builder::GetRecord(const Label& label) {
173 std::vector<const BuilderRecord*> bad_records;
177 const BuilderRecord* src = i->second;
185 for (BuilderRecord::BuilderRecordSet::const_iterator dest_iter =
189 const BuilderRecord* dest = *dest_iter;
225 bool Builder::TargetDefined(BuilderRecord* record, Err* err) {
246 BuilderRecord* Builder::GetOrCreateRecordOfType(const Label& label,
248 BuilderRecord::ItemType type,
250 BuilderRecord* record = GetRecord(label);
253 record = new BuilderRecord(type, label);
263 "\nhere is a " + BuilderRecord::GetNameForType(type) +
265 BuilderRecord::GetNameForType(record->type()) + ".\n\n"
279 BuilderRecord* Builder::GetResolvedRecordOfType(const Label& label,
281 BuilderRecord::ItemType type,
283 BuilderRecord* record = GetRecord(label);
298 if (!BuilderRecord::IsItemOfType(item, type)) {
300 std::string("This is not a ") + BuilderRecord::GetNameForType(type),
303 BuilderRecord::GetNameForType(type) + ".");
309 bool Builder::AddDeps(BuilderRecord* record,
313 BuilderRecord* dep_record = GetOrCreateRecordOfType(
314 configs[i].label, configs[i].origin, BuilderRecord::ITEM_CONFIG, err);
322 bool Builder::AddDeps(BuilderRecord* record,
326 BuilderRecord* dep_record = GetOrCreateRecordOfType(
327 targets[i].label, targets[i].origin, BuilderRecord::ITEM_TARGET, err);
335 bool Builder::AddToolchainDep(BuilderRecord* record,
338 BuilderRecord* toolchain_record = GetOrCreateRecordOfType(
340 BuilderRecord::ITEM_TOOLCHAIN, err);
348 void Builder::RecursiveSetShouldGenerate(BuilderRecord* record,
357 BuilderRecord* cur = *i;
365 void Builder::ScheduleItemLoadIfNecessary(BuilderRecord* record) {
371 bool Builder::ResolveItem(BuilderRecord* record, Err* err) {
374 if (record->type() == BuilderRecord::ITEM_TARGET) {
394 BuilderRecord* waiting = *i;
413 BuilderRecord* record = GetResolvedRecordOfType(
414 cur.label, cur.origin, BuilderRecord::ITEM_TARGET, err);
427 BuilderRecord* record = GetResolvedRecordOfType(
428 cur.label, cur.origin, BuilderRecord::ITEM_CONFIG, err);
465 const std::vector<const BuilderRecord*>& bad_records) const {
466 std::vector<const BuilderRecord*> cycle;