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

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

Issue 2936923002: Add not_needed function (Closed)
Patch Set: Support current scope Created 3 years, 6 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/docs/reference.md » ('j') | tools/gn/functions.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 "tools/gn/args.h" 5 #include "tools/gn/args.h"
6 6
7 #include "base/sys_info.h" 7 #include "base/sys_info.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "tools/gn/scheduler.h"
brettw 2017/06/28 20:16:49 This should be no longer necessary.
Petr Hosek 2017/06/28 23:21:32 Done.
9 #include "tools/gn/string_utils.h" 10 #include "tools/gn/string_utils.h"
10 #include "tools/gn/variables.h" 11 #include "tools/gn/variables.h"
11 12
12 const char kBuildArgs_Help[] = 13 const char kBuildArgs_Help[] =
13 R"(Build Arguments Overview 14 R"(Build Arguments Overview
14 15
15 Build arguments are variables passed in from outside of the build that build 16 Build arguments are variables passed in from outside of the build that build
16 files can query to determine how the build works. 17 files can query to determine how the build works.
17 18
18 How build arguments are set 19 How build arguments are set
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 Scope* scope) const { 407 Scope* scope) const {
407 lock_.AssertAcquired(); 408 lock_.AssertAcquired();
408 return declared_arguments_per_toolchain_[scope->settings()]; 409 return declared_arguments_per_toolchain_[scope->settings()];
409 } 410 }
410 411
411 Scope::KeyValueMap& Args::OverridesForToolchainLocked( 412 Scope::KeyValueMap& Args::OverridesForToolchainLocked(
412 Scope* scope) const { 413 Scope* scope) const {
413 lock_.AssertAcquired(); 414 lock_.AssertAcquired();
414 return toolchain_overrides_[scope->settings()]; 415 return toolchain_overrides_[scope->settings()];
415 } 416 }
OLDNEW
« no previous file with comments | « no previous file | tools/gn/docs/reference.md » ('j') | tools/gn/functions.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698