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

Side by Side Diff: build/config/cros/BUILD.gn

Issue 2202873002: Rework approach to allowing extra flags for CrOS builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add_cros_nacl_bootstrap_args
Patch Set: fix typos, type checking Created 4 years, 4 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 | « build/config/compiler/BUILD.gn ('k') | build/toolchain/cros/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 import("//build/toolchain/cros_toolchain.gni")
6
7 config("extra_flags") {
8 if (current_toolchain == "//build/toolchain/cros:target") {
9 cflags_c = [ cros_target_extra_cflags ]
10 cflags = [ cros_target_extra_cppflags ]
11 cflags_cc = [ cros_target_extra_cxxflags ]
12 ldflags = [ cros_target_extra_ldflags ]
13 } else if (current_toolchain == "//build/toolchain/cros:host") {
14 cflags_c = [ cros_host_extra_cflags ]
15 cflags = [ cros_host_extra_cppflags ]
16 cflags_cc = [ cros_host_extra_cxxflags ]
17 ldflags = [ cros_host_extra_ldflags ]
18 } else if (current_toolchain == "//build/toolchain/cros:v8_snapshot") {
19 cflags_c = [ cros_v8_snapshot_extra_cflags ]
20 cflags = [ cros_v8_snapshot_extra_cppflags ]
21 cflags_cc = [ cros_v8_snapshot_extra_cxxflags ]
22 ldflags = [ cros_v8_snapshot_extra_ldflags ]
23 } else if (current_toolchain == "//build/toolchain/cros:nacl_bootstrap") {
24 cflags_c = [ cros_nacl_bootstrap_extra_cflags ]
25 cflags = [ cros_nacl_bootstrap_extra_cppflags ]
26 cflags_cc = [ cros_nacl_bootstrap_extra_cxxflags ]
27 ldflags = [ cros_nacl_bootstrap_extra_ldflags ]
28 }
29 }
OLDNEW
« no previous file with comments | « build/config/compiler/BUILD.gn ('k') | build/toolchain/cros/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698