blob: 0ed3e0803423103e06e0aa0e0b88fd1804b74830 [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',
minyue7610f852016-09-07 13:51:51 -070012 'audio_network_adaptor/audio_network_adaptor.gypi',
kjellander@webrtc.orga33f05e2015-01-29 14:29:45 +000013 'codecs/interfaces.gypi',
14 'codecs/cng/cng.gypi',
15 'codecs/g711/g711.gypi',
16 'codecs/g722/g722.gypi',
17 'codecs/ilbc/ilbc.gypi',
kjellander@webrtc.orge35fa962015-02-16 12:46:41 +000018 'codecs/isac/isac.gypi',
kwiberg608c3cf2015-08-24 02:03:23 -070019 'codecs/isac/isac_common.gypi',
kjellander@webrtc.orge35fa962015-02-16 12:46:41 +000020 'codecs/isac/isacfix.gypi',
kjellander@webrtc.orga33f05e2015-01-29 14:29:45 +000021 'codecs/pcm16b/pcm16b.gypi',
22 'codecs/red/red.gypi',
kjellander@webrtc.orga33f05e2015-01-29 14:29:45 +000023 'neteq/neteq.gypi',
24 ],
kjellander3e6db232015-11-26 04:44:54 -080025 'variables': {
kwiberg0edb05b2016-01-19 05:54:28 -080026 'variables': {
27 'audio_codec_dependencies': [
28 'cng',
29 'g711',
30 'pcm16b',
31 ],
32 'audio_codec_defines': [],
33 'conditions': [
34 ['include_ilbc==1', {
35 'audio_codec_dependencies': ['ilbc',],
36 'audio_codec_defines': ['WEBRTC_CODEC_ILBC',],
37 }],
38 ['include_opus==1', {
39 'audio_codec_dependencies': ['webrtc_opus',],
40 'audio_codec_defines': ['WEBRTC_CODEC_OPUS',],
41 }],
42 ['build_with_mozilla==0', {
43 'conditions': [
44 ['target_arch=="arm"', {
45 'audio_codec_dependencies': ['isac_fix',],
46 'audio_codec_defines': ['WEBRTC_CODEC_ISACFX',],
47 }, {
48 'audio_codec_dependencies': ['isac',],
49 'audio_codec_defines': ['WEBRTC_CODEC_ISAC',],
50 }],
51 ],
52 'audio_codec_dependencies': ['g722',],
53 'audio_codec_defines': ['WEBRTC_CODEC_G722',],
54 }],
55 ['build_with_mozilla==0 and build_with_chromium==0', {
56 'audio_codec_dependencies': ['red',],
57 'audio_codec_defines': ['WEBRTC_CODEC_RED',],
58 }],
59 ],
60 },
61 'audio_codec_dependencies': '<(audio_codec_dependencies)',
62 'audio_codec_defines': '<(audio_codec_defines)',
kjellander3e6db232015-11-26 04:44:54 -080063 'audio_coding_dependencies': [
kwiberg0edb05b2016-01-19 05:54:28 -080064 '<@(audio_codec_dependencies)',
kjellander3e6db232015-11-26 04:44:54 -080065 '<(webrtc_root)/common.gyp:webrtc_common',
66 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
67 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
68 ],
kwiberg0edb05b2016-01-19 05:54:28 -080069 'audio_coding_defines': '<(audio_codec_defines)',
kjellander3e6db232015-11-26 04:44:54 -080070 },
71 'targets': [
72 {
kwibergc01c6a42016-04-28 14:23:32 -070073 'target_name': 'audio_decoder_factory_interface',
74 'type': 'static_library',
75 'dependencies': [
76 '<(webrtc_root)/common.gyp:webrtc_common',
77 ],
78 'include_dirs': [
79 '<(webrtc_root)',
80 ],
81 'direct_dependent_settings': {
82 'include_dirs': [
83 '<(webrtc_root)',
84 ],
85 },
86 'sources': [
87 'codecs/audio_decoder_factory.h',
88 'codecs/audio_format.cc',
89 'codecs/audio_format.h',
90 ],
91 },
92 {
93 'target_name': 'builtin_audio_decoder_factory',
94 'type': 'static_library',
95 'defines': [
96 '<@(audio_codec_defines)',
97 ],
98 'dependencies': [
99 '<(webrtc_root)/common.gyp:webrtc_common',
100 '<@(audio_codec_dependencies)',
101 'audio_decoder_factory_interface',
102 ],
103 'include_dirs': [
104 '<(webrtc_root)',
105 ],
106 'direct_dependent_settings': {
107 'include_dirs': [
108 '<(webrtc_root)',
109 ],
110 },
111 'sources': [
112 'codecs/builtin_audio_decoder_factory.cc',
113 'codecs/builtin_audio_decoder_factory.h',
114 ],
115 },
116 {
kjellander3e6db232015-11-26 04:44:54 -0800117 'target_name': 'rent_a_codec',
118 'type': 'static_library',
119 'defines': [
kwiberg0edb05b2016-01-19 05:54:28 -0800120 '<@(audio_codec_defines)',
kjellander3e6db232015-11-26 04:44:54 -0800121 ],
122 'dependencies': [
123 '<(webrtc_root)/common.gyp:webrtc_common',
kwiberg0edb05b2016-01-19 05:54:28 -0800124 '<@(audio_codec_dependencies)',
kjellander3e6db232015-11-26 04:44:54 -0800125 ],
126 'include_dirs': [
127 '<(webrtc_root)',
128 ],
129 'direct_dependent_settings': {
130 'include_dirs': [
131 '<(webrtc_root)',
132 ],
133 },
134 'sources': [
135 'acm2/acm_codec_database.cc',
136 'acm2/acm_codec_database.h',
137 'acm2/rent_a_codec.cc',
138 'acm2/rent_a_codec.h',
139 ],
140 },
141 {
142 'target_name': 'audio_coding_module',
143 'type': 'static_library',
144 'defines': [
145 '<@(audio_coding_defines)',
146 ],
147 'dependencies': [
148 '<@(audio_coding_dependencies)',
149 '<(webrtc_root)/common.gyp:webrtc_common',
150 '<(webrtc_root)/webrtc.gyp:rtc_event_log',
minyue7610f852016-09-07 13:51:51 -0700151 'audio_network_adaptor',
kjellander3e6db232015-11-26 04:44:54 -0800152 'neteq',
153 'rent_a_codec',
154 ],
155 'include_dirs': [
156 'include',
157 '../include',
158 '<(webrtc_root)',
159 ],
160 'direct_dependent_settings': {
161 'include_dirs': [
162 'include',
163 '../include',
164 '<(webrtc_root)',
165 ],
166 },
167 'conditions': [
168 ['include_opus==1', {
169 'export_dependent_settings': ['webrtc_opus'],
170 }],
171 ],
172 'sources': [
173 'acm2/acm_common_defs.h',
174 'acm2/acm_receiver.cc',
175 'acm2/acm_receiver.h',
176 'acm2/acm_resampler.cc',
177 'acm2/acm_resampler.h',
178 'acm2/audio_coding_module.cc',
kjellander3e6db232015-11-26 04:44:54 -0800179 'acm2/call_statistics.cc',
180 'acm2/call_statistics.h',
181 'acm2/codec_manager.cc',
182 'acm2/codec_manager.h',
kjellander3e6db232015-11-26 04:44:54 -0800183 'include/audio_coding_module.h',
184 'include/audio_coding_module_typedefs.h',
185 ],
186 },
187 ],
kjellander@webrtc.orga33f05e2015-01-29 14:29:45 +0000188 'conditions': [
189 ['include_opus==1', {
190 'includes': ['codecs/opus/opus.gypi',],
191 }],
kjellander@webrtc.orga33f05e2015-01-29 14:29:45 +0000192 ],
193}