1# Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
2#
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
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS.  All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
9import("../build/webrtc.gni")
10
11source_set("voice_engine") {
12
13  sources = [
14    "include/voe_audio_processing.h",
15    "include/voe_base.h",
16    "include/voe_codec.h",
17    "include/voe_dtmf.h",
18    "include/voe_errors.h",
19    "include/voe_external_media.h",
20    "include/voe_file.h",
21    "include/voe_hardware.h",
22    "include/voe_neteq_stats.h",
23    "include/voe_network.h",
24    "include/voe_rtp_rtcp.h",
25    "include/voe_video_sync.h",
26    "include/voe_volume_control.h",
27    "channel.cc",
28    "channel.h",
29    "channel_manager.cc",
30    "channel_manager.h",
31    "dtmf_inband.cc",
32    "dtmf_inband.h",
33    "dtmf_inband_queue.cc",
34    "dtmf_inband_queue.h",
35    "level_indicator.cc",
36    "level_indicator.h",
37    "monitor_module.cc",
38    "monitor_module.h",
39    "network_predictor.cc",
40    "network_predictor.h",
41    "output_mixer.cc",
42    "output_mixer.h",
43    "shared_data.cc",
44    "shared_data.h",
45    "statistics.cc",
46    "statistics.h",
47    "transmit_mixer.cc",
48    "transmit_mixer.h",
49    "utility.cc",
50    "utility.h",
51    "voe_audio_processing_impl.cc",
52    "voe_audio_processing_impl.h",
53    "voe_base_impl.cc",
54    "voe_base_impl.h",
55    "voe_codec_impl.cc",
56    "voe_codec_impl.h",
57    "voe_dtmf_impl.cc",
58    "voe_dtmf_impl.h",
59    "voe_external_media_impl.cc",
60    "voe_external_media_impl.h",
61    "voe_file_impl.cc",
62    "voe_file_impl.h",
63    "voe_hardware_impl.cc",
64    "voe_hardware_impl.h",
65    "voe_neteq_stats_impl.cc",
66    "voe_neteq_stats_impl.h",
67    "voe_network_impl.cc",
68    "voe_network_impl.h",
69    "voe_rtp_rtcp_impl.cc",
70    "voe_rtp_rtcp_impl.h",
71    "voe_video_sync_impl.cc",
72    "voe_video_sync_impl.h",
73    "voe_volume_control_impl.cc",
74    "voe_volume_control_impl.h",
75    "voice_engine_defines.h",
76    "voice_engine_impl.cc",
77    "voice_engine_impl.h",
78  ]
79
80  if (is_win) {
81    defines = [ "WEBRTC_DRIFT_COMPENSATION_SUPPORTED" ]
82
83    cflags = [
84      # TODO(kjellander): Bug 261: fix this warning.
85      "/wd4373",  # virtual function override.
86    ]
87  }
88
89  configs += [ "..:common_config" ]
90  public_configs = [ "..:common_inherited_config" ]
91
92  if (is_clang) {
93    # Suppress warnings from Chrome's Clang plugins.
94    # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
95    configs -= [ "//build/config/clang:find_bad_constructs" ]
96  }
97
98  deps = [
99    "..:webrtc_common",
100    "../common_audio",
101    "../modules/audio_coding",
102    "../modules/audio_conference_mixer",
103    "../modules/audio_device",
104    "../modules/audio_processing",
105    "../modules/bitrate_controller",
106    "../modules/media_file",
107    "../modules/rtp_rtcp",
108    "../modules/utility",
109    "../system_wrappers",
110  ]
111}
112