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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 "cflags: [string list] Flags passed to all C compiler variants."; | 396 "cflags: [string list] Flags passed to all C compiler variants."; |
397 const char kCommonCflagsHelp[] = | 397 const char kCommonCflagsHelp[] = |
398 "cflags*: Flags passed to the C compiler.\n" | 398 "cflags*: Flags passed to the C compiler.\n" |
399 "\n" | 399 "\n" |
400 " A list of strings.\n" | 400 " A list of strings.\n" |
401 "\n" | 401 "\n" |
402 " \"cflags\" are passed to all invocations of the C, C++, Objective C,\n" | 402 " \"cflags\" are passed to all invocations of the C, C++, Objective C,\n" |
403 " and Objective C++ compilers.\n" | 403 " and Objective C++ compilers.\n" |
404 "\n" | 404 "\n" |
405 " To target one of these variants individually, use \"cflags_c\",\n" | 405 " To target one of these variants individually, use \"cflags_c\",\n" |
406 " \"cflags_cc\", \"cflags_objc\", and \"cflags_objcc\", respectively.\n" | 406 " \"cflags_cc\", \"cflags_objc\", and \"cflags_objcc\",\n" |
407 " These variant-specific versions will be appended to the \"cflags\".\n" | 407 " respectively.\n" |
| 408 "\n" |
| 409 " These variant-specific versions of cflags* will be appended to the\n" |
| 410 " \"cflags\".\n" |
408 COMMON_ORDERING_HELP; | 411 COMMON_ORDERING_HELP; |
409 const char* kCflags_Help = kCommonCflagsHelp; | 412 const char* kCflags_Help = kCommonCflagsHelp; |
410 | 413 |
| 414 const char kAsmflags[] = "asmflags"; |
| 415 const char kAsmflags_HelpShort[] = |
| 416 "asmflags: [string list] Flags passed to any assembly compiler."; |
| 417 const char* kAsmflags_Help = |
| 418 "asmflags: Flags passed to any assembly compiler.\n" |
| 419 "\n" |
| 420 " A list of strings.\n" |
| 421 "\n" |
| 422 " \"asmflags\" are passed to any invocation of a tool that takes an\n" |
| 423 " .asm or .S file as input.\n"; |
| 424 |
411 const char kCflagsC[] = "cflags_c"; | 425 const char kCflagsC[] = "cflags_c"; |
412 const char kCflagsC_HelpShort[] = | 426 const char kCflagsC_HelpShort[] = |
413 "cflags_c: [string list] Flags passed to the C compiler."; | 427 "cflags_c: [string list] Flags passed to the C compiler."; |
414 const char* kCflagsC_Help = kCommonCflagsHelp; | 428 const char* kCflagsC_Help = kCommonCflagsHelp; |
415 | 429 |
416 const char kCflagsCC[] = "cflags_cc"; | 430 const char kCflagsCC[] = "cflags_cc"; |
417 const char kCflagsCC_HelpShort[] = | 431 const char kCflagsCC_HelpShort[] = |
418 "cflags_cc: [string list] Flags passed to the C++ compiler."; | 432 "cflags_cc: [string list] Flags passed to the C++ compiler."; |
419 const char* kCflagsCC_Help = kCommonCflagsHelp; | 433 const char* kCflagsCC_Help = kCommonCflagsHelp; |
420 | 434 |
(...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1293 INSERT_VARIABLE(Sources) | 1307 INSERT_VARIABLE(Sources) |
1294 INSERT_VARIABLE(Testonly) | 1308 INSERT_VARIABLE(Testonly) |
1295 INSERT_VARIABLE(Visibility) | 1309 INSERT_VARIABLE(Visibility) |
1296 } | 1310 } |
1297 return info_map; | 1311 return info_map; |
1298 } | 1312 } |
1299 | 1313 |
1300 #undef INSERT_VARIABLE | 1314 #undef INSERT_VARIABLE |
1301 | 1315 |
1302 } // namespace variables | 1316 } // namespace variables |
OLD | NEW |