OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 static_library("audio_modem") { | 5 source_set("audio_modem") { |
| 6 public = [ |
| 7 "public/audio_modem_types.h", |
| 8 "public/modem.h", |
| 9 "public/whispernet_client.h", |
| 10 ] |
6 sources = [ | 11 sources = [ |
7 "audio_modem_switches.cc", | 12 "audio_modem_switches.cc", |
8 "audio_modem_switches.h", | 13 "audio_modem_switches.h", |
9 "audio_player.h", | 14 "audio_player.h", |
10 "audio_player_impl.cc", | 15 "audio_player_impl.cc", |
11 "audio_player_impl.h", | 16 "audio_player_impl.h", |
12 "audio_recorder.h", | 17 "audio_recorder.h", |
13 "audio_recorder_impl.cc", | 18 "audio_recorder_impl.cc", |
14 "audio_recorder_impl.h", | 19 "audio_recorder_impl.h", |
15 "constants.cc", | 20 "constants.cc", |
16 "modem_impl.cc", | 21 "modem_impl.cc", |
17 "modem_impl.h", | 22 "modem_impl.h", |
18 "public/audio_modem_types.h", | |
19 "public/modem.h", | |
20 "public/whispernet_client.h", | |
21 ] | 23 ] |
22 | 24 |
23 deps = [ | 25 deps = [ |
24 "//base", | 26 "//base", |
25 "//content", | 27 "//content", |
26 "//media", | 28 "//media", |
27 "//media:shared_memory_support", | 29 "//media:shared_memory_support", |
28 "//third_party/webrtc/common_audio", | 30 "//third_party/webrtc/common_audio", |
29 ] | 31 ] |
30 } | 32 } |
31 | 33 |
32 source_set("test_support") { | 34 source_set("test_support") { |
| 35 testonly = true |
33 sources = [ | 36 sources = [ |
34 "test/random_samples.cc", | 37 "test/random_samples.cc", |
35 "test/random_samples.h", | 38 "test/random_samples.h", |
36 "test/stub_modem.cc", | 39 "test/stub_modem.cc", |
37 "test/stub_modem.h", | 40 "test/stub_modem.h", |
38 "test/stub_whispernet_client.cc", | 41 "test/stub_whispernet_client.cc", |
39 "test/stub_whispernet_client.h", | 42 "test/stub_whispernet_client.h", |
40 ] | 43 ] |
41 | 44 |
| 45 public_deps = [ |
| 46 ":audio_modem", |
| 47 ] |
42 deps = [ | 48 deps = [ |
43 "//base", | 49 "//base", |
44 "//media", | 50 "//media", |
45 ] | 51 ] |
46 } | 52 } |
| 53 |
| 54 source_set("unit_tests") { |
| 55 testonly = true |
| 56 sources = [ |
| 57 "audio_player_unittest.cc", |
| 58 "audio_recorder_unittest.cc", |
| 59 "modem_unittest.cc", |
| 60 ] |
| 61 |
| 62 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 63 |
| 64 deps = [ |
| 65 ":test_support", |
| 66 "//testing/gtest", |
| 67 ] |
| 68 } |
OLD | NEW |