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 <iostream> | 7 #include <iostream> |
8 | 8 |
9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
10 #include "tools/gn/config.h" | 10 #include "tools/gn/config.h" |
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 INSERT_FUNCTION(Group) | 560 INSERT_FUNCTION(Group) |
561 INSERT_FUNCTION(Import) | 561 INSERT_FUNCTION(Import) |
562 INSERT_FUNCTION(Print) | 562 INSERT_FUNCTION(Print) |
563 INSERT_FUNCTION(ProcessFileTemplate) | 563 INSERT_FUNCTION(ProcessFileTemplate) |
564 INSERT_FUNCTION(ReadFile) | 564 INSERT_FUNCTION(ReadFile) |
565 INSERT_FUNCTION(RebasePath) | 565 INSERT_FUNCTION(RebasePath) |
566 INSERT_FUNCTION(SetDefaults) | 566 INSERT_FUNCTION(SetDefaults) |
567 INSERT_FUNCTION(SetDefaultToolchain) | 567 INSERT_FUNCTION(SetDefaultToolchain) |
568 INSERT_FUNCTION(SetSourcesAssignmentFilter) | 568 INSERT_FUNCTION(SetSourcesAssignmentFilter) |
569 INSERT_FUNCTION(SharedLibrary) | 569 INSERT_FUNCTION(SharedLibrary) |
| 570 INSERT_FUNCTION(SourceSet) |
570 INSERT_FUNCTION(StaticLibrary) | 571 INSERT_FUNCTION(StaticLibrary) |
571 INSERT_FUNCTION(Template) | 572 INSERT_FUNCTION(Template) |
572 INSERT_FUNCTION(Test) | 573 INSERT_FUNCTION(Test) |
573 INSERT_FUNCTION(Tool) | 574 INSERT_FUNCTION(Tool) |
574 INSERT_FUNCTION(Toolchain) | 575 INSERT_FUNCTION(Toolchain) |
575 INSERT_FUNCTION(ToolchainArgs) | 576 INSERT_FUNCTION(ToolchainArgs) |
576 INSERT_FUNCTION(WriteFile) | 577 INSERT_FUNCTION(WriteFile) |
577 | 578 |
578 #undef INSERT_FUNCTION | 579 #undef INSERT_FUNCTION |
579 } | 580 } |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
642 return found_function->second.executed_block_runner( | 643 return found_function->second.executed_block_runner( |
643 function, args.list_value(), &block_scope, err); | 644 function, args.list_value(), &block_scope, err); |
644 } | 645 } |
645 | 646 |
646 // Otherwise it's a no-block function. | 647 // Otherwise it's a no-block function. |
647 return found_function->second.no_block_runner(scope, function, | 648 return found_function->second.no_block_runner(scope, function, |
648 args.list_value(), err); | 649 args.list_value(), err); |
649 } | 650 } |
650 | 651 |
651 } // namespace functions | 652 } // namespace functions |
OLD | NEW |