// Copyright 2016 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/analyzer.h" #include #include #include #include #include #include "base/json/json_reader.h" #include "base/json/json_writer.h" #include "base/strings/string_util.h" #include "base/values.h" #include "tools/gn/builder.h" #include "tools/gn/deps_iterator.h" #include "tools/gn/err.h" #include "tools/gn/filesystem_utils.h" #include "tools/gn/loader.h" #include "tools/gn/location.h" #include "tools/gn/source_file.h" #include "tools/gn/target.h" using LabelSet = Analyzer::LabelSet; using SourceFileSet = Analyzer::SourceFileSet; using TargetSet = Analyzer::TargetSet; namespace { struct Inputs { std::vector source_vec; std::vector