| 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 " action(\"myscript\") {\n" | 209 " action(\"myscript\") {\n" |
| 210 " # Pass the generated output dir to the script.\n" | 210 " # Pass the generated output dir to the script.\n" |
| 211 " args = [ \"-o\", rebase_path(target_gen_dir, root_build_dir) ]" | 211 " args = [ \"-o\", rebase_path(target_gen_dir, root_build_dir) ]" |
| 212 "\n" | 212 "\n" |
| 213 " }\n"; | 213 " }\n"; |
| 214 | 214 |
| 215 const char kTargetOutDir[] = "target_out_dir"; | 215 const char kTargetOutDir[] = "target_out_dir"; |
| 216 const char kTargetOutDir_HelpShort[] = | 216 const char kTargetOutDir_HelpShort[] = |
| 217 "target_out_dir: [string] Directory for target output files."; | 217 "target_out_dir: [string] Directory for target output files."; |
| 218 const char kTargetOutDir_Help[] = | 218 const char kTargetOutDir_Help[] = |
| 219 "target_out_dir: [string] Directory for target output files." | 219 "target_out_dir: [string] Directory for target output files.\n" |
| 220 "\n" | 220 "\n" |
| 221 " Absolute path to the target's generated file directory. If your\n" | 221 " Absolute path to the target's generated file directory. If your\n" |
| 222 " current target is in \"//tools/doom_melon\" then this value might be\n" | 222 " current target is in \"//tools/doom_melon\" then this value might be\n" |
| 223 " \"//out/Debug/obj/tools/doom_melon\". It will not have a trailing\n" | 223 " \"//out/Debug/obj/tools/doom_melon\". It will not have a trailing\n" |
| 224 " slash.\n" | 224 " slash.\n" |
| 225 "\n" | 225 "\n" |
| 226 " This is primarily useful for setting up arguments for calling\n" | 226 " This is primarily useful for setting up arguments for calling\n" |
| 227 " scripts. If you are passing this to a script, you will want to pass it\n" | 227 " scripts. If you are passing this to a script, you will want to pass it\n" |
| 228 " through rebase_path() (see \"gn help rebase_path\") to convert it\n" | 228 " through rebase_path() (see \"gn help rebase_path\") to convert it\n" |
| 229 " to be relative to the build directory.\n" | 229 " to be relative to the build directory.\n" |
| (...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 888 INSERT_VARIABLE(Script) | 888 INSERT_VARIABLE(Script) |
| 889 INSERT_VARIABLE(Sources) | 889 INSERT_VARIABLE(Sources) |
| 890 INSERT_VARIABLE(Visibility) | 890 INSERT_VARIABLE(Visibility) |
| 891 } | 891 } |
| 892 return info_map; | 892 return info_map; |
| 893 } | 893 } |
| 894 | 894 |
| 895 #undef INSERT_VARIABLE | 895 #undef INSERT_VARIABLE |
| 896 | 896 |
| 897 } // namespace variables | 897 } // namespace variables |
| OLD | NEW |