xians@google.com | d3185fe | 2011-09-12 12:24:39 +0000 | [diff] [blame] | 1 | # Copyright (c) 2011 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 | |
| 9 | { |
| 10 | 'includes': [ |
andrew@webrtc.org | 3ce62fc | 2011-10-06 01:03:18 +0000 | [diff] [blame] | 11 | '../build/common.gypi', |
xians@google.com | d3185fe | 2011-09-12 12:24:39 +0000 | [diff] [blame] | 12 | ], |
andrew@webrtc.org | f791b1c | 2013-05-29 00:38:02 +0000 | [diff] [blame^] | 13 | 'targets': [ |
| 14 | { |
| 15 | 'target_name': 'voice_engine', |
| 16 | 'type': 'static_library', |
| 17 | 'dependencies': [ |
| 18 | '<(webrtc_root)/common_audio/common_audio.gyp:common_audio', |
| 19 | '<(webrtc_root)/modules/modules.gyp:audio_coding_module', |
| 20 | '<(webrtc_root)/modules/modules.gyp:audio_conference_mixer', |
| 21 | '<(webrtc_root)/modules/modules.gyp:audio_device', |
| 22 | '<(webrtc_root)/modules/modules.gyp:audio_processing', |
| 23 | '<(webrtc_root)/modules/modules.gyp:media_file', |
| 24 | '<(webrtc_root)/modules/modules.gyp:rtp_rtcp', |
| 25 | '<(webrtc_root)/modules/modules.gyp:webrtc_utility', |
| 26 | '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', |
andrew@webrtc.org | 3ce62fc | 2011-10-06 01:03:18 +0000 | [diff] [blame] | 27 | ], |
andrew@webrtc.org | f791b1c | 2013-05-29 00:38:02 +0000 | [diff] [blame^] | 28 | 'include_dirs': [ |
| 29 | 'include', |
| 30 | '<(webrtc_root)/modules/audio_device', |
| 31 | ], |
| 32 | 'direct_dependent_settings': { |
| 33 | 'include_dirs': [ |
| 34 | 'include', |
| 35 | ], |
| 36 | }, |
| 37 | 'sources': [ |
| 38 | '../common_types.h', |
| 39 | '../engine_configurations.h', |
| 40 | '../typedefs.h', |
| 41 | 'include/voe_audio_processing.h', |
| 42 | 'include/voe_base.h', |
| 43 | 'include/voe_call_report.h', |
| 44 | 'include/voe_codec.h', |
| 45 | 'include/voe_dtmf.h', |
| 46 | 'include/voe_encryption.h', |
| 47 | 'include/voe_errors.h', |
| 48 | 'include/voe_external_media.h', |
| 49 | 'include/voe_file.h', |
| 50 | 'include/voe_hardware.h', |
| 51 | 'include/voe_neteq_stats.h', |
| 52 | 'include/voe_network.h', |
| 53 | 'include/voe_rtp_rtcp.h', |
| 54 | 'include/voe_video_sync.h', |
| 55 | 'include/voe_volume_control.h', |
| 56 | 'channel.cc', |
| 57 | 'channel.h', |
| 58 | 'channel_manager.cc', |
| 59 | 'channel_manager.h', |
| 60 | 'channel_manager_base.cc', |
| 61 | 'channel_manager_base.h', |
| 62 | 'dtmf_inband.cc', |
| 63 | 'dtmf_inband.h', |
| 64 | 'dtmf_inband_queue.cc', |
| 65 | 'dtmf_inband_queue.h', |
| 66 | 'level_indicator.cc', |
| 67 | 'level_indicator.h', |
| 68 | 'monitor_module.cc', |
| 69 | 'monitor_module.h', |
| 70 | 'output_mixer.cc', |
| 71 | 'output_mixer.h', |
| 72 | 'output_mixer_internal.cc', |
| 73 | 'output_mixer_internal.h', |
| 74 | 'shared_data.cc', |
| 75 | 'shared_data.h', |
| 76 | 'statistics.cc', |
| 77 | 'statistics.h', |
| 78 | 'transmit_mixer.cc', |
| 79 | 'transmit_mixer.h', |
| 80 | 'utility.cc', |
| 81 | 'utility.h', |
| 82 | 'voe_audio_processing_impl.cc', |
| 83 | 'voe_audio_processing_impl.h', |
| 84 | 'voe_base_impl.cc', |
| 85 | 'voe_base_impl.h', |
| 86 | 'voe_call_report_impl.cc', |
| 87 | 'voe_call_report_impl.h', |
| 88 | 'voe_codec_impl.cc', |
| 89 | 'voe_codec_impl.h', |
| 90 | 'voe_dtmf_impl.cc', |
| 91 | 'voe_dtmf_impl.h', |
| 92 | 'voe_encryption_impl.cc', |
| 93 | 'voe_encryption_impl.h', |
| 94 | 'voe_external_media_impl.cc', |
| 95 | 'voe_external_media_impl.h', |
| 96 | 'voe_file_impl.cc', |
| 97 | 'voe_file_impl.h', |
| 98 | 'voe_hardware_impl.cc', |
| 99 | 'voe_hardware_impl.h', |
| 100 | 'voe_neteq_stats_impl.cc', |
| 101 | 'voe_neteq_stats_impl.h', |
| 102 | 'voe_network_impl.cc', |
| 103 | 'voe_network_impl.h', |
| 104 | 'voe_rtp_rtcp_impl.cc', |
| 105 | 'voe_rtp_rtcp_impl.h', |
| 106 | 'voe_video_sync_impl.cc', |
| 107 | 'voe_video_sync_impl.h', |
| 108 | 'voe_volume_control_impl.cc', |
| 109 | 'voe_volume_control_impl.h', |
| 110 | 'voice_engine_defines.h', |
| 111 | 'voice_engine_impl.cc', |
| 112 | 'voice_engine_impl.h', |
| 113 | ], |
| 114 | }, |
andrew@webrtc.org | 3ce62fc | 2011-10-06 01:03:18 +0000 | [diff] [blame] | 115 | ], |
andrew@webrtc.org | f791b1c | 2013-05-29 00:38:02 +0000 | [diff] [blame^] | 116 | 'conditions': [ |
| 117 | ['OS=="win"', { |
| 118 | 'defines': ['WEBRTC_DRIFT_COMPENSATION_SUPPORTED',], |
| 119 | }], |
| 120 | ['include_tests==1', { |
| 121 | 'targets': [ |
| 122 | { |
| 123 | 'target_name': 'voice_engine_unittests', |
| 124 | 'type': 'executable', |
| 125 | 'dependencies': [ |
| 126 | 'voice_engine', |
| 127 | '<(DEPTH)/testing/gtest.gyp:gtest', |
| 128 | '<(webrtc_root)/test/test.gyp:test_support_main', |
| 129 | # The rest are to satisfy the unittests' include chain. |
| 130 | # This would be unnecessary if we used qualified includes. |
| 131 | '<(webrtc_root)/common_audio/common_audio.gyp:common_audio', |
| 132 | '<(webrtc_root)/modules/modules.gyp:audio_device', |
| 133 | '<(webrtc_root)/modules/modules.gyp:audio_processing', |
| 134 | '<(webrtc_root)/modules/modules.gyp:audio_coding_module', |
| 135 | '<(webrtc_root)/modules/modules.gyp:audio_conference_mixer', |
| 136 | '<(webrtc_root)/modules/modules.gyp:media_file', |
| 137 | '<(webrtc_root)/modules/modules.gyp:rtp_rtcp', |
| 138 | '<(webrtc_root)/modules/modules.gyp:webrtc_utility', |
| 139 | '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', |
| 140 | ], |
| 141 | 'include_dirs': [ |
| 142 | 'include', |
| 143 | ], |
| 144 | 'sources': [ |
| 145 | 'channel_unittest.cc', |
| 146 | 'output_mixer_unittest.cc', |
| 147 | 'transmit_mixer_unittest.cc', |
| 148 | 'voe_audio_processing_unittest.cc', |
| 149 | 'voe_base_unittest.cc', |
| 150 | 'voe_codec_unittest.cc', |
| 151 | ], |
| 152 | }, |
| 153 | { |
| 154 | 'target_name': 'voe_auto_test', |
| 155 | 'type': 'executable', |
| 156 | 'dependencies': [ |
| 157 | 'voice_engine', |
| 158 | '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', |
| 159 | '<(webrtc_root)/test/test.gyp:test_support', |
| 160 | '<(DEPTH)/testing/gtest.gyp:gtest', |
| 161 | '<(DEPTH)/testing/gmock.gyp:gmock', |
| 162 | '<(DEPTH)/third_party/google-gflags/google-gflags.gyp:google-gflags', |
| 163 | '<(webrtc_root)/test/libtest/libtest.gyp:libtest', |
| 164 | '<(webrtc_root)/test/channel_transport.gyp:channel_transport', |
| 165 | ], |
| 166 | 'include_dirs': [ |
| 167 | 'auto_test', |
| 168 | 'auto_test/fixtures', |
| 169 | '<(webrtc_root)/modules/interface', |
| 170 | # TODO(phoglund): We only depend on voice_engine_defines.h here - |
| 171 | # move that file to interface and then remove this dependency. |
| 172 | '<(webrtc_root)/voice_engine', |
| 173 | '<(webrtc_root)/modules/audio_device/main/interface', |
| 174 | ], |
| 175 | 'sources': [ |
| 176 | 'test/auto_test/automated_mode.cc', |
| 177 | 'test/auto_test/extended/agc_config_test.cc', |
| 178 | 'test/auto_test/extended/ec_metrics_test.cc', |
| 179 | 'test/auto_test/fakes/fake_external_transport.cc', |
| 180 | 'test/auto_test/fakes/fake_external_transport.h', |
| 181 | 'test/auto_test/fixtures/after_initialization_fixture.cc', |
| 182 | 'test/auto_test/fixtures/after_initialization_fixture.h', |
| 183 | 'test/auto_test/fixtures/after_streaming_fixture.cc', |
| 184 | 'test/auto_test/fixtures/after_streaming_fixture.h', |
| 185 | 'test/auto_test/fixtures/before_initialization_fixture.cc', |
| 186 | 'test/auto_test/fixtures/before_initialization_fixture.h', |
| 187 | 'test/auto_test/fuzz/rtp_fuzz_test.cc', |
| 188 | 'test/auto_test/standard/audio_processing_test.cc', |
| 189 | 'test/auto_test/standard/call_report_test.cc', |
| 190 | 'test/auto_test/standard/codec_before_streaming_test.cc', |
| 191 | 'test/auto_test/standard/codec_test.cc', |
| 192 | 'test/auto_test/standard/dtmf_test.cc', |
| 193 | 'test/auto_test/standard/encryption_test.cc', |
| 194 | 'test/auto_test/standard/external_media_test.cc', |
| 195 | 'test/auto_test/standard/file_before_streaming_test.cc', |
| 196 | 'test/auto_test/standard/file_test.cc', |
| 197 | 'test/auto_test/standard/hardware_before_initializing_test.cc', |
| 198 | 'test/auto_test/standard/hardware_before_streaming_test.cc', |
| 199 | 'test/auto_test/standard/hardware_test.cc', |
| 200 | 'test/auto_test/standard/manual_hold_test.cc', |
| 201 | 'test/auto_test/standard/mixing_test.cc', |
| 202 | 'test/auto_test/standard/neteq_stats_test.cc', |
| 203 | 'test/auto_test/standard/neteq_test.cc', |
| 204 | 'test/auto_test/standard/network_test.cc', |
| 205 | 'test/auto_test/standard/rtp_rtcp_before_streaming_test.cc', |
| 206 | 'test/auto_test/standard/rtp_rtcp_test.cc', |
| 207 | 'test/auto_test/standard/voe_base_misc_test.cc', |
| 208 | 'test/auto_test/standard/video_sync_test.cc', |
| 209 | 'test/auto_test/standard/volume_test.cc', |
| 210 | 'test/auto_test/resource_manager.cc', |
| 211 | 'test/auto_test/voe_cpu_test.cc', |
| 212 | 'test/auto_test/voe_cpu_test.h', |
| 213 | 'test/auto_test/voe_extended_test.cc', |
| 214 | 'test/auto_test/voe_extended_test.h', |
| 215 | 'test/auto_test/voe_standard_test.cc', |
| 216 | 'test/auto_test/voe_standard_test.h', |
| 217 | 'test/auto_test/voe_stress_test.cc', |
| 218 | 'test/auto_test/voe_stress_test.h', |
| 219 | 'test/auto_test/voe_test_defines.h', |
| 220 | 'test/auto_test/voe_test_interface.h', |
| 221 | 'test/auto_test/voe_unit_test.cc', |
| 222 | 'test/auto_test/voe_unit_test.h', |
| 223 | ], |
| 224 | 'conditions': [ |
| 225 | ['OS=="android"', { |
| 226 | # some tests are not supported on android yet, exclude these tests. |
| 227 | 'sources!': [ |
| 228 | 'test/auto_test/standard/hardware_before_streaming_test.cc', |
| 229 | ], |
| 230 | }], |
| 231 | ], |
| 232 | # Disable warnings to enable Win64 build, issue 1323. |
| 233 | 'msvs_disabled_warnings': [ |
| 234 | 4267, # size_t to int truncation. |
| 235 | ], |
| 236 | }, |
| 237 | { |
| 238 | # command line test that should work on linux/mac/win |
| 239 | 'target_name': 'voe_cmd_test', |
| 240 | 'type': 'executable', |
| 241 | 'dependencies': [ |
| 242 | '<(webrtc_root)/test/test.gyp:test_support', |
| 243 | '<(DEPTH)/testing/gtest.gyp:gtest', |
| 244 | 'voice_engine', |
| 245 | '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', |
| 246 | '<(webrtc_root)/test/channel_transport.gyp:channel_transport', |
| 247 | ], |
| 248 | 'sources': [ |
| 249 | 'test/cmd_test/voe_cmd_test.cc', |
| 250 | ], |
| 251 | }, |
| 252 | ], # targets |
| 253 | 'conditions': [ |
| 254 | # TODO(kjellander): Support UseoFMFC on VS2010. |
| 255 | # http://code.google.com/p/webrtc/issues/detail?id=709 |
| 256 | ['OS=="win" and MSVS_VERSION < "2010"', { |
| 257 | 'targets': [ |
| 258 | # WinTest - GUI test for Windows |
| 259 | { |
| 260 | 'target_name': 'voe_ui_win_test', |
| 261 | 'type': 'executable', |
| 262 | 'dependencies': [ |
| 263 | 'voice_engine', |
| 264 | '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', |
| 265 | '<(webrtc_root)/test/test.gyp:test_support', |
| 266 | ], |
| 267 | 'include_dirs': [ |
| 268 | 'win_test', |
| 269 | ], |
| 270 | 'sources': [ |
| 271 | 'test/win_test/Resource.h', |
| 272 | 'test/win_test/WinTest.cc', |
| 273 | 'test/win_test/WinTest.h', |
| 274 | 'test/win_test/WinTest.rc', |
| 275 | 'test/win_test/WinTestDlg.cc', |
| 276 | 'test/win_test/WinTestDlg.h', |
| 277 | 'test/win_test/res/WinTest.ico', |
| 278 | 'test/win_test/res/WinTest.rc2', |
| 279 | 'test/win_test/stdafx.cc', |
| 280 | 'test/win_test/stdafx.h', |
| 281 | ], |
| 282 | 'configurations': { |
| 283 | 'Common_Base': { |
| 284 | 'msvs_configuration_attributes': { |
| 285 | 'conditions': [ |
| 286 | ['component=="shared_library"', { |
| 287 | 'UseOfMFC': '2', # Shared DLL |
| 288 | },{ |
| 289 | 'UseOfMFC': '1', # Static |
| 290 | }], |
| 291 | ], |
| 292 | }, |
| 293 | }, |
| 294 | }, |
| 295 | 'msvs_settings': { |
| 296 | 'VCLinkerTool': { |
| 297 | 'SubSystem': '2', # Windows |
| 298 | }, |
| 299 | }, |
| 300 | }, |
| 301 | ], # targets |
| 302 | }], |
| 303 | ], # conditions |
| 304 | }], # include_tests |
| 305 | ], # conditions |
xians@google.com | d3185fe | 2011-09-12 12:24:39 +0000 | [diff] [blame] | 306 | } |