OLD | NEW |
| (Empty) |
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 'audio_coding_dependencies': [ | |
12 'cng', | |
13 'g711', | |
14 'pcm16b', | |
15 '<(webrtc_root)/common.gyp:webrtc_common', | |
16 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio', | |
17 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers', | |
18 ], | |
19 'audio_coding_defines': [], | |
20 'conditions': [ | |
21 ['include_opus==1', { | |
22 'audio_coding_dependencies': ['webrtc_opus',], | |
23 'audio_coding_defines': ['WEBRTC_CODEC_OPUS',], | |
24 }], | |
25 ['build_with_mozilla==0', { | |
26 'conditions': [ | |
27 ['target_arch=="arm"', { | |
28 'audio_coding_dependencies': ['isac_fix',], | |
29 'audio_coding_defines': ['WEBRTC_CODEC_ISACFX',], | |
30 }, { | |
31 'audio_coding_dependencies': ['isac',], | |
32 'audio_coding_defines': ['WEBRTC_CODEC_ISAC',], | |
33 }], | |
34 ], | |
35 'audio_coding_dependencies': ['g722',], | |
36 'audio_coding_defines': ['WEBRTC_CODEC_G722',], | |
37 }], | |
38 ['build_with_mozilla==0 and build_with_chromium==0', { | |
39 'audio_coding_dependencies': ['ilbc', 'red',], | |
40 'audio_coding_defines': ['WEBRTC_CODEC_ILBC', 'WEBRTC_CODEC_RED',], | |
41 }], | |
42 ], | |
43 }, | |
44 'targets': [ | |
45 { | |
46 'target_name': 'rent_a_codec', | |
47 'type': 'static_library', | |
48 'defines': [ | |
49 '<@(audio_coding_defines)', | |
50 ], | |
51 'dependencies': [ | |
52 '<(webrtc_root)/common.gyp:webrtc_common', | |
53 ], | |
54 'include_dirs': [ | |
55 '<(webrtc_root)', | |
56 ], | |
57 'direct_dependent_settings': { | |
58 'include_dirs': [ | |
59 '<(webrtc_root)', | |
60 ], | |
61 }, | |
62 'sources': [ | |
63 'acm2/acm_codec_database.cc', | |
64 'acm2/acm_codec_database.h', | |
65 'acm2/rent_a_codec.cc', | |
66 'acm2/rent_a_codec.h', | |
67 ], | |
68 }, | |
69 { | |
70 'target_name': 'audio_coding_module', | |
71 'type': 'static_library', | |
72 'defines': [ | |
73 '<@(audio_coding_defines)', | |
74 ], | |
75 'dependencies': [ | |
76 '<@(audio_coding_dependencies)', | |
77 '<(webrtc_root)/common.gyp:webrtc_common', | |
78 '<(webrtc_root)/webrtc.gyp:rtc_event_log', | |
79 'neteq', | |
80 'rent_a_codec', | |
81 ], | |
82 'include_dirs': [ | |
83 'include', | |
84 '../../include', | |
85 '<(webrtc_root)', | |
86 ], | |
87 'direct_dependent_settings': { | |
88 'include_dirs': [ | |
89 'include', | |
90 '../../include', | |
91 '<(webrtc_root)', | |
92 ], | |
93 }, | |
94 'conditions': [ | |
95 ['include_opus==1', { | |
96 'export_dependent_settings': ['webrtc_opus'], | |
97 }], | |
98 ], | |
99 'sources': [ | |
100 'acm2/acm_common_defs.h', | |
101 'acm2/acm_receiver.cc', | |
102 'acm2/acm_receiver.h', | |
103 'acm2/acm_resampler.cc', | |
104 'acm2/acm_resampler.h', | |
105 'acm2/audio_coding_module.cc', | |
106 'acm2/audio_coding_module_impl.cc', | |
107 'acm2/audio_coding_module_impl.h', | |
108 'acm2/call_statistics.cc', | |
109 'acm2/call_statistics.h', | |
110 'acm2/codec_manager.cc', | |
111 'acm2/codec_manager.h', | |
112 'acm2/initial_delay_manager.cc', | |
113 'acm2/initial_delay_manager.h', | |
114 'include/audio_coding_module.h', | |
115 'include/audio_coding_module_typedefs.h', | |
116 ], | |
117 }, | |
118 ], | |
119 'conditions': [ | |
120 ['include_tests==1', { | |
121 'targets': [ | |
122 { | |
123 'target_name': 'acm_receive_test', | |
124 'type': 'static_library', | |
125 'defines': [ | |
126 '<@(audio_coding_defines)', | |
127 ], | |
128 'dependencies': [ | |
129 '<@(audio_coding_dependencies)', | |
130 'audio_coding_module', | |
131 'neteq_unittest_tools', | |
132 '<(DEPTH)/testing/gtest.gyp:gtest', | |
133 ], | |
134 'sources': [ | |
135 'acm2/acm_receive_test_oldapi.cc', | |
136 'acm2/acm_receive_test_oldapi.h', | |
137 ], | |
138 }, # acm_receive_test | |
139 { | |
140 'target_name': 'acm_send_test', | |
141 'type': 'static_library', | |
142 'defines': [ | |
143 '<@(audio_coding_defines)', | |
144 ], | |
145 'dependencies': [ | |
146 '<@(audio_coding_dependencies)', | |
147 'audio_coding_module', | |
148 'neteq_unittest_tools', | |
149 '<(DEPTH)/testing/gtest.gyp:gtest', | |
150 ], | |
151 'sources': [ | |
152 'acm2/acm_send_test_oldapi.cc', | |
153 'acm2/acm_send_test_oldapi.h', | |
154 ], | |
155 }, # acm_send_test | |
156 { | |
157 'target_name': 'delay_test', | |
158 'type': 'executable', | |
159 'dependencies': [ | |
160 'audio_coding_module', | |
161 '<(DEPTH)/testing/gtest.gyp:gtest', | |
162 '<(webrtc_root)/common.gyp:webrtc_common', | |
163 '<(webrtc_root)/test/test.gyp:test_support', | |
164 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers'
, | |
165 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_
default', | |
166 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags', | |
167 ], | |
168 'sources': [ | |
169 'test/delay_test.cc', | |
170 'test/Channel.cc', | |
171 'test/PCMFile.cc', | |
172 'test/utility.cc', | |
173 ], | |
174 }, # delay_test | |
175 { | |
176 'target_name': 'insert_packet_with_timing', | |
177 'type': 'executable', | |
178 'dependencies': [ | |
179 'audio_coding_module', | |
180 '<(DEPTH)/testing/gtest.gyp:gtest', | |
181 '<(webrtc_root)/common.gyp:webrtc_common', | |
182 '<(webrtc_root)/test/test.gyp:test_support', | |
183 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers'
, | |
184 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_
default', | |
185 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags', | |
186 ], | |
187 'sources': [ | |
188 'test/insert_packet_with_timing.cc', | |
189 'test/Channel.cc', | |
190 'test/PCMFile.cc', | |
191 ], | |
192 }, # delay_test | |
193 ], | |
194 }], | |
195 ], | |
196 } | |
OLD | NEW |