Chromium Code Reviews| 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/environment.h" | 9 #include "base/environment.h" |
| 10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| (...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 640 INSERT_FUNCTION(Component, true) | 640 INSERT_FUNCTION(Component, true) |
| 641 INSERT_FUNCTION(Executable, true) | 641 INSERT_FUNCTION(Executable, true) |
| 642 INSERT_FUNCTION(Group, true) | 642 INSERT_FUNCTION(Group, true) |
| 643 INSERT_FUNCTION(SharedLibrary, true) | 643 INSERT_FUNCTION(SharedLibrary, true) |
| 644 INSERT_FUNCTION(SourceSet, true) | 644 INSERT_FUNCTION(SourceSet, true) |
| 645 INSERT_FUNCTION(StaticLibrary, true) | 645 INSERT_FUNCTION(StaticLibrary, true) |
| 646 INSERT_FUNCTION(Test, true) | 646 INSERT_FUNCTION(Test, true) |
| 647 | 647 |
| 648 INSERT_FUNCTION(Assert, false) | 648 INSERT_FUNCTION(Assert, false) |
| 649 INSERT_FUNCTION(Config, false) | 649 INSERT_FUNCTION(Config, false) |
| 650 INSERT_FUNCTION(Copy, false) | 650 INSERT_FUNCTION(Copy, true) |
|
cjhopman
2014/05/07 20:19:18
nit: Move this up into the group of other target f
| |
| 651 INSERT_FUNCTION(DeclareArgs, false) | 651 INSERT_FUNCTION(DeclareArgs, false) |
| 652 INSERT_FUNCTION(Defined, false) | 652 INSERT_FUNCTION(Defined, false) |
| 653 INSERT_FUNCTION(ExecScript, false) | 653 INSERT_FUNCTION(ExecScript, false) |
| 654 INSERT_FUNCTION(GetEnv, false) | 654 INSERT_FUNCTION(GetEnv, false) |
| 655 INSERT_FUNCTION(GetTargetOutputs, false) | 655 INSERT_FUNCTION(GetTargetOutputs, false) |
| 656 INSERT_FUNCTION(Import, false) | 656 INSERT_FUNCTION(Import, false) |
| 657 INSERT_FUNCTION(Print, false) | 657 INSERT_FUNCTION(Print, false) |
| 658 INSERT_FUNCTION(ProcessFileTemplate, false) | 658 INSERT_FUNCTION(ProcessFileTemplate, false) |
| 659 INSERT_FUNCTION(ReadFile, false) | 659 INSERT_FUNCTION(ReadFile, false) |
| 660 INSERT_FUNCTION(RebasePath, false) | 660 INSERT_FUNCTION(RebasePath, false) |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 733 return found_function->second.executed_block_runner( | 733 return found_function->second.executed_block_runner( |
| 734 function, args.list_value(), &block_scope, err); | 734 function, args.list_value(), &block_scope, err); |
| 735 } | 735 } |
| 736 | 736 |
| 737 // Otherwise it's a no-block function. | 737 // Otherwise it's a no-block function. |
| 738 return found_function->second.no_block_runner(scope, function, | 738 return found_function->second.no_block_runner(scope, function, |
| 739 args.list_value(), err); | 739 args.list_value(), err); |
| 740 } | 740 } |
| 741 | 741 |
| 742 } // namespace functions | 742 } // namespace functions |
| OLD | NEW |