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/chromecast_build.gni") |
8 import("//build/config/compiler/compiler.gni") | 8 import("//build/config/compiler/compiler.gni") |
9 import("//build/config/nacl/config.gni") | 9 import("//build/config/nacl/config.gni") |
10 import("//build/toolchain/cc_wrapper.gni") | 10 import("//build/toolchain/cc_wrapper.gni") |
11 import("//build/toolchain/toolchain.gni") | 11 import("//build/toolchain/toolchain.gni") |
12 import("//build_overrides/build.gni") | 12 import("//build_overrides/build.gni") |
13 | 13 |
14 if (current_cpu == "arm" || current_cpu == "arm64") { | 14 if (current_cpu == "arm" || current_cpu == "arm64") { |
15 import("//build/config/arm.gni") | 15 import("//build/config/arm.gni") |
16 } | 16 } |
17 if (current_cpu == "mipsel" || current_cpu == "mips64el") { | 17 if (current_cpu == "mipsel" || current_cpu == "mips64el") { |
18 import("//build/config/mips.gni") | 18 import("//build/config/mips.gni") |
19 } | 19 } |
20 if (is_mac) { | 20 if (is_mac) { |
21 import("//build/config/mac/symbols.gni") | 21 import("//build/config/mac/symbols.gni") |
22 } | 22 } |
| 23 if (is_ios) { |
| 24 import("//build/config/ios/ios_sdk.gni") |
| 25 } |
23 | 26 |
24 declare_args() { | 27 declare_args() { |
25 # Default to warnings as errors for default workflow, where we catch | 28 # Default to warnings as errors for default workflow, where we catch |
26 # warnings with known toolchains. Allow overriding this e.g. for Chromium | 29 # warnings with known toolchains. Allow overriding this e.g. for Chromium |
27 # builds on Linux that could use a different version of the compiler. | 30 # builds on Linux that could use a different version of the compiler. |
28 # With GCC, warnings in no-Chromium code are always not treated as errors. | 31 # With GCC, warnings in no-Chromium code are always not treated as errors. |
29 treat_warnings_as_errors = true | 32 treat_warnings_as_errors = true |
30 | 33 |
31 # Normally, Android builds are lightly optimized, even for debug builds, to | 34 # Normally, Android builds are lightly optimized, even for debug builds, to |
32 # keep binary size down. Setting this flag to true disables such optimization | 35 # keep binary size down. Setting this flag to true disables such optimization |
(...skipping 1062 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1095 | 1098 |
1096 # TODO(hans): https://crbug.com/637306 | 1099 # TODO(hans): https://crbug.com/637306 |
1097 "-Wno-address-of-packed-member", | 1100 "-Wno-address-of-packed-member", |
1098 | 1101 |
1099 # TODO(hans): https://crbug.com/681136 | 1102 # TODO(hans): https://crbug.com/681136 |
1100 "-Wno-unused-lambda-capture", | 1103 "-Wno-unused-lambda-capture", |
1101 | 1104 |
1102 # TODO(thakis ): https://crbug.com/683349 | 1105 # TODO(thakis ): https://crbug.com/683349 |
1103 "-Wno-user-defined-warnings", | 1106 "-Wno-user-defined-warnings", |
1104 ] | 1107 ] |
| 1108 } else if (use_xcode_clang && |
| 1109 (xcode_version == "0830" || xcode_version == "0831" || |
| 1110 xcode_version == "0832")) { |
| 1111 # This is necessary to allow a progressive transition from using xcode 8 t
o 8.3. Remove when all bots are migrated to 8.3. |
| 1112 cflags += [ |
| 1113 # TODO(thakis): https://crbug.com/604888 |
| 1114 "-Wno-undefined-var-template", |
| 1115 |
| 1116 # TODO(hans): https://crbug.com/637306 |
| 1117 "-Wno-address-of-packed-member", |
| 1118 ] |
1105 } | 1119 } |
1106 } | 1120 } |
1107 } | 1121 } |
1108 | 1122 |
1109 # chromium_code --------------------------------------------------------------- | 1123 # chromium_code --------------------------------------------------------------- |
1110 # | 1124 # |
1111 # Toggles between higher and lower warnings for code that is (or isn't) | 1125 # Toggles between higher and lower warnings for code that is (or isn't) |
1112 # part of Chromium. | 1126 # part of Chromium. |
1113 | 1127 |
1114 config("chromium_code") { | 1128 config("chromium_code") { |
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1722 | 1736 |
1723 if (is_ios || is_mac) { | 1737 if (is_ios || is_mac) { |
1724 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1738 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
1725 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1739 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
1726 config("enable_arc") { | 1740 config("enable_arc") { |
1727 common_flags = [ "-fobjc-arc" ] | 1741 common_flags = [ "-fobjc-arc" ] |
1728 cflags_objc = common_flags | 1742 cflags_objc = common_flags |
1729 cflags_objcc = common_flags | 1743 cflags_objcc = common_flags |
1730 } | 1744 } |
1731 } | 1745 } |
OLD | NEW |