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': { |
turaj@webrtc.org | 17bf9a2 | 2014-05-09 18:04:50 +0000 | [diff] [blame] | 11 | 'codecs': [ |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 12 | 'G711', |
| 13 | 'G722', |
| 14 | 'PCM16B', |
| 15 | 'iLBC', |
| 16 | 'iSAC', |
| 17 | 'iSACFix', |
| 18 | 'CNG', |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 19 | ], |
| 20 | 'neteq_defines': [], |
| 21 | 'conditions': [ |
| 22 | ['include_opus==1', { |
turaj@webrtc.org | 17bf9a2 | 2014-05-09 18:04:50 +0000 | [diff] [blame] | 23 | 'codecs': ['webrtc_opus',], |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 24 | 'neteq_defines': ['WEBRTC_CODEC_OPUS',], |
| 25 | }], |
| 26 | ], |
turaj@webrtc.org | 17bf9a2 | 2014-05-09 18:04:50 +0000 | [diff] [blame] | 27 | 'neteq_dependencies': [ |
| 28 | '<@(codecs)', |
turaj@webrtc.org | 17bf9a2 | 2014-05-09 18:04:50 +0000 | [diff] [blame] | 29 | '<(webrtc_root)/common_audio/common_audio.gyp:common_audio', |
andresp@webrtc.org | 86e1e48 | 2015-01-14 09:30:52 +0000 | [diff] [blame] | 30 | '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers', |
kwiberg@webrtc.org | e04a93b | 2014-12-09 10:12:53 +0000 | [diff] [blame] | 31 | 'audio_decoder_interface', |
turaj@webrtc.org | 17bf9a2 | 2014-05-09 18:04:50 +0000 | [diff] [blame] | 32 | ], |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 33 | }, |
| 34 | 'targets': [ |
| 35 | { |
henrik.lundin@webrtc.org | 9c55f0f | 2014-06-09 08:10:28 +0000 | [diff] [blame] | 36 | 'target_name': 'neteq', |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 37 | 'type': 'static_library', |
| 38 | 'dependencies': [ |
| 39 | '<@(neteq_dependencies)', |
kwiberg@webrtc.org | ac2d27d | 2015-02-26 13:59:22 +0000 | [diff] [blame] | 40 | '<(webrtc_root)/common.gyp:webrtc_common', |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 41 | ], |
| 42 | 'defines': [ |
| 43 | '<@(neteq_defines)', |
| 44 | ], |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 45 | 'sources': [ |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 46 | 'interface/neteq.h', |
| 47 | 'accelerate.cc', |
| 48 | 'accelerate.h', |
jan.skoglund@webrtc.org | c3d13d3 | 2014-03-10 22:50:19 +0000 | [diff] [blame] | 49 | 'audio_classifier.cc', |
| 50 | 'audio_classifier.h', |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 51 | 'audio_decoder_impl.cc', |
| 52 | 'audio_decoder_impl.h', |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 53 | 'audio_multi_vector.cc', |
| 54 | 'audio_multi_vector.h', |
| 55 | 'audio_vector.cc', |
| 56 | 'audio_vector.h', |
| 57 | 'background_noise.cc', |
| 58 | 'background_noise.h', |
| 59 | 'buffer_level_filter.cc', |
| 60 | 'buffer_level_filter.h', |
| 61 | 'comfort_noise.cc', |
| 62 | 'comfort_noise.h', |
| 63 | 'decision_logic.cc', |
| 64 | 'decision_logic.h', |
| 65 | 'decision_logic_fax.cc', |
| 66 | 'decision_logic_fax.h', |
| 67 | 'decision_logic_normal.cc', |
| 68 | 'decision_logic_normal.h', |
| 69 | 'decoder_database.cc', |
| 70 | 'decoder_database.h', |
| 71 | 'defines.h', |
| 72 | 'delay_manager.cc', |
| 73 | 'delay_manager.h', |
| 74 | 'delay_peak_detector.cc', |
| 75 | 'delay_peak_detector.h', |
| 76 | 'dsp_helper.cc', |
| 77 | 'dsp_helper.h', |
| 78 | 'dtmf_buffer.cc', |
| 79 | 'dtmf_buffer.h', |
| 80 | 'dtmf_tone_generator.cc', |
| 81 | 'dtmf_tone_generator.h', |
| 82 | 'expand.cc', |
| 83 | 'expand.h', |
| 84 | 'merge.cc', |
| 85 | 'merge.h', |
| 86 | 'neteq_impl.cc', |
| 87 | 'neteq_impl.h', |
| 88 | 'neteq.cc', |
| 89 | 'statistics_calculator.cc', |
| 90 | 'statistics_calculator.h', |
| 91 | 'normal.cc', |
| 92 | 'normal.h', |
| 93 | 'packet_buffer.cc', |
| 94 | 'packet_buffer.h', |
| 95 | 'payload_splitter.cc', |
| 96 | 'payload_splitter.h', |
| 97 | 'post_decode_vad.cc', |
| 98 | 'post_decode_vad.h', |
| 99 | 'preemptive_expand.cc', |
| 100 | 'preemptive_expand.h', |
| 101 | 'random_vector.cc', |
| 102 | 'random_vector.h', |
| 103 | 'rtcp.cc', |
| 104 | 'rtcp.h', |
| 105 | 'sync_buffer.cc', |
| 106 | 'sync_buffer.h', |
| 107 | 'timestamp_scaler.cc', |
| 108 | 'timestamp_scaler.h', |
| 109 | 'time_stretch.cc', |
| 110 | 'time_stretch.h', |
| 111 | ], |
| 112 | }, |
| 113 | ], # targets |
| 114 | 'conditions': [ |
| 115 | ['include_tests==1', { |
| 116 | 'includes': ['neteq_tests.gypi',], |
| 117 | 'targets': [ |
| 118 | { |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 119 | 'target_name': 'audio_decoder_unittests', |
henrike@webrtc.org | 89c6740 | 2013-08-02 16:53:47 +0000 | [diff] [blame] | 120 | 'type': '<(gtest_target_type)', |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 121 | 'dependencies': [ |
turaj@webrtc.org | 17bf9a2 | 2014-05-09 18:04:50 +0000 | [diff] [blame] | 122 | '<@(codecs)', |
kwiberg@webrtc.org | e04a93b | 2014-12-09 10:12:53 +0000 | [diff] [blame] | 123 | 'audio_decoder_interface', |
henrik.lundin@webrtc.org | ff8a98e | 2014-10-28 09:47:13 +0000 | [diff] [blame] | 124 | 'neteq_unittest_tools', |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 125 | '<(DEPTH)/testing/gtest.gyp:gtest', |
andrew@webrtc.org | 3423537 | 2013-04-30 23:43:26 +0000 | [diff] [blame] | 126 | '<(webrtc_root)/common_audio/common_audio.gyp:common_audio', |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 127 | '<(webrtc_root)/test/test.gyp:test_support_main', |
| 128 | ], |
| 129 | 'defines': [ |
| 130 | 'AUDIO_DECODER_UNITTEST', |
| 131 | 'WEBRTC_CODEC_G722', |
| 132 | 'WEBRTC_CODEC_ILBC', |
| 133 | 'WEBRTC_CODEC_ISACFX', |
| 134 | 'WEBRTC_CODEC_ISAC', |
| 135 | 'WEBRTC_CODEC_PCM16', |
| 136 | '<@(neteq_defines)', |
| 137 | ], |
| 138 | 'sources': [ |
| 139 | 'audio_decoder_impl.cc', |
| 140 | 'audio_decoder_impl.h', |
| 141 | 'audio_decoder_unittest.cc', |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 142 | ], |
henrike@webrtc.org | 89c6740 | 2013-08-02 16:53:47 +0000 | [diff] [blame] | 143 | 'conditions': [ |
kjellander@webrtc.org | 3bd4156 | 2014-09-01 11:06:37 +0000 | [diff] [blame] | 144 | ['OS=="android"', { |
henrike@webrtc.org | 89c6740 | 2013-08-02 16:53:47 +0000 | [diff] [blame] | 145 | 'dependencies': [ |
| 146 | '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code', |
| 147 | ], |
| 148 | }], |
| 149 | ], |
kjellander@webrtc.org | fa53d87 | 2013-02-04 10:07:17 +0000 | [diff] [blame] | 150 | }, # audio_decoder_unittests |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 151 | |
| 152 | { |
| 153 | 'target_name': 'neteq_unittest_tools', |
| 154 | 'type': 'static_library', |
| 155 | 'dependencies': [ |
henrik.lundin@webrtc.org | 810acbc | 2014-04-14 18:42:23 +0000 | [diff] [blame] | 156 | 'rtp_rtcp', |
henrik.lundin@webrtc.org | 03499a0 | 2014-11-24 14:50:53 +0000 | [diff] [blame] | 157 | '<(webrtc_root)/common_audio/common_audio.gyp:common_audio', |
henrik.lundin@webrtc.org | ff8a98e | 2014-10-28 09:47:13 +0000 | [diff] [blame] | 158 | '<(webrtc_root)/test/test.gyp:rtp_test_utils', |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 159 | ], |
| 160 | 'direct_dependent_settings': { |
| 161 | 'include_dirs': [ |
| 162 | 'tools', |
| 163 | ], |
| 164 | }, |
| 165 | 'include_dirs': [ |
| 166 | 'tools', |
| 167 | ], |
| 168 | 'sources': [ |
henrik.lundin@webrtc.org | 496a984 | 2014-06-19 10:02:11 +0000 | [diff] [blame] | 169 | 'tools/audio_checksum.h', |
henrik.lundin@webrtc.org | d1fc5d4 | 2013-09-17 08:38:02 +0000 | [diff] [blame] | 170 | 'tools/audio_loop.cc', |
| 171 | 'tools/audio_loop.h', |
henrik.lundin@webrtc.org | 496a984 | 2014-06-19 10:02:11 +0000 | [diff] [blame] | 172 | 'tools/audio_sink.h', |
henrik.lundin@webrtc.org | 81a7893 | 2014-10-14 10:49:58 +0000 | [diff] [blame] | 173 | 'tools/constant_pcm_packet_source.cc', |
| 174 | 'tools/constant_pcm_packet_source.h', |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 175 | 'tools/input_audio_file.cc', |
| 176 | 'tools/input_audio_file.h', |
henrik.lundin@webrtc.org | 496a984 | 2014-06-19 10:02:11 +0000 | [diff] [blame] | 177 | 'tools/output_audio_file.h', |
henrik.lundin@webrtc.org | 03499a0 | 2014-11-24 14:50:53 +0000 | [diff] [blame] | 178 | 'tools/output_wav_file.h', |
henrik.lundin@webrtc.org | 810acbc | 2014-04-14 18:42:23 +0000 | [diff] [blame] | 179 | 'tools/packet.cc', |
| 180 | 'tools/packet.h', |
| 181 | 'tools/packet_source.h', |
henrik.lundin@webrtc.org | a37f1dd | 2014-10-27 12:58:18 +0000 | [diff] [blame] | 182 | 'tools/resample_input_audio_file.cc', |
| 183 | 'tools/resample_input_audio_file.h', |
henrik.lundin@webrtc.org | 810acbc | 2014-04-14 18:42:23 +0000 | [diff] [blame] | 184 | 'tools/rtp_file_source.cc', |
| 185 | 'tools/rtp_file_source.h', |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 186 | 'tools/rtp_generator.cc', |
| 187 | 'tools/rtp_generator.h', |
| 188 | ], |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 189 | }, # neteq_unittest_tools |
| 190 | ], # targets |
henrike@webrtc.org | 89c6740 | 2013-08-02 16:53:47 +0000 | [diff] [blame] | 191 | 'conditions': [ |
kjellander@webrtc.org | 3bd4156 | 2014-09-01 11:06:37 +0000 | [diff] [blame] | 192 | ['OS=="android"', { |
henrike@webrtc.org | 89c6740 | 2013-08-02 16:53:47 +0000 | [diff] [blame] | 193 | 'targets': [ |
| 194 | { |
kjellander@webrtc.org | 0372b93 | 2014-09-03 14:34:46 +0000 | [diff] [blame] | 195 | 'target_name': 'audio_decoder_unittests_apk_target', |
henrike@webrtc.org | 89c6740 | 2013-08-02 16:53:47 +0000 | [diff] [blame] | 196 | 'type': 'none', |
| 197 | 'dependencies': [ |
kjellander@webrtc.org | 0372b93 | 2014-09-03 14:34:46 +0000 | [diff] [blame] | 198 | '<(apk_tests_path):audio_decoder_unittests_apk', |
henrike@webrtc.org | 89c6740 | 2013-08-02 16:53:47 +0000 | [diff] [blame] | 199 | ], |
| 200 | }, |
| 201 | ], |
| 202 | }], |
kjellander@webrtc.org | 3365422 | 2013-08-22 07:57:00 +0000 | [diff] [blame] | 203 | ['test_isolation_mode != "noop"', { |
| 204 | 'targets': [ |
| 205 | { |
| 206 | 'target_name': 'audio_decoder_unittests_run', |
| 207 | 'type': 'none', |
| 208 | 'dependencies': [ |
kjellander@webrtc.org | 3365422 | 2013-08-22 07:57:00 +0000 | [diff] [blame] | 209 | 'audio_decoder_unittests', |
| 210 | ], |
| 211 | 'includes': [ |
kjellander@webrtc.org | 2a97317 | 2013-10-02 19:31:16 +0000 | [diff] [blame] | 212 | '../../../build/isolate.gypi', |
kjellander@webrtc.org | 3365422 | 2013-08-22 07:57:00 +0000 | [diff] [blame] | 213 | ], |
| 214 | 'sources': [ |
| 215 | 'audio_decoder_unittests.isolate', |
| 216 | ], |
| 217 | }, |
| 218 | ], |
| 219 | }], |
henrike@webrtc.org | 89c6740 | 2013-08-02 16:53:47 +0000 | [diff] [blame] | 220 | ], |
henrik.lundin@webrtc.org | d94659d | 2013-01-29 12:09:21 +0000 | [diff] [blame] | 221 | }], # include_tests |
| 222 | ], # conditions |
| 223 | } |