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

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

Issue 2909733002: Add information on the requirements for a new Chromium port. (Closed)
Patch Set: 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 | « docs/new_port_policy.md ('k') | no next file » | no next file with comments »
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/string_utils.h" 9 #include "tools/gn/string_utils.h"
10 #include "tools/gn/variables.h" 10 #include "tools/gn/variables.h"
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 os = "linux"; 300 os = "linux";
301 #elif defined(OS_ANDROID) 301 #elif defined(OS_ANDROID)
302 os = "android"; 302 os = "android";
303 #elif defined(OS_NETBSD) 303 #elif defined(OS_NETBSD)
304 os = "netbsd"; 304 os = "netbsd";
305 #elif defined(OS_AIX) 305 #elif defined(OS_AIX)
306 os = "aix"; 306 os = "aix";
307 #else 307 #else
308 #error Unknown OS type. 308 #error Unknown OS type.
309 #endif 309 #endif
310 // NOTE: Adding a new port? Please follow
311 // https://chromium.googlesource.com/chromium/src/+/master/docs/new_port_polic y.md
310 312
311 // Host architecture. 313 // Host architecture.
312 static const char kX86[] = "x86"; 314 static const char kX86[] = "x86";
313 static const char kX64[] = "x64"; 315 static const char kX64[] = "x64";
314 static const char kArm[] = "arm"; 316 static const char kArm[] = "arm";
315 static const char kArm64[] = "arm64"; 317 static const char kArm64[] = "arm64";
316 static const char kMips[] = "mipsel"; 318 static const char kMips[] = "mipsel";
317 static const char kS390X[] = "s390x"; 319 static const char kS390X[] = "s390x";
318 static const char kPPC64[] = "ppc64"; 320 static const char kPPC64[] = "ppc64";
319 const char* arch = nullptr; 321 const char* arch = nullptr;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 Scope* scope) const { 406 Scope* scope) const {
405 lock_.AssertAcquired(); 407 lock_.AssertAcquired();
406 return declared_arguments_per_toolchain_[scope->settings()]; 408 return declared_arguments_per_toolchain_[scope->settings()];
407 } 409 }
408 410
409 Scope::KeyValueMap& Args::OverridesForToolchainLocked( 411 Scope::KeyValueMap& Args::OverridesForToolchainLocked(
410 Scope* scope) const { 412 Scope* scope) const {
411 lock_.AssertAcquired(); 413 lock_.AssertAcquired();
412 return toolchain_overrides_[scope->settings()]; 414 return toolchain_overrides_[scope->settings()];
413 } 415 }
OLDNEW
« no previous file with comments | « docs/new_port_policy.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698