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 | |
218 # Global public configuration that should be applied to all WebRTC targets. You | 214 # Global public configuration that should be applied to all WebRTC targets. You |
219 # normally shouldn't need to include this in your target as it's automatically | 215 # normally shouldn't need to include this in your target as it's automatically |
220 # included when using the rtc_* templates. It set the defines, include paths and | 216 # included when using the rtc_* templates. It set the defines, include paths and |
221 # compilation warnings that should be propagated to dependents of the targets | 217 # compilation warnings that should be propagated to dependents of the targets |
222 # depending on the target having this config. | 218 # depending on the target having this config. |
223 rtc_common_inherited_config = webrtc_root + ":common_inherited_config" | 219 rtc_common_inherited_config = webrtc_root + ":common_inherited_config" |
224 | 220 |
225 # Common configs to remove or add in all rtc targets. | 221 # Common configs to remove or add in all rtc targets. |
226 rtc_remove_configs = [] | 222 rtc_remove_configs = [] |
227 rtc_add_configs = rtc_common_configs | 223 rtc_add_configs = rtc_common_configs |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 configs += invoker.configs | 365 configs += invoker.configs |
370 configs -= rtc_remove_configs | 366 configs -= rtc_remove_configs |
371 configs -= invoker.suppressed_configs | 367 configs -= invoker.suppressed_configs |
372 public_configs = [ rtc_common_inherited_config ] | 368 public_configs = [ rtc_common_inherited_config ] |
373 if (defined(invoker.public_configs)) { | 369 if (defined(invoker.public_configs)) { |
374 public_configs += invoker.public_configs | 370 public_configs += invoker.public_configs |
375 } | 371 } |
376 } | 372 } |
377 } | 373 } |
378 } | 374 } |
OLD | NEW |