Autofill: Add WalletIntegrationAvailable() to components.
[chromium-blink-merge.git] / tools / gn / ninja_utils.h
blob60ae6b27a66a95278d1d354a703551336a5682a7
1 // Copyright 2014 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.
5 #ifndef TOOLS_GN_NINJA_UTILS_H_
6 #define TOOLS_GN_NINJA_UTILS_H_
8 #include <string>
10 class Settings;
11 class SourceFile;
12 class Target;
14 // Example: "base/base.ninja". The string version will not be escaped, and
15 // will always have slashes for path separators.
16 SourceFile GetNinjaFileForTarget(const Target* target);
18 // Returns the name of the root .ninja file for the given toolchain.
19 SourceFile GetNinjaFileForToolchain(const Settings* settings);
21 // Returns the prefix applied to the Ninja rules in a given toolchain so they
22 // don't collide with rules from other toolchains.
23 std::string GetNinjaRulePrefixForToolchain(const Settings* settings);
25 #endif // TOOLS_GN_NINJA_UTILS_H_