| OLD | NEW |
| 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 import("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
| 6 if (cpu_arch == "arm") { | 6 if (cpu_arch == "arm") { |
| 7 import("//build/config/arm.gni") | 7 import("//build/config/arm.gni") |
| 8 } | 8 } |
| 9 if (is_posix) { | 9 if (is_posix) { |
| 10 import("//build/config/gcc/gcc_version.gni") | 10 import("//build/config/gcc/gcc_version.gni") |
| 11 } | 11 } |
| 12 | 12 |
| 13 import("//build/toolchain/ccache.gni") |
| 14 |
| 13 declare_args() { | 15 declare_args() { |
| 14 # Normally, Android builds are lightly optimized, even for debug builds, to | 16 # Normally, Android builds are lightly optimized, even for debug builds, to |
| 15 # keep binary size down. Setting this flag to true disables such optimization | 17 # keep binary size down. Setting this flag to true disables such optimization |
| 16 android_full_debug = false | 18 android_full_debug = false |
| 17 | 19 |
| 18 # Whether to use the binary binutils checked into third_party/binutils. | 20 # Whether to use the binary binutils checked into third_party/binutils. |
| 19 # These are not multi-arch so cannot be used except on x86 and x86-64 (the | 21 # These are not multi-arch so cannot be used except on x86 and x86-64 (the |
| 20 # only two architectures that are currently checked in). Turn this off when | 22 # only two architectures that are currently checked in). Turn this off when |
| 21 # you are using a custom toolchain and need to control -B in cflags. | 23 # you are using a custom toolchain and need to control -B in cflags. |
| 22 linux_use_bundled_binutils = is_linux && cpu_arch == "x64" | 24 linux_use_bundled_binutils = is_linux && cpu_arch == "x64" |
| 23 } | 25 } |
| 24 | 26 |
| 25 use_gold = is_linux && cpu_arch == "x64" | 27 use_gold = is_linux && cpu_arch == "x64" |
| 26 | 28 |
| 27 if (!is_win) { | 29 if (!is_win) { |
| 28 # linux_use_debug_fission: whether to use split DWARF debug info | 30 # linux_use_debug_fission: whether to use split DWARF debug info |
| 29 # files. This can reduce link time significantly, but is incompatible | 31 # files. This can reduce link time significantly, but is incompatible |
| 30 # with some utilities such as icecc and ccache. Requires gold and | 32 # with some utilities such as icecc and ccache. Requires gold and |
| 31 # gcc >= 4.8 or clang. | 33 # gcc >= 4.8 or clang. |
| 32 # http://gcc.gnu.org/wiki/DebugFission | 34 # http://gcc.gnu.org/wiki/DebugFission |
| 33 use_debug_fission = use_gold && linux_use_bundled_binutils | 35 use_debug_fission = use_gold && linux_use_bundled_binutils && !use_ccache |
| 34 } | 36 } |
| 35 | 37 |
| 36 # default_include_dirs --------------------------------------------------------- | 38 # default_include_dirs --------------------------------------------------------- |
| 37 # | 39 # |
| 38 # This is a separate config so that third_party code (which would not use the | 40 # This is a separate config so that third_party code (which would not use the |
| 39 # source root and might have conflicting versions of some headers) can remove | 41 # source root and might have conflicting versions of some headers) can remove |
| 40 # this and specify their own include paths. | 42 # this and specify their own include paths. |
| 41 config("default_include_dirs") { | 43 config("default_include_dirs") { |
| 42 include_dirs = [ | 44 include_dirs = [ |
| 43 "//", | 45 "//", |
| (...skipping 926 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 970 cflags += [ "-gsplit-dwarf" ] | 972 cflags += [ "-gsplit-dwarf" ] |
| 971 } | 973 } |
| 972 } | 974 } |
| 973 } | 975 } |
| 974 | 976 |
| 975 config("no_symbols") { | 977 config("no_symbols") { |
| 976 if (!is_win) { | 978 if (!is_win) { |
| 977 cflags = [ "-g0" ] | 979 cflags = [ "-g0" ] |
| 978 } | 980 } |
| 979 } | 981 } |
| OLD | NEW |