| 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 import("//build/config/chrome_build.gni") | 6 import("//build/config/chrome_build.gni") |
| 7 import("//build/config/compiler/compiler.gni") | 7 import("//build/config/compiler/compiler.gni") |
| 8 import("//build/config/nacl/config.gni") | 8 import("//build/config/nacl/config.gni") |
| 9 import("//build/toolchain/cc_wrapper.gni") | 9 import("//build/toolchain/cc_wrapper.gni") |
| 10 import("//build/toolchain/toolchain.gni") | 10 import("//build/toolchain/toolchain.gni") |
| 11 import("//build_overrides/build.gni") |
| 11 | 12 |
| 12 if (current_cpu == "arm" || current_cpu == "arm64") { | 13 if (current_cpu == "arm" || current_cpu == "arm64") { |
| 13 import("//build/config/arm.gni") | 14 import("//build/config/arm.gni") |
| 14 } | 15 } |
| 15 if (current_cpu == "mipsel" || current_cpu == "mips64el") { | 16 if (current_cpu == "mipsel" || current_cpu == "mips64el") { |
| 16 import("//build/config/mips.gni") | 17 import("//build/config/mips.gni") |
| 17 } | 18 } |
| 18 if (is_win) { | 19 if (is_win) { |
| 19 import("//build/config/win/visual_studio_version.gni") | 20 import("//build/config/win/visual_studio_version.gni") |
| 20 } | 21 } |
| (...skipping 10 matching lines...) Expand all Loading... |
| 31 | 32 |
| 32 # Normally, Android builds are lightly optimized, even for debug builds, to | 33 # Normally, Android builds are lightly optimized, even for debug builds, to |
| 33 # keep binary size down. Setting this flag to true disables such optimization | 34 # keep binary size down. Setting this flag to true disables such optimization |
| 34 android_full_debug = false | 35 android_full_debug = false |
| 35 | 36 |
| 36 # Whether to use the binary binutils checked into third_party/binutils. | 37 # Whether to use the binary binutils checked into third_party/binutils. |
| 37 # These are not multi-arch so cannot be used except on x86 and x86-64 (the | 38 # These are not multi-arch so cannot be used except on x86 and x86-64 (the |
| 38 # only two architectures that are currently checked in). Turn this off when | 39 # only two architectures that are currently checked in). Turn this off when |
| 39 # you are using a custom toolchain and need to control -B in cflags. | 40 # you are using a custom toolchain and need to control -B in cflags. |
| 40 linux_use_bundled_binutils = | 41 linux_use_bundled_binutils = |
| 41 is_linux && (current_cpu == "x64" || current_cpu == "x86") | 42 linux_use_bundled_binutils_override && is_linux && |
| 43 (current_cpu == "x64" || current_cpu == "x86") |
| 42 binutils_path = rebase_path("//third_party/binutils/Linux_x64/Release/bin", | 44 binutils_path = rebase_path("//third_party/binutils/Linux_x64/Release/bin", |
| 43 root_build_dir) | 45 root_build_dir) |
| 44 | 46 |
| 45 # Compile in such a way as to make it possible for the profiler to unwind full | 47 # Compile in such a way as to make it possible for the profiler to unwind full |
| 46 # stack frames. Setting this flag has a large effect on the performance of the | 48 # stack frames. Setting this flag has a large effect on the performance of the |
| 47 # generated code than just setting profiling, but gives the profiler more | 49 # generated code than just setting profiling, but gives the profiler more |
| 48 # information to analyze. | 50 # information to analyze. |
| 49 # Requires profiling to be set to true. | 51 # Requires profiling to be set to true. |
| 50 enable_full_stack_frames_for_profiling = false | 52 enable_full_stack_frames_for_profiling = false |
| 51 | 53 |
| (...skipping 1535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1587 | 1589 |
| 1588 if (is_ios || is_mac) { | 1590 if (is_ios || is_mac) { |
| 1589 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1591 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
| 1590 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1592 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
| 1591 config("enable_arc") { | 1593 config("enable_arc") { |
| 1592 common_flags = [ "-fobjc-arc" ] | 1594 common_flags = [ "-fobjc-arc" ] |
| 1593 cflags_objc = common_flags | 1595 cflags_objc = common_flags |
| 1594 cflags_objcc = common_flags | 1596 cflags_objcc = common_flags |
| 1595 } | 1597 } |
| 1596 } | 1598 } |
| OLD | NEW |