blob: abdb1915c33ac4699b3b2a734fd2ba800f1b7f06 [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': [
35 ['include_opus==1', {
36 'audio_coding_dependencies': ['webrtc_opus',],
37 'audio_coding_defines': ['WEBRTC_CODEC_OPUS',],
38 }],
39 ['build_with_mozilla==0', {
40 'conditions': [
41 ['target_arch=="arm"', {
42 'audio_coding_dependencies': ['isac_fix',],
43 'audio_coding_defines': ['WEBRTC_CODEC_ISACFX',],
44 }, {
45 'audio_coding_dependencies': ['isac',],
46 'audio_coding_defines': ['WEBRTC_CODEC_ISAC',],
47 }],
48 ],
49 'audio_coding_dependencies': ['g722',],
50 'audio_coding_defines': ['WEBRTC_CODEC_G722',],
51 }],
52 ['build_with_mozilla==0 and build_with_chromium==0', {
53 'audio_coding_dependencies': ['ilbc', 'red',],
54 'audio_coding_defines': ['WEBRTC_CODEC_ILBC', 'WEBRTC_CODEC_RED',],
55 }],
56 ],
57 },
58 'targets': [
59 {
60 'target_name': 'rent_a_codec',
61 'type': 'static_library',
62 'defines': [
63 '<@(audio_coding_defines)',
64 ],
65 'dependencies': [
66 '<(webrtc_root)/common.gyp:webrtc_common',
67 ],
68 'include_dirs': [
69 '<(webrtc_root)',
70 ],
71 'direct_dependent_settings': {
72 'include_dirs': [
73 '<(webrtc_root)',
74 ],
75 },
76 'sources': [
77 'acm2/acm_codec_database.cc',
78 'acm2/acm_codec_database.h',
79 'acm2/rent_a_codec.cc',
80 'acm2/rent_a_codec.h',
81 ],
82 },
83 {
84 'target_name': 'audio_coding_module',
85 'type': 'static_library',
86 'defines': [
87 '<@(audio_coding_defines)',
88 ],
89 'dependencies': [
90 '<@(audio_coding_dependencies)',
91 '<(webrtc_root)/common.gyp:webrtc_common',
92 '<(webrtc_root)/webrtc.gyp:rtc_event_log',
93 'neteq',
94 'rent_a_codec',
95 ],
96 'include_dirs': [
97 'include',
98 '../include',
99 '<(webrtc_root)',
100 ],
101 'direct_dependent_settings': {
102 'include_dirs': [
103 'include',
104 '../include',
105 '<(webrtc_root)',
106 ],
107 },
108 'conditions': [
109 ['include_opus==1', {
110 'export_dependent_settings': ['webrtc_opus'],
111 }],
112 ],
113 'sources': [
114 'acm2/acm_common_defs.h',
115 'acm2/acm_receiver.cc',
116 'acm2/acm_receiver.h',
117 'acm2/acm_resampler.cc',
118 'acm2/acm_resampler.h',
119 'acm2/audio_coding_module.cc',
120 'acm2/audio_coding_module_impl.cc',
121 'acm2/audio_coding_module_impl.h',
122 'acm2/call_statistics.cc',
123 'acm2/call_statistics.h',
124 'acm2/codec_manager.cc',
125 'acm2/codec_manager.h',
126 'acm2/initial_delay_manager.cc',
127 'acm2/initial_delay_manager.h',
128 'include/audio_coding_module.h',
129 'include/audio_coding_module_typedefs.h',
130 ],
131 },
132 ],
kjellander@webrtc.orga33f05e2015-01-29 14:29:45 +0000133 'conditions': [
134 ['include_opus==1', {
135 'includes': ['codecs/opus/opus.gypi',],
136 }],
kjellander3e6db232015-11-26 04:44:54 -0800137 ['include_tests==1', {
138 'targets': [
139 {
140 'target_name': 'acm_receive_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_receive_test_oldapi.cc',
153 'acm2/acm_receive_test_oldapi.h',
154 ],
155 }, # acm_receive_test
156 {
157 'target_name': 'acm_send_test',
158 'type': 'static_library',
159 'defines': [
160 '<@(audio_coding_defines)',
161 ],
162 'dependencies': [
163 '<@(audio_coding_dependencies)',
164 'audio_coding_module',
165 'neteq_unittest_tools',
166 '<(DEPTH)/testing/gtest.gyp:gtest',
167 ],
168 'sources': [
169 'acm2/acm_send_test_oldapi.cc',
170 'acm2/acm_send_test_oldapi.h',
171 ],
172 }, # acm_send_test
173 {
174 'target_name': 'delay_test',
175 'type': 'executable',
176 'dependencies': [
177 'audio_coding_module',
178 '<(DEPTH)/testing/gtest.gyp:gtest',
179 '<(webrtc_root)/common.gyp:webrtc_common',
180 '<(webrtc_root)/test/test.gyp:test_support',
181 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
182 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
183 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
184 ],
185 'sources': [
186 'test/delay_test.cc',
187 'test/Channel.cc',
188 'test/PCMFile.cc',
189 'test/utility.cc',
190 ],
191 }, # delay_test
192 {
193 'target_name': 'insert_packet_with_timing',
194 'type': 'executable',
195 'dependencies': [
196 'audio_coding_module',
197 '<(DEPTH)/testing/gtest.gyp:gtest',
198 '<(webrtc_root)/common.gyp:webrtc_common',
199 '<(webrtc_root)/test/test.gyp:test_support',
200 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
201 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
202 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
203 ],
204 'sources': [
205 'test/insert_packet_with_timing.cc',
206 'test/Channel.cc',
207 'test/PCMFile.cc',
208 ],
209 }, # delay_test
210 ],
211 }],
kjellander@webrtc.orga33f05e2015-01-29 14:29:45 +0000212 ],
213}