| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 " - \"win\"\n"; | 45 " - \"win\"\n"; |
| 46 | 46 |
| 47 const char kTargetCpu[] = "target_cpu"; | 47 const char kTargetCpu[] = "target_cpu"; |
| 48 const char kTargetCpu_HelpShort[] = | 48 const char kTargetCpu_HelpShort[] = |
| 49 "target_cpu: [string] The desired cpu architecture for the build."; | 49 "target_cpu: [string] The desired cpu architecture for the build."; |
| 50 const char kTargetCpu_Help[] = | 50 const char kTargetCpu_Help[] = |
| 51 "target_cpu: The desired cpu architecture for the build.\n" | 51 "target_cpu: The desired cpu architecture for the build.\n" |
| 52 "\n" | 52 "\n" |
| 53 " This value should be used to indicate the desired architecture for\n" | 53 " This value should be used to indicate the desired architecture for\n" |
| 54 " the primary objects of the build. It will match the cpu architecture\n" | 54 " the primary objects of the build. It will match the cpu architecture\n" |
| 55 " of the default toolchain.\n" | 55 " of the default toolchain, but not necessarily the current toolchain.\n" |
| 56 "\n" | 56 "\n" |
| 57 " In many cases, this is the same as \"host_cpu\", but in the case\n" | 57 " In many cases, this is the same as \"host_cpu\", but in the case\n" |
| 58 " of cross-compiles, this can be set to something different. This \n" | 58 " of cross-compiles, this can be set to something different. This\n" |
| 59 " value is different from \"current_cpu\" in that it can be referenced\n" | 59 " value is different from \"current_cpu\" in that it does not change\n" |
| 60 " from inside any toolchain. This value can also be ignored if it is\n" | 60 " based on the current toolchain. When writing rules, \"current_cpu\"\n" |
| 61 " not needed or meaningful for a project.\n" | 61 " should be used rather than \"target_cpu\" most of the time.\n" |
| 62 "\n" | 62 "\n" |
| 63 " This value is not used internally by GN for any purpose, so it\n" | 63 " This value is not used internally by GN for any purpose, so it\n" |
| 64 " may be set to whatever value is needed for the build.\n" | 64 " may be set to whatever value is needed for the build.\n" |
| 65 " GN defaults this value to the empty string (\"\") and the\n" | 65 " GN defaults this value to the empty string (\"\") and the\n" |
| 66 " configuration files should set it to an appropriate value\n" | 66 " configuration files should set it to an appropriate value\n" |
| 67 " (e.g., setting it to the value of \"host_cpu\") if it is not\n" | 67 " (e.g., setting it to the value of \"host_cpu\") if it is not\n" |
| 68 " overridden on the command line or in the args.gn file.\n" | 68 " overridden on the command line or in the args.gn file.\n" |
| 69 "\n" | 69 "\n" |
| 70 " Where practical, use one of the following list of common values:\n" | 70 " Where practical, use one of the following list of common values:\n" |
| 71 "\n" | 71 "\n" |
| (...skipping 1656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1728 INSERT_VARIABLE(Testonly) | 1728 INSERT_VARIABLE(Testonly) |
| 1729 INSERT_VARIABLE(Visibility) | 1729 INSERT_VARIABLE(Visibility) |
| 1730 INSERT_VARIABLE(WriteRuntimeDeps) | 1730 INSERT_VARIABLE(WriteRuntimeDeps) |
| 1731 } | 1731 } |
| 1732 return info_map; | 1732 return info_map; |
| 1733 } | 1733 } |
| 1734 | 1734 |
| 1735 #undef INSERT_VARIABLE | 1735 #undef INSERT_VARIABLE |
| 1736 | 1736 |
| 1737 } // namespace variables | 1737 } // namespace variables |
| OLD | NEW |