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/webrtc.gni") | 9 import("../../build/webrtc.gni") |
10 | 10 |
11 config("audio_device_config") { | 11 config("audio_device_config") { |
12 include_dirs = [ | 12 include_dirs = [ |
13 "../include", | 13 "../include", |
14 "include", | 14 "include", |
15 "dummy", # Contains dummy audio device implementations. | 15 "dummy", # Contains dummy audio device implementations. |
16 ] | 16 ] |
17 if (is_ios) { | 17 if (is_ios) { |
18 # GN orders flags on a target before flags from configs. In order to be able | 18 # GN orders flags on a target before flags from configs. In order to be able |
19 # suppress the -Wthread-safety-analysis warning, it has come from a config | 19 # suppress the -Wthread-safety-analysis warning, it has come from a config |
20 # and can't be on the target directly. | 20 # and can't be on the target directly. |
21 # TODO(tkchin): Remove after fixing | 21 # TODO(tkchin): Remove after fixing |
22 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5748 | 22 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5748 |
23 cflags = [ "-Wno-thread-safety-analysis" ] | 23 cflags = [ "-Wno-thread-safety-analysis" ] |
24 } | 24 } |
25 } | 25 } |
26 | 26 |
| 27 config("audio_device_warnings_config") { |
| 28 if (is_win && is_clang) { |
| 29 cflags = [ |
| 30 # Disable warnings failing when compiling with Clang on Windows. |
| 31 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 |
| 32 "-Wno-bool-conversion", |
| 33 "-Wno-delete-non-virtual-dtor", |
| 34 "-Wno-logical-op-parentheses", |
| 35 "-Wno-microsoft-extra-qualification", |
| 36 "-Wno-microsoft-goto", |
| 37 "-Wno-missing-braces", |
| 38 "-Wno-parentheses-equality", |
| 39 "-Wno-reorder", |
| 40 "-Wno-shift-overflow", |
| 41 "-Wno-tautological-compare", |
| 42 |
| 43 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6265 |
| 44 # for -Wno-thread-safety-analysis |
| 45 "-Wno-thread-safety-analysis", |
| 46 "-Wno-unused-private-field", |
| 47 ] |
| 48 } |
| 49 } |
| 50 |
27 source_set("audio_device") { | 51 source_set("audio_device") { |
| 52 configs += [ "../..:common_config" ] |
| 53 public_configs = [ |
| 54 "../..:common_inherited_config", |
| 55 ":audio_device_config", |
| 56 ] |
| 57 |
28 deps = [ | 58 deps = [ |
29 "../..:webrtc_common", | 59 "../..:webrtc_common", |
30 "../../base:rtc_base", | 60 "../../base:rtc_base", |
31 "../../base:rtc_base_approved", | 61 "../../base:rtc_base_approved", |
32 "../../base:rtc_task_queue", | 62 "../../base:rtc_task_queue", |
33 "../../common_audio", | 63 "../../common_audio", |
34 "../../system_wrappers", | 64 "../../system_wrappers", |
35 "../utility", | 65 "../utility", |
36 ] | 66 ] |
37 | 67 |
(...skipping 148 matching lines...) Loading... |
186 "win/audio_mixer_manager_win.h", | 216 "win/audio_mixer_manager_win.h", |
187 ] | 217 ] |
188 libs = [ | 218 libs = [ |
189 # Required for the built-in WASAPI AEC. | 219 # Required for the built-in WASAPI AEC. |
190 "dmoguids.lib", | 220 "dmoguids.lib", |
191 "wmcodecdspuuid.lib", | 221 "wmcodecdspuuid.lib", |
192 "amstrmid.lib", | 222 "amstrmid.lib", |
193 "msdmo.lib", | 223 "msdmo.lib", |
194 ] | 224 ] |
195 } | 225 } |
196 if (is_win && is_clang) { | 226 configs += [ ":audio_device_warnings_config" ] |
197 cflags += [ | |
198 # Disable warnings failing when compiling with Clang on Windows. | |
199 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 | |
200 "-Wno-bool-conversion", | |
201 "-Wno-delete-non-virtual-dtor", | |
202 "-Wno-logical-op-parentheses", | |
203 "-Wno-microsoft-extra-qualification", | |
204 "-Wno-microsoft-goto", | |
205 "-Wno-missing-braces", | |
206 "-Wno-parentheses-equality", | |
207 "-Wno-reorder", | |
208 "-Wno-shift-overflow", | |
209 "-Wno-tautological-compare", | |
210 "-Wno-unused-private-field", | |
211 ] | |
212 } | |
213 } | 227 } |
214 } else { | 228 } else { |
215 defines = [ "WEBRTC_DUMMY_AUDIO_BUILD" ] | 229 defines = [ "WEBRTC_DUMMY_AUDIO_BUILD" ] |
216 } | 230 } |
217 | 231 |
218 if (!build_with_chromium) { | 232 if (!build_with_chromium) { |
219 sources += [ | 233 sources += [ |
220 # Do not link these into Chrome since they contain static data. | 234 # Do not link these into Chrome since they contain static data. |
221 "dummy/file_audio_device_factory.cc", | 235 "dummy/file_audio_device_factory.cc", |
222 "dummy/file_audio_device_factory.h", | 236 "dummy/file_audio_device_factory.h", |
223 ] | 237 ] |
224 } | 238 } |
225 | 239 |
226 configs += [ "../..:common_config" ] | |
227 public_configs = [ | |
228 "../..:common_inherited_config", | |
229 ":audio_device_config", | |
230 ] | |
231 | |
232 if (is_clang) { | 240 if (is_clang) { |
233 # Suppress warnings from Chrome's Clang plugins. | 241 # Suppress warnings from Chrome's Clang plugins. |
234 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 242 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
235 configs -= [ "//build/config/clang:find_bad_constructs" ] | 243 configs -= [ "//build/config/clang:find_bad_constructs" ] |
236 } | 244 } |
237 } | 245 } |
238 | 246 |
239 # These tests do not work on ios, see | 247 # These tests do not work on ios, see |
240 # https://bugs.chromium.org/p/webrtc/issues/detail?id=4755 | 248 # https://bugs.chromium.org/p/webrtc/issues/detail?id=4755 |
241 if (rtc_include_tests && !is_ios) { | 249 if (rtc_include_tests && !is_ios) { |
(...skipping 14 matching lines...) Loading... |
256 "//build/config/sanitizers:deps", | 264 "//build/config/sanitizers:deps", |
257 "//testing/gtest", | 265 "//testing/gtest", |
258 ] | 266 ] |
259 configs += [ "../..:common_config" ] | 267 configs += [ "../..:common_config" ] |
260 public_configs = [ | 268 public_configs = [ |
261 "../..:common_inherited_config", | 269 "../..:common_inherited_config", |
262 ":audio_device_config", | 270 ":audio_device_config", |
263 ] | 271 ] |
264 } | 272 } |
265 } | 273 } |
OLD | NEW |