OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #include "tools/gn/variables.h" | 5 #include "tools/gn/variables.h" |
6 | 6 |
7 namespace variables { | 7 namespace variables { |
8 | 8 |
9 // Built-in variables ---------------------------------------------------------- | 9 // Built-in variables ---------------------------------------------------------- |
10 | 10 |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 " \"gn help source_expansion\") to insert the source file names.\n" | 236 " \"gn help source_expansion\") to insert the source file names.\n" |
237 "\n" | 237 "\n" |
238 " See also \"gn help custom\".\n"; | 238 " See also \"gn help custom\".\n"; |
239 | 239 |
240 const char kCflags[] = "cflags"; | 240 const char kCflags[] = "cflags"; |
241 const char kCflags_HelpShort[] = | 241 const char kCflags_HelpShort[] = |
242 "cflags: [string list] Flags passed to all C compiler variants."; | 242 "cflags: [string list] Flags passed to all C compiler variants."; |
243 // Avoid writing long help for each variant. | 243 // Avoid writing long help for each variant. |
244 #define COMMON_FLAGS_HELP \ | 244 #define COMMON_FLAGS_HELP \ |
245 "\n"\ | 245 "\n"\ |
246 " Flags are never quoted. If your flag includes a string that must be\n"\ | 246 " Flags will be quoted automatically if they contain a space.\n" |
247 " quoted, you must do it yourself. This also means that you can\n"\ | |
248 " specify more than one flag in a string if necessary (\"--foo --bar\")\n"\ | |
249 " and have them be seen as separate by the tool.\n" | |
250 const char kCommonCflagsHelp[] = | 247 const char kCommonCflagsHelp[] = |
251 "cflags*: Flags passed to the C compiler.\n" | 248 "cflags*: Flags passed to the C compiler.\n" |
252 "\n" | 249 "\n" |
253 " A list of strings.\n" | 250 " A list of strings.\n" |
254 "\n" | 251 "\n" |
255 " \"cflags\" are passed to all invocations of the C, C++, Objective C,\n" | 252 " \"cflags\" are passed to all invocations of the C, C++, Objective C,\n" |
256 " and Objective C++ compilers.\n" | 253 " and Objective C++ compilers.\n" |
257 "\n" | 254 "\n" |
258 " To target one of these variants individually, use \"cflags_c\",\n" | 255 " To target one of these variants individually, use \"cflags_c\",\n" |
259 " \"cflags_cc\", \"cflags_objc\", and \"cflags_objcc\", respectively.\n" | 256 " \"cflags_cc\", \"cflags_objc\", and \"cflags_objcc\", respectively.\n" |
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
693 INSERT_VARIABLE(Script) | 690 INSERT_VARIABLE(Script) |
694 INSERT_VARIABLE(SourcePrereqs) | 691 INSERT_VARIABLE(SourcePrereqs) |
695 INSERT_VARIABLE(Sources) | 692 INSERT_VARIABLE(Sources) |
696 } | 693 } |
697 return info_map; | 694 return info_map; |
698 } | 695 } |
699 | 696 |
700 #undef INSERT_VARIABLE | 697 #undef INSERT_VARIABLE |
701 | 698 |
702 } // namespace variables | 699 } // namespace variables |
OLD | NEW |