| 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 724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 735 " not possible for Ninja to know about this dependency.\n" | 735 " not possible for Ninja to know about this dependency.\n" |
| 736 "\n" | 736 "\n" |
| 737 " Source prerequisites solves this problem by declaring such\n" | 737 " Source prerequisites solves this problem by declaring such\n" |
| 738 " dependencies. It will introduce a Ninja \"implicit\" dependency for\n" | 738 " dependencies. It will introduce a Ninja \"implicit\" dependency for\n" |
| 739 " each source file in the target on the listed files.\n" | 739 " each source file in the target on the listed files.\n" |
| 740 "\n" | 740 "\n" |
| 741 " For binary targets, the files in the \"source_prereqs\" should all be\n" | 741 " For binary targets, the files in the \"source_prereqs\" should all be\n" |
| 742 " listed in the \"outputs\" section of another target. There is no\n" | 742 " listed in the \"outputs\" section of another target. There is no\n" |
| 743 " reason to declare static source files as source prerequisites since\n" | 743 " reason to declare static source files as source prerequisites since\n" |
| 744 " the normal include file dependency management will handle them more\n" | 744 " the normal include file dependency management will handle them more\n" |
| 745 " efficiently anwyay.\n" | 745 " efficiently anyway.\n" |
| 746 "\n" | 746 "\n" |
| 747 " For custom script targets that don't generate \".d\" files, the\n" | 747 " For custom script targets that don't generate \".d\" files, the\n" |
| 748 " \"source_prereqs\" section is how you can list known compile-time\n" | 748 " \"source_prereqs\" section is how you can list known compile-time\n" |
| 749 " dependencies your script may have.\n" | 749 " dependencies your script may have.\n" |
| 750 "\n" | 750 "\n" |
| 751 " See also \"gn help data\" and \"gn help datadeps\" (which declare\n" | 751 " See also \"gn help data\" and \"gn help datadeps\" (which declare\n" |
| 752 " run-time rather than compile-time dependencies), and\n" | 752 " run-time rather than compile-time dependencies), and\n" |
| 753 " \"gn help hard_dep\" which allows you to declare the source dependency\n" | 753 " \"gn help hard_dep\" which allows you to declare the source dependency\n" |
| 754 " on the target generating a file rather than the target consuming it.\n" | 754 " on the target generating a file rather than the target consuming it.\n" |
| 755 "\n" | 755 "\n" |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 837 INSERT_VARIABLE(Script) | 837 INSERT_VARIABLE(Script) |
| 838 INSERT_VARIABLE(SourcePrereqs) | 838 INSERT_VARIABLE(SourcePrereqs) |
| 839 INSERT_VARIABLE(Sources) | 839 INSERT_VARIABLE(Sources) |
| 840 } | 840 } |
| 841 return info_map; | 841 return info_map; |
| 842 } | 842 } |
| 843 | 843 |
| 844 #undef INSERT_VARIABLE | 844 #undef INSERT_VARIABLE |
| 845 | 845 |
| 846 } // namespace variables | 846 } // namespace variables |
| OLD | NEW |