| // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| #include "tools/gn/item.h" |
| #include "base/logging.h" |
| #include "tools/gn/settings.h" |
| Item::Item(const Settings* settings, |
| const std::set<SourceFile>& build_dependency_files) |
| build_dependency_files_(build_dependency_files), |
| defined_from_(nullptr) {} |
| Config* Item::AsConfig() { |
| const Config* Item::AsConfig() const { |
| const Pool* Item::AsPool() const { |
| Target* Item::AsTarget() { |
| const Target* Item::AsTarget() const { |
| Toolchain* Item::AsToolchain() { |
| const Toolchain* Item::AsToolchain() const { |
| std::string Item::GetItemTypeName() const { |
| return "this thing that I have no idea what it is"; |
| bool Item::OnResolved(Err* err) { |