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

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

Issue 2239943002: Forward bundle product_type to the compile_xcassets tool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix grammar. Created 4 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
« no previous file with comments | « tools/gn/ninja_create_bundle_target_writer_unittest.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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 // Valid for alink only. 63 // Valid for alink only.
64 SUBSTITUTION_ARFLAGS, // {{arflags}} 64 SUBSTITUTION_ARFLAGS, // {{arflags}}
65 65
66 // Valid for bundle_data targets. 66 // Valid for bundle_data targets.
67 SUBSTITUTION_BUNDLE_ROOT_DIR, // {{bundle_root_dir}} 67 SUBSTITUTION_BUNDLE_ROOT_DIR, // {{bundle_root_dir}}
68 SUBSTITUTION_BUNDLE_RESOURCES_DIR, // {{bundle_resources_dir}} 68 SUBSTITUTION_BUNDLE_RESOURCES_DIR, // {{bundle_resources_dir}}
69 SUBSTITUTION_BUNDLE_EXECUTABLE_DIR, // {{bundle_executable_dir}} 69 SUBSTITUTION_BUNDLE_EXECUTABLE_DIR, // {{bundle_executable_dir}}
70 SUBSTITUTION_BUNDLE_PLUGINS_DIR, // {{bundle_plugins_dir}} 70 SUBSTITUTION_BUNDLE_PLUGINS_DIR, // {{bundle_plugins_dir}}
71 71
72 // Valid for compile_xcassets tool.
73 SUBSTITUTION_BUNDLE_PRODUCT_TYPE, // {{bundle_product_type}}
74
72 // Used only for the args of actions. 75 // Used only for the args of actions.
73 SUBSTITUTION_RSP_FILE_NAME, // {{response_file_name}} 76 SUBSTITUTION_RSP_FILE_NAME, // {{response_file_name}}
74 77
75 SUBSTITUTION_NUM_TYPES // Must be last. 78 SUBSTITUTION_NUM_TYPES // Must be last.
76 }; 79 };
77 80
78 // An array of size SUBSTITUTION_NUM_TYPES that lists the names of the 81 // An array of size SUBSTITUTION_NUM_TYPES that lists the names of the
79 // substitution patterns, including the curly braces. So, for example, 82 // substitution patterns, including the curly braces. So, for example,
80 // kSubstitutionNames[SUBSTITUTION_SOURCE] == "{{source}}". 83 // kSubstitutionNames[SUBSTITUTION_SOURCE] == "{{source}}".
81 extern const char* kSubstitutionNames[SUBSTITUTION_NUM_TYPES]; 84 extern const char* kSubstitutionNames[SUBSTITUTION_NUM_TYPES];
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 bool IsValidCompileXCassetsSubstitution(SubstitutionType type); 128 bool IsValidCompileXCassetsSubstitution(SubstitutionType type);
126 129
127 // Like the "IsValid..." version above but checks a list of types and sets a 130 // Like the "IsValid..." version above but checks a list of types and sets a
128 // an error blaming the given source if the test fails. 131 // an error blaming the given source if the test fails.
129 bool EnsureValidSourcesSubstitutions( 132 bool EnsureValidSourcesSubstitutions(
130 const std::vector<SubstitutionType>& types, 133 const std::vector<SubstitutionType>& types,
131 const ParseNode* origin, 134 const ParseNode* origin,
132 Err* err); 135 Err* err);
133 136
134 #endif // TOOLS_GN_SUBSTITUTION_TYPE_H_ 137 #endif // TOOLS_GN_SUBSTITUTION_TYPE_H_
OLDNEW
« no previous file with comments | « tools/gn/ninja_create_bundle_target_writer_unittest.cc ('k') | tools/gn/substitution_type.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698