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

Side by Side Diff: voice_engine/BUILD.gn

Issue 3013033002: Remove VoEFile (Closed)
Patch Set: rebase Created 3 years, 3 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
« no previous file with comments | « test/mock_voice_engine.h ('k') | voice_engine/channel.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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("../webrtc.gni") 9 import("../webrtc.gni")
10 10
11 rtc_static_library("audio_coder") {
12 sources = [
13 "coder.cc",
14 "coder.h",
15 ]
16 deps = [
17 "..:webrtc_common",
18 "../api/audio_codecs:builtin_audio_decoder_factory",
19 "../api/audio_codecs:builtin_audio_encoder_factory",
20 "../modules:module_api",
21 "../modules/audio_coding",
22 "../modules/audio_coding:audio_format_conversion",
23 "../modules/audio_coding:rent_a_codec",
24 ]
25
26 if (!build_with_chromium && is_clang) {
27 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
28 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
29 }
30 }
31
32 rtc_static_library("file_player") {
33 sources = [
34 "file_player.cc",
35 "file_player.h",
36 ]
37 deps = [
38 ":audio_coder",
39 "..:webrtc_common",
40 "../common_audio",
41 "../modules:module_api",
42 "../modules/media_file",
43 "../rtc_base:rtc_base_approved",
44 ]
45
46 if (!build_with_chromium && is_clang) {
47 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
48 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
49 }
50 }
51
52 rtc_static_library("file_recorder") {
53 sources = [
54 "file_recorder.cc",
55 "file_recorder.h",
56 ]
57 deps = [
58 ":audio_coder",
59 "..:webrtc_common",
60 "../audio/utility:audio_frame_operations",
61 "../common_audio",
62 "../modules:module_api",
63 "../modules/media_file:media_file",
64 "../rtc_base:rtc_base_approved",
65 "../system_wrappers",
66 ]
67
68 if (!build_with_chromium && is_clang) {
69 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
70 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
71 }
72 }
73
74 rtc_static_library("voice_engine") { 11 rtc_static_library("voice_engine") {
75 sources = [ 12 sources = [
76 "channel.cc", 13 "channel.cc",
77 "channel.h", 14 "channel.h",
78 "channel_manager.cc", 15 "channel_manager.cc",
79 "channel_manager.h", 16 "channel_manager.h",
80 "channel_proxy.cc", 17 "channel_proxy.cc",
81 "channel_proxy.h", 18 "channel_proxy.h",
82 "include/voe_base.h", 19 "include/voe_base.h",
83 "include/voe_codec.h", 20 "include/voe_codec.h",
84 "include/voe_errors.h", 21 "include/voe_errors.h",
85 "include/voe_file.h",
86 "include/voe_network.h", 22 "include/voe_network.h",
87 "include/voe_rtp_rtcp.h", 23 "include/voe_rtp_rtcp.h",
88 "monitor_module.h", 24 "monitor_module.h",
89 "output_mixer.cc", 25 "output_mixer.cc",
90 "output_mixer.h", 26 "output_mixer.h",
91 "shared_data.cc", 27 "shared_data.cc",
92 "shared_data.h", 28 "shared_data.h",
93 "statistics.cc", 29 "statistics.cc",
94 "statistics.h", 30 "statistics.h",
95 "transmit_mixer.cc", 31 "transmit_mixer.cc",
96 "transmit_mixer.h", 32 "transmit_mixer.h",
97 "transport_feedback_packet_loss_tracker.cc", 33 "transport_feedback_packet_loss_tracker.cc",
98 "transport_feedback_packet_loss_tracker.h", 34 "transport_feedback_packet_loss_tracker.h",
99 "utility.cc", 35 "utility.cc",
100 "utility.h", 36 "utility.h",
101 "voe_base_impl.cc", 37 "voe_base_impl.cc",
102 "voe_base_impl.h", 38 "voe_base_impl.h",
103 "voe_codec_impl.cc", 39 "voe_codec_impl.cc",
104 "voe_codec_impl.h", 40 "voe_codec_impl.h",
105 "voe_file_impl.cc",
106 "voe_file_impl.h",
107 "voe_network_impl.cc", 41 "voe_network_impl.cc",
108 "voe_network_impl.h", 42 "voe_network_impl.h",
109 "voe_rtp_rtcp_impl.cc", 43 "voe_rtp_rtcp_impl.cc",
110 "voe_rtp_rtcp_impl.h", 44 "voe_rtp_rtcp_impl.h",
111 "voice_engine_defines.h", 45 "voice_engine_defines.h",
112 "voice_engine_impl.cc", 46 "voice_engine_impl.cc",
113 "voice_engine_impl.h", 47 "voice_engine_impl.h",
114 ] 48 ]
115 49
116 if (is_win) { 50 if (is_win) {
117 defines = [ "WEBRTC_DRIFT_COMPENSATION_SUPPORTED" ] 51 defines = [ "WEBRTC_DRIFT_COMPENSATION_SUPPORTED" ]
118 52
119 cflags = [ 53 cflags = [
120 # TODO(kjellander): Bug 261: fix this warning. 54 # TODO(kjellander): Bug 261: fix this warning.
121 "/wd4373", # Virtual function override. 55 "/wd4373", # Virtual function override.
122 ] 56 ]
123 } 57 }
124 58
125 if (!build_with_chromium && is_clang) { 59 if (!build_with_chromium && is_clang) {
126 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 60 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
127 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 61 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
128 } 62 }
129 63
130 public_deps = [ 64 public_deps = [
131 "../modules/audio_coding", 65 "../modules/audio_coding",
132 ] 66 ]
133 deps = [ 67 deps = [
134 ":audio_level", 68 ":audio_level",
135 ":file_player",
136 ":file_recorder",
137 "..:webrtc_common", 69 "..:webrtc_common",
138 "../api:array_view", 70 "../api:array_view",
139 "../api:audio_mixer_api", 71 "../api:audio_mixer_api",
140 "../api:call_api", 72 "../api:call_api",
141 "../api:libjingle_peerconnection_api", 73 "../api:libjingle_peerconnection_api",
142 "../api:optional", 74 "../api:optional",
143 "../api:transport_api", 75 "../api:transport_api",
144 "../api/audio_codecs:audio_codecs_api", 76 "../api/audio_codecs:audio_codecs_api",
145 "../api/audio_codecs:builtin_audio_decoder_factory", 77 "../api/audio_codecs:builtin_audio_decoder_factory",
146 "../api/audio_codecs:builtin_audio_encoder_factory", 78 "../api/audio_codecs:builtin_audio_encoder_factory",
(...skipping 28 matching lines...) Expand all
175 "..:webrtc_common", 107 "..:webrtc_common",
176 "../common_audio", 108 "../common_audio",
177 "../modules:module_api", 109 "../modules:module_api",
178 "../rtc_base:rtc_base_approved", 110 "../rtc_base:rtc_base_approved",
179 ] 111 ]
180 } 112 }
181 113
182 if (rtc_include_tests) { 114 if (rtc_include_tests) {
183 rtc_test("voice_engine_unittests") { 115 rtc_test("voice_engine_unittests") {
184 deps = [ 116 deps = [
185 ":file_player",
186 ":voice_engine", 117 ":voice_engine",
187 "../common_audio", 118 "../common_audio",
188 "../modules:module_api", 119 "../modules:module_api",
189 "../modules/audio_coding", 120 "../modules/audio_coding",
190 "../modules/audio_conference_mixer", 121 "../modules/audio_conference_mixer",
191 "../modules/audio_device", 122 "../modules/audio_device",
192 "../modules/audio_processing", 123 "../modules/audio_processing",
193 "../modules/media_file", 124 "../modules/media_file",
194 "../modules/rtp_rtcp", 125 "../modules/rtp_rtcp",
195 "../modules/utility", 126 "../modules/utility",
196 "../modules/video_capture:video_capture", 127 "../modules/video_capture:video_capture",
197 "../rtc_base:rtc_base_approved", 128 "../rtc_base:rtc_base_approved",
198 "../rtc_base:rtc_base_tests_utils", 129 "../rtc_base:rtc_base_tests_utils",
199 "../system_wrappers", 130 "../system_wrappers",
200 "../test:test_common", 131 "../test:test_common",
201 "../test:test_main", 132 "../test:test_main",
202 "../test:video_test_common", 133 "../test:video_test_common",
203 "//testing/gmock", 134 "//testing/gmock",
204 "//testing/gtest", 135 "//testing/gtest",
205 ] 136 ]
206 137
207 if (is_android) { 138 if (is_android) {
208 deps += [ "//testing/android/native_test:native_test_native_code" ] 139 deps += [ "//testing/android/native_test:native_test_native_code" ]
209 shard_timeout = 900 140 shard_timeout = 900
210 } 141 }
211 142
212 sources = [ 143 sources = [
213 "channel_unittest.cc", 144 "channel_unittest.cc",
214 "file_player_unittests.cc",
215 "transport_feedback_packet_loss_tracker_unittest.cc", 145 "transport_feedback_packet_loss_tracker_unittest.cc",
216 "utility_unittest.cc", 146 "utility_unittest.cc",
217 "voe_base_unittest.cc", 147 "voe_base_unittest.cc",
218 "voe_codec_unittest.cc", 148 "voe_codec_unittest.cc",
219 "voe_network_unittest.cc", 149 "voe_network_unittest.cc",
220 "voice_engine_fixture.cc", 150 "voice_engine_fixture.cc",
221 "voice_engine_fixture.h", 151 "voice_engine_fixture.h",
222 ] 152 ]
223 153
224 data = [ 154 data = [
225 "../resources/utility/encapsulated_pcm16b_8khz.wav", 155 "../resources/utility/encapsulated_pcm16b_8khz.wav",
226 "../resources/utility/encapsulated_pcmu_8khz.wav", 156 "../resources/utility/encapsulated_pcmu_8khz.wav",
227 ] 157 ]
228 158
229 if (is_win) { 159 if (is_win) {
230 defines = [ "WEBRTC_DRIFT_COMPENSATION_SUPPORTED" ] 160 defines = [ "WEBRTC_DRIFT_COMPENSATION_SUPPORTED" ]
231 161
232 cflags = [ 162 cflags = [
233 # TODO(kjellander): Bug 261: fix this warning. 163 # TODO(kjellander): Bug 261: fix this warning.
234 "/wd4373", # Virtual function override. 164 "/wd4373", # Virtual function override.
235 ] 165 ]
236 } 166 }
237 167
238 if (!build_with_chromium && is_clang) { 168 if (!build_with_chromium && is_clang) {
239 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 169 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
240 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 170 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
241 } 171 }
242 } 172 }
243 } 173 }
OLDNEW
« no previous file with comments | « test/mock_voice_engine.h ('k') | voice_engine/channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698