| 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 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 "\n" | 427 "\n" |
| 428 " executable(\"doom_melon\") {\n" | 428 " executable(\"doom_melon\") {\n" |
| 429 " deps = [ \"//foo:bar\" ]\n" | 429 " deps = [ \"//foo:bar\" ]\n" |
| 430 " ...\n" | 430 " ...\n" |
| 431 " assert_no_deps = [\n" | 431 " assert_no_deps = [\n" |
| 432 " \"//evil/*\", # Don't link any code from the evil directory.\n" | 432 " \"//evil/*\", # Don't link any code from the evil directory.\n" |
| 433 " \"//foo:test_support\", # This target is also disallowed.\n" | 433 " \"//foo:test_support\", # This target is also disallowed.\n" |
| 434 " ]\n" | 434 " ]\n" |
| 435 " }\n"; | 435 " }\n"; |
| 436 | 436 |
| 437 const char kBundleData[] = "bundle_data"; |
| 438 const char kBundleData_HelpShort[] = |
| 439 "bundle_data: [file list] Runtime data dependency (Mac/iOS)."; |
| 440 const char kBundleData_Help[] = |
| 441 "bundle_data: Runtime data dependency (Mac/iOS).\n" |
| 442 "\n" |
| 443 " List files that are required at runtime by the current target and\n" |
| 444 " should be copied into the application bundle.\n" |
| 445 "\n" |
| 446 " See also \"gn help copy_bundle_data\".\n"; |
| 447 |
| 448 const char kBundleDataFilter[] = "bundle_data_filter"; |
| 449 const char kBundleDataFilter_HelpShort[] = |
| 450 "bundle_data_filter: [pattern list] Exclusions for copy_bundle_data."; |
| 451 const char kBundleDataFilter_Help[] = |
| 452 "bundle_data_filter: Exclusions for copy_bundle_data.\n" |
| 453 "\n" |
| 454 " List of file patterns that need to be excluded from the application\n" |
| 455 " bundle. All files matching this pattern will be excluded.\n" |
| 456 "\n" |
| 457 " See also \"gn help copy_bundle_data\".\n"; |
| 458 |
| 437 const char kCflags[] = "cflags"; | 459 const char kCflags[] = "cflags"; |
| 438 const char kCflags_HelpShort[] = | 460 const char kCflags_HelpShort[] = |
| 439 "cflags: [string list] Flags passed to all C compiler variants."; | 461 "cflags: [string list] Flags passed to all C compiler variants."; |
| 440 const char kCommonCflagsHelp[] = | 462 const char kCommonCflagsHelp[] = |
| 441 "cflags*: Flags passed to the C compiler.\n" | 463 "cflags*: Flags passed to the C compiler.\n" |
| 442 "\n" | 464 "\n" |
| 443 " A list of strings.\n" | 465 " A list of strings.\n" |
| 444 "\n" | 466 "\n" |
| 445 " \"cflags\" are passed to all invocations of the C, C++, Objective C,\n" | 467 " \"cflags\" are passed to all invocations of the C, C++, Objective C,\n" |
| 446 " and Objective C++ compilers.\n" | 468 " and Objective C++ compilers.\n" |
| (...skipping 990 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1437 } | 1459 } |
| 1438 | 1460 |
| 1439 const VariableInfoMap& GetTargetVariables() { | 1461 const VariableInfoMap& GetTargetVariables() { |
| 1440 static VariableInfoMap info_map; | 1462 static VariableInfoMap info_map; |
| 1441 if (info_map.empty()) { | 1463 if (info_map.empty()) { |
| 1442 INSERT_VARIABLE(AllDependentConfigs) | 1464 INSERT_VARIABLE(AllDependentConfigs) |
| 1443 INSERT_VARIABLE(AllowCircularIncludesFrom) | 1465 INSERT_VARIABLE(AllowCircularIncludesFrom) |
| 1444 INSERT_VARIABLE(Args) | 1466 INSERT_VARIABLE(Args) |
| 1445 INSERT_VARIABLE(Asmflags) | 1467 INSERT_VARIABLE(Asmflags) |
| 1446 INSERT_VARIABLE(AssertNoDeps) | 1468 INSERT_VARIABLE(AssertNoDeps) |
| 1469 INSERT_VARIABLE(BundleData) |
| 1470 INSERT_VARIABLE(BundleDataFilter) |
| 1447 INSERT_VARIABLE(Cflags) | 1471 INSERT_VARIABLE(Cflags) |
| 1448 INSERT_VARIABLE(CflagsC) | 1472 INSERT_VARIABLE(CflagsC) |
| 1449 INSERT_VARIABLE(CflagsCC) | 1473 INSERT_VARIABLE(CflagsCC) |
| 1450 INSERT_VARIABLE(CflagsObjC) | 1474 INSERT_VARIABLE(CflagsObjC) |
| 1451 INSERT_VARIABLE(CflagsObjCC) | 1475 INSERT_VARIABLE(CflagsObjCC) |
| 1452 INSERT_VARIABLE(CheckIncludes) | 1476 INSERT_VARIABLE(CheckIncludes) |
| 1453 INSERT_VARIABLE(CompleteStaticLib) | 1477 INSERT_VARIABLE(CompleteStaticLib) |
| 1454 INSERT_VARIABLE(Configs) | 1478 INSERT_VARIABLE(Configs) |
| 1455 INSERT_VARIABLE(Console) | 1479 INSERT_VARIABLE(Console) |
| 1456 INSERT_VARIABLE(Data) | 1480 INSERT_VARIABLE(Data) |
| (...skipping 19 matching lines...) Expand all Loading... |
| 1476 INSERT_VARIABLE(Sources) | 1500 INSERT_VARIABLE(Sources) |
| 1477 INSERT_VARIABLE(Testonly) | 1501 INSERT_VARIABLE(Testonly) |
| 1478 INSERT_VARIABLE(Visibility) | 1502 INSERT_VARIABLE(Visibility) |
| 1479 } | 1503 } |
| 1480 return info_map; | 1504 return info_map; |
| 1481 } | 1505 } |
| 1482 | 1506 |
| 1483 #undef INSERT_VARIABLE | 1507 #undef INSERT_VARIABLE |
| 1484 | 1508 |
| 1485 } // namespace variables | 1509 } // namespace variables |
| OLD | NEW |