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