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/functions.h" | 5 #include "tools/gn/functions.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <iostream> | 8 #include <iostream> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
605 // set_sources_assignment_filter ----------------------------------------------- | 605 // set_sources_assignment_filter ----------------------------------------------- |
606 | 606 |
607 const char kSetSourcesAssignmentFilter[] = "set_sources_assignment_filter"; | 607 const char kSetSourcesAssignmentFilter[] = "set_sources_assignment_filter"; |
608 const char kSetSourcesAssignmentFilter_HelpShort[] = | 608 const char kSetSourcesAssignmentFilter_HelpShort[] = |
609 "set_sources_assignment_filter: Set a pattern to filter source files."; | 609 "set_sources_assignment_filter: Set a pattern to filter source files."; |
610 const char kSetSourcesAssignmentFilter_Help[] = | 610 const char kSetSourcesAssignmentFilter_Help[] = |
611 "set_sources_assignment_filter: Set a pattern to filter source files.\n" | 611 "set_sources_assignment_filter: Set a pattern to filter source files.\n" |
612 "\n" | 612 "\n" |
613 " The sources assignment filter is a list of patterns that remove files\n" | 613 " The sources assignment filter is a list of patterns that remove files\n" |
614 " from the list implicitly whenever the \"sources\" variable is\n" | 614 " from the list implicitly whenever the \"sources\" variable is\n" |
615 " assigned to. This is intended to be used to globally filter out files\n" | 615 " assigned to. This will do nothing for non-lists.\n" |
616 " with platform-specific naming schemes when they don't apply, for\n" | 616 "\n" |
617 " example, you may want to filter out all \"*_win.cc\" files on non-\n" | 617 " This is intended to be used to globally filter out files with\n" |
618 " Windows platforms.\n" | 618 " platform-specific naming schemes when they don't apply, for example\n" |
| 619 " you may want to filter out all \"*_win.cc\" files on non-Windows\n" |
| 620 " platforms.\n" |
619 "\n" | 621 "\n" |
620 " Typically this will be called once in the master build config script\n" | 622 " Typically this will be called once in the master build config script\n" |
621 " to set up the filter for the current platform. Subsequent calls will\n" | 623 " to set up the filter for the current platform. Subsequent calls will\n" |
622 " overwrite the previous values.\n" | 624 " overwrite the previous values.\n" |
623 "\n" | 625 "\n" |
624 " If you want to bypass the filter and add a file even if it might\n" | 626 " If you want to bypass the filter and add a file even if it might\n" |
625 " be filtered out, call set_sources_assignment_filter([]) to clear the\n" | 627 " be filtered out, call set_sources_assignment_filter([]) to clear the\n" |
626 " list of filters. This will apply until the current scope exits\n" | 628 " list of filters. This will apply until the current scope exits\n" |
627 "\n" | 629 "\n" |
628 "How to use patterns\n" | 630 "How to use patterns\n" |
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1098 } | 1100 } |
1099 | 1101 |
1100 // Otherwise it's a no-block function. | 1102 // Otherwise it's a no-block function. |
1101 if (!VerifyNoBlockForFunctionCall(function, block, err)) | 1103 if (!VerifyNoBlockForFunctionCall(function, block, err)) |
1102 return Value(); | 1104 return Value(); |
1103 return found_function->second.no_block_runner(scope, function, | 1105 return found_function->second.no_block_runner(scope, function, |
1104 args.list_value(), err); | 1106 args.list_value(), err); |
1105 } | 1107 } |
1106 | 1108 |
1107 } // namespace functions | 1109 } // namespace functions |
OLD | NEW |