OLD | NEW |
(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 } |
OLD | NEW |