Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / webrtc / modules / audio_coding / neteq4 / neteq_tests.gypi
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   'targets': [
11     {
12       'target_name': 'neteq_rtpplay',
13       'type': 'executable',
14       'dependencies': [
15         'NetEq4',
16         'NetEq4TestTools',
17         'neteq_unittest_tools',
18         'PCM16B',
19         '<(webrtc_root)/test/test.gyp:test_support_main',
20         '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
21       ],
22       'sources': [
23         'tools/neteq_rtpplay.cc',
24       ],
25       'defines': [
26       ],
27     }, # neteq_rtpplay
28
29     {
30       'target_name': 'RTPencode',
31       'type': 'executable',
32       'dependencies': [
33         # TODO(hlundin): Make RTPencode use ACM to encode files.
34         'NetEq4TestTools',# Test helpers
35         'G711',
36         'G722',
37         'PCM16B',
38         'iLBC',
39         'iSAC',
40         'CNG',
41         '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
42       ],
43       'defines': [
44         'CODEC_ILBC',
45         'CODEC_PCM16B',
46         'CODEC_G711',
47         'CODEC_G722',
48         'CODEC_ISAC',
49         'CODEC_PCM16B_WB',
50         'CODEC_ISAC_SWB',
51         'CODEC_PCM16B_32KHZ',
52         'CODEC_CNGCODEC8',
53         'CODEC_CNGCODEC16',
54         'CODEC_CNGCODEC32',
55         'CODEC_ATEVENT_DECODE',
56         'CODEC_RED',
57       ],
58       'include_dirs': [
59         'interface',
60         'test',
61         '<(webrtc_root)',
62       ],
63       'sources': [
64         'test/RTPencode.cc',
65       ],
66       # Disable warnings to enable Win64 build, issue 1323.
67       'msvs_disabled_warnings': [
68         4267,  # size_t to int truncation.
69       ],
70     },
71
72     {
73       'target_name': 'RTPjitter',
74       'type': 'executable',
75       'dependencies': [
76         '<(DEPTH)/testing/gtest.gyp:gtest',
77       ],
78       'sources': [
79         'test/RTPjitter.cc',
80       ],
81     },
82
83     {
84       'target_name': 'RTPanalyze',
85       'type': 'executable',
86       'dependencies': [
87         'NetEq4TestTools',
88         '<(DEPTH)/testing/gtest.gyp:gtest',
89       ],
90       'sources': [
91         'test/RTPanalyze.cc',
92       ],
93     },
94
95     {
96       'target_name': 'RTPchange',
97       'type': 'executable',
98       'dependencies': [
99         'NetEq4TestTools',
100         '<(DEPTH)/testing/gtest.gyp:gtest',
101       ],
102       'sources': [
103        'test/RTPchange.cc',
104       ],
105     },
106
107     {
108       'target_name': 'RTPtimeshift',
109       'type': 'executable',
110       'dependencies': [
111        'NetEq4TestTools',
112         '<(DEPTH)/testing/gtest.gyp:gtest',
113       ],
114       'sources': [
115         'test/RTPtimeshift.cc',
116       ],
117     },
118
119     {
120       'target_name': 'RTPcat',
121       'type': 'executable',
122       'dependencies': [
123         'NetEq4TestTools',
124         '<(DEPTH)/testing/gtest.gyp:gtest',
125       ],
126       'sources': [
127         'test/RTPcat.cc',
128       ],
129     },
130
131     {
132       'target_name': 'rtp_to_text',
133       'type': 'executable',
134       'dependencies': [
135         'NetEq4TestTools',
136         '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
137       ],
138       'sources': [
139         'test/rtp_to_text.cc',
140       ],
141     },
142
143     {
144       'target_name': 'neteq4_speed_test',
145       'type': 'executable',
146       'dependencies': [
147         'NetEq4',
148         'neteq_unittest_tools',
149         'PCM16B',
150         '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
151         '<(webrtc_root)/test/test.gyp:test_support_main',
152       ],
153       'sources': [
154         'test/neteq_speed_test.cc',
155       ],
156     },
157
158     {
159      'target_name': 'NetEq4TestTools',
160       # Collection of useful functions used in other tests.
161       'type': 'static_library',
162       'variables': {
163         # Expects RTP packets without payloads when enabled.
164         'neteq_dummy_rtp%': 0,
165       },
166       'dependencies': [
167         'G711',
168         'G722',
169         'PCM16B',
170         'iLBC',
171         'iSAC',
172         'CNG',
173         '<(DEPTH)/testing/gtest.gyp:gtest',
174       ],
175       'direct_dependent_settings': {
176         'include_dirs': [
177           'interface',
178           'test',
179           '<(webrtc_root)',
180         ],
181       },
182       'defines': [
183       ],
184       'include_dirs': [
185         'interface',
186         'test',
187         '<(webrtc_root)',
188       ],
189       'sources': [
190         'test/NETEQTEST_DummyRTPpacket.cc',
191         'test/NETEQTEST_DummyRTPpacket.h',
192         'test/NETEQTEST_RTPpacket.cc',
193         'test/NETEQTEST_RTPpacket.h',
194       ],
195       # Disable warnings to enable Win64 build, issue 1323.
196       'msvs_disabled_warnings': [
197         4267,  # size_t to int truncation.
198       ],
199     },
200   ], # targets
201 }