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/chromecast_build.gni") |
7 import("//build/config/compiler/compiler.gni") | 8 import("//build/config/compiler/compiler.gni") |
8 import("//build/config/nacl/config.gni") | 9 import("//build/config/nacl/config.gni") |
9 import("//build/toolchain/cc_wrapper.gni") | 10 import("//build/toolchain/cc_wrapper.gni") |
10 import("//build/toolchain/toolchain.gni") | 11 import("//build/toolchain/toolchain.gni") |
11 import("//build_overrides/build.gni") | 12 import("//build_overrides/build.gni") |
12 | 13 |
13 if (current_cpu == "arm" || current_cpu == "arm64") { | 14 if (current_cpu == "arm" || current_cpu == "arm64") { |
14 import("//build/config/arm.gni") | 15 import("//build/config/arm.gni") |
15 } | 16 } |
16 if (current_cpu == "mipsel" || current_cpu == "mips64el") { | 17 if (current_cpu == "mipsel" || current_cpu == "mips64el") { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 55 |
55 if (is_win) { | 56 if (is_win) { |
56 # Whether the VS xtree header has been patched to disable warning 4702. If | 57 # Whether the VS xtree header has been patched to disable warning 4702. If |
57 # it has, then we don't need to disable 4702 (unreachable code warning). | 58 # it has, then we don't need to disable 4702 (unreachable code warning). |
58 # The patch is preapplied to the internal toolchain and hence all bots. | 59 # The patch is preapplied to the internal toolchain and hence all bots. |
59 msvs_xtree_patched = false | 60 msvs_xtree_patched = false |
60 } | 61 } |
61 | 62 |
62 # Omit unwind support in official builds to save space. | 63 # Omit unwind support in official builds to save space. |
63 # We can use breakpad for these builds. | 64 # We can use breakpad for these builds. |
64 exclude_unwind_tables = is_chrome_branded && is_official_build | 65 exclude_unwind_tables = (is_chrome_branded && is_official_build) || |
| 66 (is_chromecast && !is_cast_desktop_build && !is_debug) |
65 | 67 |
66 # If true, gold linker will save symbol table inside object files. | 68 # If true, gold linker will save symbol table inside object files. |
67 # This speeds up gdb startup by 60% | 69 # This speeds up gdb startup by 60% |
68 gdb_index = false | 70 gdb_index = false |
69 | 71 |
70 # If true, optimize for size. Does not affect windows builds. | 72 # If true, optimize for size. Does not affect windows builds. |
71 # Linux & Mac favor speed over size. | 73 # Linux & Mac favor speed over size. |
72 # TODO(brettw) it's weird that Mac and desktop Linux are different. We should | 74 # TODO(brettw) it's weird that Mac and desktop Linux are different. We should |
73 # explore favoring size over speed in this case as well. | 75 # explore favoring size over speed in this case as well. |
74 optimize_for_size = is_android || is_ios | 76 optimize_for_size = is_android || is_ios |
(...skipping 1637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1712 | 1714 |
1713 if (is_ios || is_mac) { | 1715 if (is_ios || is_mac) { |
1714 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1716 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
1715 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1717 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
1716 config("enable_arc") { | 1718 config("enable_arc") { |
1717 common_flags = [ "-fobjc-arc" ] | 1719 common_flags = [ "-fobjc-arc" ] |
1718 cflags_objc = common_flags | 1720 cflags_objc = common_flags |
1719 cflags_objcc = common_flags | 1721 cflags_objcc = common_flags |
1720 } | 1722 } |
1721 } | 1723 } |
OLD | NEW |