Home | History | Annotate | Download | only in gn

Lines Matching refs:label

24 std::string GetOutputSubdirName(const Label& toolchain_label, bool is_default) {
40 LoadID(const SourceFile& f, const Label& tc_name)
52 Label toolchain_name;
57 // The default toolchain label can be empty for the first time the default
61 const Label& toolchain_label,
62 const Label& default_toolchain_label)
90 void Loader::Load(const Label& label) {
91 Load(BuildFileForLabel(label), label.GetToolchainLabel());
95 SourceFile Loader::BuildFileForLabel(const Label& label) {
96 return SourceFile(label.dir().value() + "BUILD.gn");
113 const Label& in_toolchain_name) {
114 const Label& toolchain_name = in_toolchain_name.is_null()
126 new ToolchainRecord(build_settings_, Label(), Label());
127 toolchain_records_[Label()] = record;
164 ToolchainRecord* record = toolchain_records_[toolchain->label()];
167 record = new ToolchainRecord(build_settings_, toolchain->label(),
169 toolchain_records_[toolchain->label()] = record;
185 Label LoaderImpl::GetDefaultToolchain() const {
189 const Settings* LoaderImpl::GetToolchainSettings(const Label& label) {
191 if (label.is_null()) {
196 found_toolchain = toolchain_records_.find(label);
282 Label default_toolchain_label;
323 void LoaderImpl::DidLoadBuildConfig(const Label& label) {
326 ToolchainRecordMap::iterator found_toolchain = toolchain_records_.find(label);
330 // map with an empty label since we don't yet know what to call it.
333 // label. We now need to fix up the naming so it refers to the "real" one.
335 ToolchainRecordMap::iterator empty_label = toolchain_records_.find(Label());
340 toolchain_records_[label] = record;
343 // Save the default toolchain label.
344 default_toolchain_label_ = label;
346 record->settings.set_default_toolchain_label(label);
348 // The settings object should have the toolchain label already set.
351 // Update any stored invocations that refer to the empty toolchain label.
359 // Fix up toolchain label
360 invocations_.insert(LoadID(i->file, label));