henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame^] | 1 | # Copyright (c) 2012 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 | 'variables': { |
| 11 | 'neteq_dependencies': [ |
| 12 | 'G711', |
| 13 | 'G722', |
| 14 | 'PCM16B', |
| 15 | 'iLBC', |
| 16 | 'iSAC', |
| 17 | 'iSACFix', |
| 18 | 'CNG', |
| 19 | '<(webrtc_root)/common_audio/common_audio.gyp:signal_processing', |
| 20 | '<(webrtc_root)/common_audio/common_audio.gyp:vad', |
| 21 | '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', |
| 22 | ], |
| 23 | 'neteq_defines': [], |
| 24 | 'conditions': [ |
| 25 | ['include_opus==1', { |
| 26 | 'neteq_dependencies': ['webrtc_opus',], |
| 27 | 'neteq_defines': ['WEBRTC_CODEC_OPUS',], |
| 28 | }], |
| 29 | ], |
| 30 | }, |
| 31 | 'targets': [ |
| 32 | { |
| 33 | 'target_name': 'NetEq4', |
| 34 | 'type': 'static_library', |
| 35 | 'dependencies': [ |
| 36 | '<@(neteq_dependencies)', |
| 37 | ], |
| 38 | 'defines': [ |
| 39 | '<@(neteq_defines)', |
| 40 | ], |
| 41 | 'include_dirs': [ |
| 42 | 'interface', |
| 43 | ], |
| 44 | 'direct_dependent_settings': { |
| 45 | 'include_dirs': [ |
| 46 | 'interface', |
| 47 | ], |
| 48 | }, |
| 49 | 'sources': [ |
| 50 | 'interface/audio_decoder.h', |
| 51 | 'interface/neteq.h', |
| 52 | 'accelerate.cc', |
| 53 | 'accelerate.h', |
| 54 | 'audio_decoder_impl.cc', |
| 55 | 'audio_decoder_impl.h', |
| 56 | 'audio_decoder.cc', |
| 57 | 'audio_multi_vector.cc', |
| 58 | 'audio_multi_vector.h', |
| 59 | 'audio_vector.cc', |
| 60 | 'audio_vector.h', |
| 61 | 'background_noise.cc', |
| 62 | 'background_noise.h', |
| 63 | 'buffer_level_filter.cc', |
| 64 | 'buffer_level_filter.h', |
| 65 | 'comfort_noise.cc', |
| 66 | 'comfort_noise.h', |
| 67 | 'decision_logic.cc', |
| 68 | 'decision_logic.h', |
| 69 | 'decision_logic_fax.cc', |
| 70 | 'decision_logic_fax.h', |
| 71 | 'decision_logic_normal.cc', |
| 72 | 'decision_logic_normal.h', |
| 73 | 'decoder_database.cc', |
| 74 | 'decoder_database.h', |
| 75 | 'defines.h', |
| 76 | 'delay_manager.cc', |
| 77 | 'delay_manager.h', |
| 78 | 'delay_peak_detector.cc', |
| 79 | 'delay_peak_detector.h', |
| 80 | 'dsp_helper.cc', |
| 81 | 'dsp_helper.h', |
| 82 | 'dtmf_buffer.cc', |
| 83 | 'dtmf_buffer.h', |
| 84 | 'dtmf_tone_generator.cc', |
| 85 | 'dtmf_tone_generator.h', |
| 86 | 'expand.cc', |
| 87 | 'expand.h', |
| 88 | 'merge.cc', |
| 89 | 'merge.h', |
| 90 | 'neteq_impl.cc', |
| 91 | 'neteq_impl.h', |
| 92 | 'neteq.cc', |
| 93 | 'statistics_calculator.cc', |
| 94 | 'statistics_calculator.h', |
| 95 | 'normal.cc', |
| 96 | 'normal.h', |
| 97 | 'packet_buffer.cc', |
| 98 | 'packet_buffer.h', |
| 99 | 'payload_splitter.cc', |
| 100 | 'payload_splitter.h', |
| 101 | 'post_decode_vad.cc', |
| 102 | 'post_decode_vad.h', |
| 103 | 'preemptive_expand.cc', |
| 104 | 'preemptive_expand.h', |
| 105 | 'random_vector.cc', |
| 106 | 'random_vector.h', |
| 107 | 'rtcp.cc', |
| 108 | 'rtcp.h', |
| 109 | 'sync_buffer.cc', |
| 110 | 'sync_buffer.h', |
| 111 | 'timestamp_scaler.cc', |
| 112 | 'timestamp_scaler.h', |
| 113 | 'time_stretch.cc', |
| 114 | 'time_stretch.h', |
| 115 | ], |
| 116 | }, |
| 117 | ], # targets |
| 118 | 'conditions': [ |
| 119 | ['include_tests==1', { |
| 120 | 'includes': ['neteq_tests.gypi',], |
| 121 | 'targets': [ |
| 122 | { |
| 123 | 'target_name': 'neteq4_unittests', |
| 124 | 'type': 'executable', |
| 125 | 'dependencies': [ |
| 126 | 'NetEq4', |
| 127 | 'NetEq4TestTools', |
| 128 | 'neteq_unittest_tools', |
| 129 | 'PCM16B', |
| 130 | '<(DEPTH)/testing/gmock.gyp:gmock', |
| 131 | '<(DEPTH)/testing/gtest.gyp:gtest', |
| 132 | '<(webrtc_root)/test/test.gyp:test_support_main', |
| 133 | ], |
| 134 | 'sources': [ |
| 135 | 'audio_multi_vector_unittest.cc', |
| 136 | 'audio_vector_unittest.cc', |
| 137 | 'background_noise_unittest.cc', |
| 138 | 'buffer_level_filter_unittest.cc', |
| 139 | 'comfort_noise_unittest.cc', |
| 140 | 'decision_logic_unittest.cc', |
| 141 | 'decoder_database_unittest.cc', |
| 142 | 'delay_manager_unittest.cc', |
| 143 | 'delay_peak_detector_unittest.cc', |
| 144 | 'dsp_helper_unittest.cc', |
| 145 | 'dtmf_buffer_unittest.cc', |
| 146 | 'dtmf_tone_generator_unittest.cc', |
| 147 | 'expand_unittest.cc', |
| 148 | 'merge_unittest.cc', |
| 149 | 'neteq_external_decoder_unittest.cc', |
| 150 | 'neteq_impl_unittest.cc', |
| 151 | 'neteq_stereo_unittest.cc', |
| 152 | 'neteq_unittest.cc', |
| 153 | 'normal_unittest.cc', |
| 154 | 'packet_buffer_unittest.cc', |
| 155 | 'payload_splitter_unittest.cc', |
| 156 | 'post_decode_vad_unittest.cc', |
| 157 | 'random_vector_unittest.cc', |
| 158 | 'sync_buffer_unittest.cc', |
| 159 | 'timestamp_scaler_unittest.cc', |
| 160 | 'time_stretch_unittest.cc', |
| 161 | 'mock/mock_audio_decoder.h', |
| 162 | 'mock/mock_audio_vector.h', |
| 163 | 'mock/mock_buffer_level_filter.h', |
| 164 | 'mock/mock_decoder_database.h', |
| 165 | 'mock/mock_delay_manager.h', |
| 166 | 'mock/mock_delay_peak_detector.h', |
| 167 | 'mock/mock_dtmf_buffer.h', |
| 168 | 'mock/mock_dtmf_tone_generator.h', |
| 169 | 'mock/mock_external_decoder_pcm16b.h', |
| 170 | 'mock/mock_packet_buffer.h', |
| 171 | 'mock/mock_payload_splitter.h', |
| 172 | ], |
| 173 | }, # neteq_unittests |
| 174 | |
| 175 | { |
| 176 | 'target_name': 'audio_decoder_unittests', |
| 177 | 'type': 'executable', |
| 178 | 'dependencies': [ |
| 179 | '<@(neteq_dependencies)', |
| 180 | '<(DEPTH)/testing/gtest.gyp:gtest', |
| 181 | '<(webrtc_root)/common_audio/common_audio.gyp:resampler', |
| 182 | '<(webrtc_root)/test/test.gyp:test_support_main', |
| 183 | ], |
| 184 | 'defines': [ |
| 185 | 'AUDIO_DECODER_UNITTEST', |
| 186 | 'WEBRTC_CODEC_G722', |
| 187 | 'WEBRTC_CODEC_ILBC', |
| 188 | 'WEBRTC_CODEC_ISACFX', |
| 189 | 'WEBRTC_CODEC_ISAC', |
| 190 | 'WEBRTC_CODEC_PCM16', |
| 191 | '<@(neteq_defines)', |
| 192 | ], |
| 193 | 'sources': [ |
| 194 | 'audio_decoder_impl.cc', |
| 195 | 'audio_decoder_impl.h', |
| 196 | 'audio_decoder_unittest.cc', |
| 197 | 'audio_decoder.cc', |
| 198 | 'interface/audio_decoder.h', |
| 199 | ], |
| 200 | }, # audio_decoder_unittest |
| 201 | |
| 202 | { |
| 203 | 'target_name': 'neteq_unittest_tools', |
| 204 | 'type': 'static_library', |
| 205 | 'dependencies': [ |
| 206 | '<(DEPTH)/testing/gmock.gyp:gmock', |
| 207 | '<(DEPTH)/testing/gtest.gyp:gtest', |
| 208 | '<(webrtc_root)/test/test.gyp:test_support_main', |
| 209 | ], |
| 210 | 'direct_dependent_settings': { |
| 211 | 'include_dirs': [ |
| 212 | 'tools', |
| 213 | ], |
| 214 | }, |
| 215 | 'include_dirs': [ |
| 216 | 'tools', |
| 217 | ], |
| 218 | 'sources': [ |
| 219 | 'tools/input_audio_file.cc', |
| 220 | 'tools/input_audio_file.h', |
| 221 | 'tools/rtp_generator.cc', |
| 222 | 'tools/rtp_generator.h', |
| 223 | ], |
| 224 | }, # neteq_unittest_tools |
| 225 | ], # targets |
| 226 | }], # include_tests |
| 227 | ], # conditions |
| 228 | } |