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

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

Issue 493493004: Add GN substitution support for Ninja's $in_newline (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge 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
« no previous file with comments | « tools/gn/function_toolchain.cc ('k') | tools/gn/substitution_type.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef TOOLS_GN_SUBSTITUTION_TYPE_H_ 5 #ifndef TOOLS_GN_SUBSTITUTION_TYPE_H_
6 #define TOOLS_GN_SUBSTITUTION_TYPE_H_ 6 #define TOOLS_GN_SUBSTITUTION_TYPE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 class Err; 10 class Err;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 SUBSTITUTION_CFLAGS, // {{cflags}} 44 SUBSTITUTION_CFLAGS, // {{cflags}}
45 SUBSTITUTION_CFLAGS_C, // {{cflags_c}} 45 SUBSTITUTION_CFLAGS_C, // {{cflags_c}}
46 SUBSTITUTION_CFLAGS_CC, // {{cflags_cc}} 46 SUBSTITUTION_CFLAGS_CC, // {{cflags_cc}}
47 SUBSTITUTION_CFLAGS_OBJC, // {{cflags_objc}} 47 SUBSTITUTION_CFLAGS_OBJC, // {{cflags_objc}}
48 SUBSTITUTION_CFLAGS_OBJCC, // {{cflags_objcc}} 48 SUBSTITUTION_CFLAGS_OBJCC, // {{cflags_objcc}}
49 SUBSTITUTION_DEFINES, // {{defines}} 49 SUBSTITUTION_DEFINES, // {{defines}}
50 SUBSTITUTION_INCLUDE_DIRS, // {{include_dirs}} 50 SUBSTITUTION_INCLUDE_DIRS, // {{include_dirs}}
51 51
52 // Valid for linker tools. 52 // Valid for linker tools.
53 SUBSTITUTION_LINKER_INPUTS, // {{inputs}} 53 SUBSTITUTION_LINKER_INPUTS, // {{inputs}}
54 SUBSTITUTION_LINKER_INPUTS_NEWLINE, // {{inputs_newline}}
54 SUBSTITUTION_LDFLAGS, // {{ldflags}} 55 SUBSTITUTION_LDFLAGS, // {{ldflags}}
55 SUBSTITUTION_LIBS, // {{libs}} 56 SUBSTITUTION_LIBS, // {{libs}}
56 SUBSTITUTION_OUTPUT_EXTENSION, // {{output_extension}} 57 SUBSTITUTION_OUTPUT_EXTENSION, // {{output_extension}}
57 SUBSTITUTION_SOLIBS, // {{solibs}} 58 SUBSTITUTION_SOLIBS, // {{solibs}}
58 59
59 SUBSTITUTION_NUM_TYPES // Must be last. 60 SUBSTITUTION_NUM_TYPES // Must be last.
60 }; 61 };
61 62
62 // An array of size SUBSTITUTION_NUM_TYPES that lists the names of the 63 // An array of size SUBSTITUTION_NUM_TYPES that lists the names of the
63 // substitution patterns, including the curly braces. So, for example, 64 // substitution patterns, including the curly braces. So, for example,
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 bool IsValidCopySubstitution(SubstitutionType type); 102 bool IsValidCopySubstitution(SubstitutionType type);
102 103
103 // Like the "IsValid..." version above but checks a list of types and sets a 104 // Like the "IsValid..." version above but checks a list of types and sets a
104 // an error blaming the given source if the test fails. 105 // an error blaming the given source if the test fails.
105 bool EnsureValidSourcesSubstitutions( 106 bool EnsureValidSourcesSubstitutions(
106 const std::vector<SubstitutionType>& types, 107 const std::vector<SubstitutionType>& types,
107 const ParseNode* origin, 108 const ParseNode* origin,
108 Err* err); 109 Err* err);
109 110
110 #endif // TOOLS_GN_SUBSTITUTION_TYPE_H_ 111 #endif // TOOLS_GN_SUBSTITUTION_TYPE_H_
OLDNEW
« no previous file with comments | « tools/gn/function_toolchain.cc ('k') | tools/gn/substitution_type.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698