// 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 #include #include #include "base/command_line.h" #include "tools/gn/commands.h" #include "tools/gn/config.h" #include "tools/gn/config_values_extractors.h" #include "tools/gn/item.h" #include "tools/gn/item_node.h" #include "tools/gn/label.h" #include "tools/gn/setup.h" #include "tools/gn/standard_out.h" #include "tools/gn/target.h" namespace commands { namespace { struct CompareTargetLabel { bool operator()(const Target* a, const Target* b) const { return a->label() < b->label(); } }; void RecursiveCollectDeps(const Target* target, std::set