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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 # https://gcc.gnu.org/wiki/LinkTimeOptimization | 98 # https://gcc.gnu.org/wiki/LinkTimeOptimization |
99 rtc_use_lto = false | 99 rtc_use_lto = false |
100 | 100 |
101 # Set to "func", "block", "edge" for coverage generation. | 101 # Set to "func", "block", "edge" for coverage generation. |
102 # At unit test runtime set UBSAN_OPTIONS="coverage=1". | 102 # At unit test runtime set UBSAN_OPTIONS="coverage=1". |
103 # It is recommend to set include_examples=0. | 103 # It is recommend to set include_examples=0. |
104 # Use llvm's sancov -html-report for human readable reports. | 104 # Use llvm's sancov -html-report for human readable reports. |
105 # See http://clang.llvm.org/docs/SanitizerCoverage.html . | 105 # See http://clang.llvm.org/docs/SanitizerCoverage.html . |
106 rtc_sanitize_coverage = "" | 106 rtc_sanitize_coverage = "" |
107 | 107 |
| 108 # Links a default implementation of task queues to targets |
| 109 # that depend on the target rtc_task_queue. Set to false to |
| 110 # use an external implementation. |
| 111 rtc_link_task_queue_impl = true |
| 112 |
108 # Enable libevent task queues on platforms that support it. | 113 # Enable libevent task queues on platforms that support it. |
| 114 # rtc_link_task_queue_impl must be set to true for this to |
| 115 # have an effect. |
109 if (is_win || is_mac || is_ios || is_nacl) { | 116 if (is_win || is_mac || is_ios || is_nacl) { |
110 rtc_enable_libevent = false | 117 rtc_enable_libevent = false |
111 rtc_build_libevent = false | 118 rtc_build_libevent = false |
112 } else { | 119 } else { |
113 rtc_enable_libevent = true | 120 rtc_enable_libevent = true |
114 rtc_build_libevent = true | 121 rtc_build_libevent = true |
115 } | 122 } |
116 | 123 |
117 if (current_cpu == "arm" || current_cpu == "arm64") { | 124 if (current_cpu == "arm" || current_cpu == "arm64") { |
118 rtc_prefer_fixed_point = true | 125 rtc_prefer_fixed_point = true |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 "public_configs", | 314 "public_configs", |
308 "suppressed_configs", | 315 "suppressed_configs", |
309 ]) | 316 ]) |
310 configs += invoker.configs | 317 configs += invoker.configs |
311 configs -= rtc_remove_configs | 318 configs -= rtc_remove_configs |
312 configs -= invoker.suppressed_configs | 319 configs -= invoker.suppressed_configs |
313 deps = [ | 320 deps = [ |
314 "//build/config:exe_and_shlib_deps", | 321 "//build/config:exe_and_shlib_deps", |
315 ] | 322 ] |
316 deps += invoker.deps | 323 deps += invoker.deps |
| 324 |
317 public_configs = [ rtc_common_inherited_config ] | 325 public_configs = [ rtc_common_inherited_config ] |
318 if (defined(invoker.public_configs)) { | 326 if (defined(invoker.public_configs)) { |
319 public_configs += invoker.public_configs | 327 public_configs += invoker.public_configs |
320 } | 328 } |
321 } | 329 } |
322 } | 330 } |
323 | 331 |
324 template("rtc_static_library") { | 332 template("rtc_static_library") { |
325 static_library(target_name) { | 333 static_library(target_name) { |
326 forward_variables_from(invoker, | 334 forward_variables_from(invoker, |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 configs += invoker.configs | 385 configs += invoker.configs |
378 configs -= rtc_remove_configs | 386 configs -= rtc_remove_configs |
379 configs -= invoker.suppressed_configs | 387 configs -= invoker.suppressed_configs |
380 public_configs = [ rtc_common_inherited_config ] | 388 public_configs = [ rtc_common_inherited_config ] |
381 if (defined(invoker.public_configs)) { | 389 if (defined(invoker.public_configs)) { |
382 public_configs += invoker.public_configs | 390 public_configs += invoker.public_configs |
383 } | 391 } |
384 } | 392 } |
385 } | 393 } |
386 } | 394 } |
OLD | NEW |