1 // Copyright 2015 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef TOOLS_GN_RUNTIME_DEPS_H 6 #define TOOLS_GN_RUNTIME_DEPS_H 7 8 #include <utility> 9 #include <vector> 10 11 class Builder; 12 class BuildSettings; 13 class Err; 14 class OutputFile; 15 class Target; 16 17 extern const char kRuntimeDeps_Help[]; 18 19 // Computes the runtime dependencies of the given target. The result is a list 20 // of pairs listing the runtime dependency and the target that the runtime 21 // dependency is from (for blaming). 22 std::vector<std::pair<OutputFile, const Target*>> ComputeRuntimeDeps( 23 const Target* target); 24 25 // Writes all runtime deps files requested on the command line, or does nothing 26 // if no files were specified. 27 bool WriteRuntimeDepsFilesIfNecessary(const BuildSettings* build_settings, 28 const Builder& builder, 29 Err* err); 30 31 #endif // TOOLS_GN_RUNTIME_DEPS_H 32