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") |
11 import("//build/config/mips.gni") | 11 import("//build/config/mips.gni") |
12 import("//build/config/sanitizers/sanitizers.gni") | 12 import("//build/config/sanitizers/sanitizers.gni") |
13 import("//build/config/ui.gni") | 13 import("//build/config/ui.gni") |
14 import("//build_overrides/build.gni") | 14 import("//build_overrides/build.gni") |
15 import("//testing/test.gni") | 15 import("//testing/test.gni") |
16 | |
17 if (is_component_build) { | |
18 print("The Gn argument `is_component_build` is currently " + | |
19 "ignored for WebRTC builds.") | |
20 print("Component builds are supported by Chromium and the argument " + | |
21 "`is_component_build` makes it possible to create shared libraries " + | |
22 "instead of static libraries.") | |
23 print("If an app depends on WebRTC it makes sense to just depend on the " + | |
24 "WebRTC static library, so there is no difference between " + | |
25 "`is_component_build=true` and `is_component_build=false`.") | |
26 print( | |
27 "More info about component builds at: " + "https://chromium.googlesource.c
om/chromium/src/+/master/docs/component_build.md") | |
28 assert(!is_component_build, "Component builds are not supported in WebRTC.") | |
29 } | |
30 | |
31 if (is_ios) { | 16 if (is_ios) { |
32 import("//build/config/ios/rules.gni") | 17 import("//build/config/ios/rules.gni") |
33 } | 18 } |
34 | 19 |
35 declare_args() { | 20 declare_args() { |
36 # Disable this to avoid building the Opus audio codec. | 21 # Disable this to avoid building the Opus audio codec. |
37 rtc_include_opus = true | 22 rtc_include_opus = true |
38 | 23 |
39 # Enable this if the Opus version upon which WebRTC is built supports direct | 24 # Enable this if the Opus version upon which WebRTC is built supports direct |
40 # encoding of 120 ms packets. | 25 # encoding of 120 ms packets. |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 configs += invoker.configs | 350 configs += invoker.configs |
366 configs -= rtc_remove_configs | 351 configs -= rtc_remove_configs |
367 configs -= invoker.suppressed_configs | 352 configs -= invoker.suppressed_configs |
368 public_configs = [ rtc_common_inherited_config ] | 353 public_configs = [ rtc_common_inherited_config ] |
369 if (defined(invoker.public_configs)) { | 354 if (defined(invoker.public_configs)) { |
370 public_configs += invoker.public_configs | 355 public_configs += invoker.public_configs |
371 } | 356 } |
372 } | 357 } |
373 } | 358 } |
374 } | 359 } |
OLD | NEW |