Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Side by Side Diff: tools/gn/function_toolchain.cc

Issue 1690843002: gn: Add runtime_link_output to tool("solib") (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | tools/gn/runtime_deps.cc » ('j') | tools/gn/runtime_deps.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <algorithm> 5 #include <algorithm>
6 #include <limits> 6 #include <limits>
7 #include <utility> 7 #include <utility>
8 8
9 #include "tools/gn/err.h" 9 #include "tools/gn/err.h"
10 #include "tools/gn/functions.h" 10 #include "tools/gn/functions.h"
(...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after
820 scoped_ptr<Tool> tool(new Tool); 820 scoped_ptr<Tool> tool(new Tool);
821 821
822 if (!ReadPattern(&block_scope, "command", subst_validator, tool.get(), 822 if (!ReadPattern(&block_scope, "command", subst_validator, tool.get(),
823 &Tool::set_command, err) || 823 &Tool::set_command, err) ||
824 !ReadOutputExtension(&block_scope, tool.get(), err) || 824 !ReadOutputExtension(&block_scope, tool.get(), err) ||
825 !ReadPattern(&block_scope, "depfile", subst_validator, tool.get(), 825 !ReadPattern(&block_scope, "depfile", subst_validator, tool.get(),
826 &Tool::set_depfile, err) || 826 &Tool::set_depfile, err) ||
827 !ReadDepsFormat(&block_scope, tool.get(), err) || 827 !ReadDepsFormat(&block_scope, tool.get(), err) ||
828 !ReadPattern(&block_scope, "description", subst_validator, tool.get(), 828 !ReadPattern(&block_scope, "description", subst_validator, tool.get(),
829 &Tool::set_description, err) || 829 &Tool::set_description, err) ||
830 !ReadString(&block_scope, "lib_switch", tool.get(), 830 !ReadString(&block_scope, "lib_switch", tool.get(), &Tool::set_lib_switch,
831 &Tool::set_lib_switch, err) || 831 err) ||
832 !ReadString(&block_scope, "lib_dir_switch", tool.get(), 832 !ReadString(&block_scope, "lib_dir_switch", tool.get(),
833 &Tool::set_lib_dir_switch, err) || 833 &Tool::set_lib_dir_switch, err) ||
834 !ReadPattern(&block_scope, "link_output", subst_validator, tool.get(), 834 !ReadPattern(&block_scope, "link_output", subst_validator, tool.get(),
835 &Tool::set_link_output, err) || 835 &Tool::set_link_output, err) ||
836 !ReadPattern(&block_scope, "depend_output", subst_validator, tool.get(), 836 !ReadPattern(&block_scope, "depend_output", subst_validator, tool.get(),
837 &Tool::set_depend_output, err) || 837 &Tool::set_depend_output, err) ||
838 !ReadPattern(&block_scope, "runtime_link_output", subst_validator,
839 tool.get(), &Tool::set_runtime_link_output, err) ||
838 !ReadString(&block_scope, "output_prefix", tool.get(), 840 !ReadString(&block_scope, "output_prefix", tool.get(),
839 &Tool::set_output_prefix, err) || 841 &Tool::set_output_prefix, err) ||
840 !ReadPrecompiledHeaderType(&block_scope, tool.get(), err) || 842 !ReadPrecompiledHeaderType(&block_scope, tool.get(), err) ||
841 !ReadBool(&block_scope, "restat", tool.get(), &Tool::set_restat, err) || 843 !ReadBool(&block_scope, "restat", tool.get(), &Tool::set_restat, err) ||
842 !ReadPattern(&block_scope, "rspfile", subst_validator, tool.get(), 844 !ReadPattern(&block_scope, "rspfile", subst_validator, tool.get(),
843 &Tool::set_rspfile, err) || 845 &Tool::set_rspfile, err) ||
844 !ReadPattern(&block_scope, "rspfile_content", subst_validator, tool.get(), 846 !ReadPattern(&block_scope, "rspfile_content", subst_validator, tool.get(),
845 &Tool::set_rspfile_content, err)) { 847 &Tool::set_rspfile_content, err)) {
846 return Value(); 848 return Value();
847 } 849 }
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
967 return Value(); 969 return Value();
968 970
969 Scope::KeyValueMap values; 971 Scope::KeyValueMap values;
970 block_scope.GetCurrentScopeValues(&values); 972 block_scope.GetCurrentScopeValues(&values);
971 toolchain->args() = values; 973 toolchain->args() = values;
972 974
973 return Value(); 975 return Value();
974 } 976 }
975 977
976 } // namespace functions 978 } // namespace functions
OLDNEW
« no previous file with comments | « no previous file | tools/gn/runtime_deps.cc » ('j') | tools/gn/runtime_deps.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698