Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(271)

Side by Side Diff: tools/gn/ninja_utils.h

Issue 440333002: Support more configurability in GN toolchains (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
5 #ifndef TOOLS_GN_NINJA_UTILS_H_
6 #define TOOLS_GN_NINJA_UTILS_H_
7
8 #include <string>
9
10 class Settings;
11 class SourceFile;
jamesr 2014/08/19 19:30:41 does a forward declaration of a return type work?
brettw 2014/08/19 21:29:56 Yeah, returning an object basically ends up lookin
12 class Target;
13
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);
17
18 // Returns the name of the root .ninja file for the given toolchain.
19 SourceFile GetNinjaFileForToolchain(const Settings* settings);
20
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);
24
25 #endif // TOOLS_GN_NINJA_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698