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_overrides/webrtc.gni") | 13 import("//build_overrides/build.gni") |
14 import("//testing/test.gni") | 14 import("//testing/test.gni") |
15 | 15 |
16 declare_args() { | 16 declare_args() { |
17 # Disable this to avoid building the Opus audio codec. | 17 # Disable this to avoid building the Opus audio codec. |
18 rtc_include_opus = true | 18 rtc_include_opus = true |
19 | 19 |
20 # Disable to use absolute header paths for some libraries. | 20 # Disable to use absolute header paths for some libraries. |
21 rtc_relative_path = true | 21 rtc_relative_path = true |
22 | 22 |
23 # Used to specify an external Jsoncpp include path when not compiling the | 23 # Used to specify an external Jsoncpp include path when not compiling the |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 } | 136 } |
137 | 137 |
138 # A second declare_args block, so that declarations within it can | 138 # A second declare_args block, so that declarations within it can |
139 # depend on the possibly overridden variables in the first | 139 # depend on the possibly overridden variables in the first |
140 # declare_args block. | 140 # declare_args block. |
141 declare_args() { | 141 declare_args() { |
142 # Include the iLBC audio codec? | 142 # Include the iLBC audio codec? |
143 rtc_include_ilbc = !(build_with_chromium || build_with_mozilla) | 143 rtc_include_ilbc = !(build_with_chromium || build_with_mozilla) |
144 | 144 |
145 rtc_restrict_logging = build_with_chromium | 145 rtc_restrict_logging = build_with_chromium |
| 146 |
| 147 # Excluded in Chromium since its prerequisites don't require Pulse Audio. |
| 148 rtc_include_pulse_audio = !build_with_chromium |
| 149 |
| 150 # Chromium uses its own IO handling, so the internal ADM is only built for |
| 151 # standalone WebRTC. |
| 152 rtc_include_internal_audio_device = !build_with_chromium |
| 153 |
| 154 # Include tests in standalone checkout. |
| 155 rtc_include_tests = !build_with_chromium |
146 } | 156 } |
147 | 157 |
148 # Make it possible to provide custom locations for some libraries (move these | 158 # Make it possible to provide custom locations for some libraries (move these |
149 # up into declare_args should we need to actually use them for the GN build). | 159 # up into declare_args should we need to actually use them for the GN build). |
150 rtc_libvpx_dir = "//third_party/libvpx" | 160 rtc_libvpx_dir = "//third_party/libvpx" |
151 rtc_libyuv_dir = "//third_party/libyuv" | 161 rtc_libyuv_dir = "//third_party/libyuv" |
152 rtc_opus_dir = "//third_party/opus" | 162 rtc_opus_dir = "//third_party/opus" |
153 | 163 |
154 ############################################################################### | 164 ############################################################################### |
155 # Templates | 165 # Templates |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 ]) | 288 ]) |
279 configs += invoker.configs | 289 configs += invoker.configs |
280 configs -= rtc_remove_configs | 290 configs -= rtc_remove_configs |
281 configs -= invoker.suppressed_configs | 291 configs -= invoker.suppressed_configs |
282 public_configs = [ rtc_common_inherited_config ] | 292 public_configs = [ rtc_common_inherited_config ] |
283 if (defined(invoker.public_configs)) { | 293 if (defined(invoker.public_configs)) { |
284 public_configs += invoker.public_configs | 294 public_configs += invoker.public_configs |
285 } | 295 } |
286 } | 296 } |
287 } | 297 } |
OLD | NEW |