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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/config/compiler/BUILD.gn ('k') | build/toolchain/cros/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/cros/BUILD.gn
diff --git a/build/config/cros/BUILD.gn b/build/config/cros/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..1e6ae37705c181311aa8e865cb5b6adc95875bd1
--- /dev/null
+++ b/build/config/cros/BUILD.gn
@@ -0,0 +1,29 @@
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("//build/toolchain/cros_toolchain.gni")
+
+config("extra_flags") {
+ if (current_toolchain == "//build/toolchain/cros:target") {
+ cflags_c = [ cros_target_extra_cflags ]
+ cflags = [ cros_target_extra_cppflags ]
+ cflags_cc = [ cros_target_extra_cxxflags ]
+ ldflags = [ cros_target_extra_ldflags ]
+ } else if (current_toolchain == "//build/toolchain/cros:host") {
+ cflags_c = [ cros_host_extra_cflags ]
+ cflags = [ cros_host_extra_cppflags ]
+ cflags_cc = [ cros_host_extra_cxxflags ]
+ ldflags = [ cros_host_extra_ldflags ]
+ } else if (current_toolchain == "//build/toolchain/cros:v8_snapshot") {
+ cflags_c = [ cros_v8_snapshot_extra_cflags ]
+ cflags = [ cros_v8_snapshot_extra_cppflags ]
+ cflags_cc = [ cros_v8_snapshot_extra_cxxflags ]
+ ldflags = [ cros_v8_snapshot_extra_ldflags ]
+ } else if (current_toolchain == "//build/toolchain/cros:nacl_bootstrap") {
+ cflags_c = [ cros_nacl_bootstrap_extra_cflags ]
+ cflags = [ cros_nacl_bootstrap_extra_cppflags ]
+ cflags_cc = [ cros_nacl_bootstrap_extra_cxxflags ]
+ ldflags = [ cros_nacl_bootstrap_extra_ldflags ]
+ }
+}
« 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