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 <algorithm> | 5 #include <algorithm> |
6 #include <limits> | 6 #include <limits> |
7 | 7 |
8 #include "tools/gn/err.h" | 8 #include "tools/gn/err.h" |
9 #include "tools/gn/functions.h" | 9 #include "tools/gn/functions.h" |
10 #include "tools/gn/parse_tree.h" | 10 #include "tools/gn/parse_tree.h" |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 block_scope.SetProperty(&kToolchainPropertyKey, toolchain.get()); | 304 block_scope.SetProperty(&kToolchainPropertyKey, toolchain.get()); |
305 block->ExecuteBlockInScope(&block_scope, err); | 305 block->ExecuteBlockInScope(&block_scope, err); |
306 block_scope.SetProperty(&kToolchainPropertyKey, NULL); | 306 block_scope.SetProperty(&kToolchainPropertyKey, NULL); |
307 if (err->has_error()) | 307 if (err->has_error()) |
308 return Value(); | 308 return Value(); |
309 | 309 |
310 // Read deps (if any). | 310 // Read deps (if any). |
311 const Value* deps_value = block_scope.GetValue(variables::kDeps, true); | 311 const Value* deps_value = block_scope.GetValue(variables::kDeps, true); |
312 if (deps_value) { | 312 if (deps_value) { |
313 ExtractListOfLabels( | 313 ExtractListOfLabels( |
| 314 scope->settings()->build_settings(), |
314 *deps_value, block_scope.GetSourceDir(), | 315 *deps_value, block_scope.GetSourceDir(), |
315 ToolchainLabelForScope(&block_scope), &toolchain->deps(), err); | 316 ToolchainLabelForScope(&block_scope), &toolchain->deps(), err); |
316 if (err->has_error()) | 317 if (err->has_error()) |
317 return Value(); | 318 return Value(); |
318 } | 319 } |
319 | 320 |
320 // Read concurrent_links (if any). | 321 // Read concurrent_links (if any). |
321 const Value* concurrent_links_value = | 322 const Value* concurrent_links_value = |
322 block_scope.GetValue("concurrent_links", true); | 323 block_scope.GetValue("concurrent_links", true); |
323 if (concurrent_links_value) { | 324 if (concurrent_links_value) { |
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
911 return Value(); | 912 return Value(); |
912 | 913 |
913 Scope::KeyValueMap values; | 914 Scope::KeyValueMap values; |
914 block_scope.GetCurrentScopeValues(&values); | 915 block_scope.GetCurrentScopeValues(&values); |
915 toolchain->args() = values; | 916 toolchain->args() = values; |
916 | 917 |
917 return Value(); | 918 return Value(); |
918 } | 919 } |
919 | 920 |
920 } // namespace functions | 921 } // namespace functions |
OLD | NEW |