| OLD | NEW |
| 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license | 3 # Use of this source code is governed by a BSD-style license |
| 4 # that can be found in the LICENSE file in the root of the source | 4 # that can be found in the LICENSE file in the root of the source |
| 5 # tree. An additional intellectual property rights grant can be found | 5 # tree. An additional intellectual property rights grant can be found |
| 6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
| 7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
| 8 | 8 |
| 9 import("//build/config/arm.gni") | 9 import("//build/config/arm.gni") |
| 10 import("//build/config/features.gni") | 10 import("//build/config/features.gni") |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 webrtc_root = get_path_info(".", "abspath") | 204 webrtc_root = get_path_info(".", "abspath") |
| 205 | 205 |
| 206 # Global configuration that should be applied to all WebRTC targets. | 206 # Global configuration that should be applied to all WebRTC targets. |
| 207 # You normally shouldn't need to include this in your target as it's | 207 # You normally shouldn't need to include this in your target as it's |
| 208 # automatically included when using the rtc_* templates. | 208 # automatically included when using the rtc_* templates. |
| 209 # It sets defines, include paths and compilation warnings accordingly, | 209 # It sets defines, include paths and compilation warnings accordingly, |
| 210 # both for WebRTC stand-alone builds and for the scenario when WebRTC | 210 # both for WebRTC stand-alone builds and for the scenario when WebRTC |
| 211 # native code is built as part of Chromium. | 211 # native code is built as part of Chromium. |
| 212 rtc_common_configs = [ webrtc_root + ":common_config" ] | 212 rtc_common_configs = [ webrtc_root + ":common_config" ] |
| 213 | 213 |
| 214 if (is_mac || is_ios) { |
| 215 rtc_common_configs += [ "//build/config/compiler:enable_arc" ] |
| 216 } |
| 217 |
| 214 # Global public configuration that should be applied to all WebRTC targets. You | 218 # Global public configuration that should be applied to all WebRTC targets. You |
| 215 # normally shouldn't need to include this in your target as it's automatically | 219 # normally shouldn't need to include this in your target as it's automatically |
| 216 # included when using the rtc_* templates. It set the defines, include paths and | 220 # included when using the rtc_* templates. It set the defines, include paths and |
| 217 # compilation warnings that should be propagated to dependents of the targets | 221 # compilation warnings that should be propagated to dependents of the targets |
| 218 # depending on the target having this config. | 222 # depending on the target having this config. |
| 219 rtc_common_inherited_config = webrtc_root + ":common_inherited_config" | 223 rtc_common_inherited_config = webrtc_root + ":common_inherited_config" |
| 220 | 224 |
| 221 # Common configs to remove or add in all rtc targets. | 225 # Common configs to remove or add in all rtc targets. |
| 222 rtc_remove_configs = [] | 226 rtc_remove_configs = [] |
| 223 rtc_add_configs = rtc_common_configs | 227 rtc_add_configs = rtc_common_configs |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 configs += invoker.configs | 369 configs += invoker.configs |
| 366 configs -= rtc_remove_configs | 370 configs -= rtc_remove_configs |
| 367 configs -= invoker.suppressed_configs | 371 configs -= invoker.suppressed_configs |
| 368 public_configs = [ rtc_common_inherited_config ] | 372 public_configs = [ rtc_common_inherited_config ] |
| 369 if (defined(invoker.public_configs)) { | 373 if (defined(invoker.public_configs)) { |
| 370 public_configs += invoker.public_configs | 374 public_configs += invoker.public_configs |
| 371 } | 375 } |
| 372 } | 376 } |
| 373 } | 377 } |
| 374 } | 378 } |
| OLD | NEW |