Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(303)

Side by Side Diff: webrtc/modules/audio_device/BUILD.gn

Issue 2214003002: GYP->GN of audio_device_tests. Remove dead code. Fix new warnings. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Exclude tests for ios. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
(...skipping 11 matching lines...) Expand all
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 source_set("audio_device") { 27 source_set("audio_device") {
28 deps = [ 28 deps = [
29 "../..:webrtc_common", 29 "../..:webrtc_common",
30 "../../base:rtc_base", 30 "../../base:rtc_base",
31 "../../base:rtc_base_approved", 31 "../../base:rtc_base_approved",
32 "../../base:rtc_task_queue",
32 "../../common_audio", 33 "../../common_audio",
33 "../../system_wrappers", 34 "../../system_wrappers",
34 "../utility", 35 "../utility",
35 ] 36 ]
36 37
37 sources = [ 38 sources = [
39 "audio_device.cc",
38 "audio_device_buffer.cc", 40 "audio_device_buffer.cc",
39 "audio_device_buffer.h", 41 "audio_device_buffer.h",
40 "audio_device_config.h", 42 "audio_device_config.h",
41 "audio_device_generic.cc", 43 "audio_device_generic.cc",
42 "audio_device_generic.h", 44 "audio_device_generic.h",
45 "audio_transport.cc",
43 "dummy/audio_device_dummy.cc", 46 "dummy/audio_device_dummy.cc",
44 "dummy/audio_device_dummy.h", 47 "dummy/audio_device_dummy.h",
45 "dummy/file_audio_device.cc", 48 "dummy/file_audio_device.cc",
46 "dummy/file_audio_device.h", 49 "dummy/file_audio_device.h",
47 "fine_audio_buffer.cc", 50 "fine_audio_buffer.cc",
48 "fine_audio_buffer.h", 51 "fine_audio_buffer.h",
49 "include/audio_device.h", 52 "include/audio_device.h",
50 "include/audio_device_defines.h", 53 "include/audio_device_defines.h",
51 ] 54 ]
52 55
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 "../..:common_inherited_config", 206 "../..:common_inherited_config",
204 ":audio_device_config", 207 ":audio_device_config",
205 ] 208 ]
206 209
207 if (is_clang) { 210 if (is_clang) {
208 # Suppress warnings from Chrome's Clang plugins. 211 # Suppress warnings from Chrome's Clang plugins.
209 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 212 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
210 configs -= [ "//build/config/clang:find_bad_constructs" ] 213 configs -= [ "//build/config/clang:find_bad_constructs" ]
211 } 214 }
212 } 215 }
216
217 # These tests do not work on ios, see
218 # https://bugs.chromium.org/p/webrtc/issues/detail?id=4755
219 if (!is_ios) {
kjellander_webrtc 2016/08/05 12:47:58 Make this: if (rtc_include_tests && !is_ios) { to
Max Morin WebRTC 2016/08/05 20:58:48 Done.
220 executable("audio_device_tests") {
221 testonly = true
222 sources = [
223 "test/audio_device_test_api.cc",
224 "test/audio_device_test_defines.h",
225 ]
226 deps = [
227 ":audio_device",
228 "../..:webrtc_common",
229 "../../../testing/gtest:gtest",
kjellander_webrtc 2016/08/05 12:47:58 Make this //testing/gtest:gtest or just //testin
Max Morin WebRTC 2016/08/05 20:58:48 Done.
230 "../../system_wrappers",
231 "../../test:test_support",
kjellander_webrtc 2016/08/05 12:47:58 you don't need this if you depend on test_support_
Max Morin WebRTC 2016/08/05 20:58:48 "gn check" warns without it, since audio_device_te
232 "../../test:test_support_main",
233 "../rtp_rtcp",
234 "../utility",
235 ]
236 configs += [ "../..:common_config" ]
237 public_configs = [
238 "../..:common_inherited_config",
239 ":audio_device_config",
240 ]
241 }
242 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698