blob: d64fbeee292abd00b540596cb9e84ab6d70ad548 [file] [log] [blame]
kjellander@webrtc.orga33f05e2015-01-29 14:29:45 +00001# Copyright (c) 2015 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 'includes': [
11 '../../build/common.gypi',
12 'codecs/interfaces.gypi',
13 'codecs/cng/cng.gypi',
14 'codecs/g711/g711.gypi',
15 'codecs/g722/g722.gypi',
16 'codecs/ilbc/ilbc.gypi',
kjellander@webrtc.orge35fa962015-02-16 12:46:41 +000017 'codecs/isac/isac.gypi',
kwiberg608c3cf2015-08-24 02:03:23 -070018 'codecs/isac/isac_common.gypi',
kjellander@webrtc.orge35fa962015-02-16 12:46:41 +000019 'codecs/isac/isacfix.gypi',
kjellander@webrtc.orga33f05e2015-01-29 14:29:45 +000020 'codecs/pcm16b/pcm16b.gypi',
21 'codecs/red/red.gypi',
kjellander@webrtc.orga33f05e2015-01-29 14:29:45 +000022 'neteq/neteq.gypi',
23 ],
kjellander3e6db232015-11-26 04:44:54 -080024 'variables': {
25 'audio_coding_dependencies': [
26 'cng',
27 'g711',
28 'pcm16b',
29 '<(webrtc_root)/common.gyp:webrtc_common',
30 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
31 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
32 ],
33 'audio_coding_defines': [],
34 'conditions': [
kwibergf8c2bac2016-01-18 06:38:32 -080035 ['include_ilbc==1', {
36 'audio_coding_dependencies': ['ilbc',],
37 'audio_coding_defines': ['WEBRTC_CODEC_ILBC',],
38 }],
kjellander3e6db232015-11-26 04:44:54 -080039 ['include_opus==1', {
40 'audio_coding_dependencies': ['webrtc_opus',],
41 'audio_coding_defines': ['WEBRTC_CODEC_OPUS',],
42 }],
43 ['build_with_mozilla==0', {
44 'conditions': [
45 ['target_arch=="arm"', {
46 'audio_coding_dependencies': ['isac_fix',],
47 'audio_coding_defines': ['WEBRTC_CODEC_ISACFX',],
48 }, {
49 'audio_coding_dependencies': ['isac',],
50 'audio_coding_defines': ['WEBRTC_CODEC_ISAC',],
51 }],
52 ],
53 'audio_coding_dependencies': ['g722',],
54 'audio_coding_defines': ['WEBRTC_CODEC_G722',],
55 }],
56 ['build_with_mozilla==0 and build_with_chromium==0', {
kwibergf8c2bac2016-01-18 06:38:32 -080057 'audio_coding_dependencies': ['red',],
58 'audio_coding_defines': ['WEBRTC_CODEC_RED',],
kjellander3e6db232015-11-26 04:44:54 -080059 }],
60 ],
61 },
62 'targets': [
63 {
64 'target_name': 'rent_a_codec',
65 'type': 'static_library',
66 'defines': [
67 '<@(audio_coding_defines)',
68 ],
69 'dependencies': [
70 '<(webrtc_root)/common.gyp:webrtc_common',
71 ],
72 'include_dirs': [
73 '<(webrtc_root)',
74 ],
75 'direct_dependent_settings': {
76 'include_dirs': [
77 '<(webrtc_root)',
78 ],
79 },
80 'sources': [
81 'acm2/acm_codec_database.cc',
82 'acm2/acm_codec_database.h',
83 'acm2/rent_a_codec.cc',
84 'acm2/rent_a_codec.h',
85 ],
86 },
87 {
88 'target_name': 'audio_coding_module',
89 'type': 'static_library',
90 'defines': [
91 '<@(audio_coding_defines)',
92 ],
93 'dependencies': [
94 '<@(audio_coding_dependencies)',
95 '<(webrtc_root)/common.gyp:webrtc_common',
96 '<(webrtc_root)/webrtc.gyp:rtc_event_log',
97 'neteq',
98 'rent_a_codec',
99 ],
100 'include_dirs': [
101 'include',
102 '../include',
103 '<(webrtc_root)',
104 ],
105 'direct_dependent_settings': {
106 'include_dirs': [
107 'include',
108 '../include',
109 '<(webrtc_root)',
110 ],
111 },
112 'conditions': [
113 ['include_opus==1', {
114 'export_dependent_settings': ['webrtc_opus'],
115 }],
116 ],
117 'sources': [
118 'acm2/acm_common_defs.h',
119 'acm2/acm_receiver.cc',
120 'acm2/acm_receiver.h',
121 'acm2/acm_resampler.cc',
122 'acm2/acm_resampler.h',
123 'acm2/audio_coding_module.cc',
124 'acm2/audio_coding_module_impl.cc',
125 'acm2/audio_coding_module_impl.h',
126 'acm2/call_statistics.cc',
127 'acm2/call_statistics.h',
128 'acm2/codec_manager.cc',
129 'acm2/codec_manager.h',
130 'acm2/initial_delay_manager.cc',
131 'acm2/initial_delay_manager.h',
132 'include/audio_coding_module.h',
133 'include/audio_coding_module_typedefs.h',
134 ],
135 },
136 ],
kjellander@webrtc.orga33f05e2015-01-29 14:29:45 +0000137 'conditions': [
138 ['include_opus==1', {
139 'includes': ['codecs/opus/opus.gypi',],
140 }],
kjellander3e6db232015-11-26 04:44:54 -0800141 ['include_tests==1', {
142 'targets': [
143 {
144 'target_name': 'acm_receive_test',
145 'type': 'static_library',
146 'defines': [
147 '<@(audio_coding_defines)',
148 ],
149 'dependencies': [
150 '<@(audio_coding_dependencies)',
151 'audio_coding_module',
152 'neteq_unittest_tools',
153 '<(DEPTH)/testing/gtest.gyp:gtest',
154 ],
155 'sources': [
156 'acm2/acm_receive_test_oldapi.cc',
157 'acm2/acm_receive_test_oldapi.h',
158 ],
159 }, # acm_receive_test
160 {
161 'target_name': 'acm_send_test',
162 'type': 'static_library',
163 'defines': [
164 '<@(audio_coding_defines)',
165 ],
166 'dependencies': [
167 '<@(audio_coding_dependencies)',
168 'audio_coding_module',
169 'neteq_unittest_tools',
170 '<(DEPTH)/testing/gtest.gyp:gtest',
171 ],
172 'sources': [
173 'acm2/acm_send_test_oldapi.cc',
174 'acm2/acm_send_test_oldapi.h',
175 ],
176 }, # acm_send_test
177 {
178 'target_name': 'delay_test',
179 'type': 'executable',
180 'dependencies': [
181 'audio_coding_module',
182 '<(DEPTH)/testing/gtest.gyp:gtest',
183 '<(webrtc_root)/common.gyp:webrtc_common',
184 '<(webrtc_root)/test/test.gyp:test_support',
185 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
186 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
187 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
188 ],
189 'sources': [
190 'test/delay_test.cc',
191 'test/Channel.cc',
192 'test/PCMFile.cc',
193 'test/utility.cc',
194 ],
195 }, # delay_test
196 {
197 'target_name': 'insert_packet_with_timing',
198 'type': 'executable',
199 'dependencies': [
200 'audio_coding_module',
201 '<(DEPTH)/testing/gtest.gyp:gtest',
202 '<(webrtc_root)/common.gyp:webrtc_common',
203 '<(webrtc_root)/test/test.gyp:test_support',
204 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
205 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
206 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
207 ],
208 'sources': [
209 'test/insert_packet_with_timing.cc',
210 'test/Channel.cc',
211 'test/PCMFile.cc',
212 ],
213 }, # delay_test
214 ],
215 }],
kjellander@webrtc.orga33f05e2015-01-29 14:29:45 +0000216 ],
217}