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 " + | |
kjellander_webrtc
2017/03/03 04:19:02
How about replacing line 17-29 with just:
assert(!
mbonadei
2017/03/03 18:03:59
Yeah, this would be cleaner than the current solut
kjellander_webrtc
2017/03/03 19:10:03
I see, then this is fine.
| |
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, "Please avoid using `is_component_build=true`.") | |
kjellander_webrtc
2017/03/03 19:10:03
I suggest changing to "Please avoid using `Compone
| |
29 } | |
30 | |
16 if (is_ios) { | 31 if (is_ios) { |
17 import("//build/config/ios/rules.gni") | 32 import("//build/config/ios/rules.gni") |
18 } | 33 } |
19 | 34 |
20 declare_args() { | 35 declare_args() { |
21 # Disable this to avoid building the Opus audio codec. | 36 # Disable this to avoid building the Opus audio codec. |
22 rtc_include_opus = true | 37 rtc_include_opus = true |
23 | 38 |
24 # Enable this if the Opus version upon which WebRTC is built supports direct | 39 # Enable this if the Opus version upon which WebRTC is built supports direct |
25 # encoding of 120 ms packets. | 40 # encoding of 120 ms packets. |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
350 configs += invoker.configs | 365 configs += invoker.configs |
351 configs -= rtc_remove_configs | 366 configs -= rtc_remove_configs |
352 configs -= invoker.suppressed_configs | 367 configs -= invoker.suppressed_configs |
353 public_configs = [ rtc_common_inherited_config ] | 368 public_configs = [ rtc_common_inherited_config ] |
354 if (defined(invoker.public_configs)) { | 369 if (defined(invoker.public_configs)) { |
355 public_configs += invoker.public_configs | 370 public_configs += invoker.public_configs |
356 } | 371 } |
357 } | 372 } |
358 } | 373 } |
359 } | 374 } |
OLD | NEW |