blob: a9b9e20e636f08b14764e2cfe8462681444a7de9 [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',
kwibergda2bf4e2016-10-24 13:47:09 -070090 'codecs/audio_format_conversion.cc',
91 'codecs/audio_format_conversion.h',
kwibergc01c6a42016-04-28 14:23:32 -070092 ],
93 },
94 {
95 'target_name': 'builtin_audio_decoder_factory',
96 'type': 'static_library',
97 'defines': [
98 '<@(audio_codec_defines)',
99 ],
100 'dependencies': [
101 '<(webrtc_root)/common.gyp:webrtc_common',
102 '<@(audio_codec_dependencies)',
103 'audio_decoder_factory_interface',
104 ],
105 'include_dirs': [
106 '<(webrtc_root)',
107 ],
108 'direct_dependent_settings': {
109 'include_dirs': [
110 '<(webrtc_root)',
111 ],
112 },
113 'sources': [
114 'codecs/builtin_audio_decoder_factory.cc',
115 'codecs/builtin_audio_decoder_factory.h',
116 ],
117 },
118 {
kjellander3e6db232015-11-26 04:44:54 -0800119 'target_name': 'rent_a_codec',
120 'type': 'static_library',
121 'defines': [
kwiberg0edb05b2016-01-19 05:54:28 -0800122 '<@(audio_codec_defines)',
kjellander3e6db232015-11-26 04:44:54 -0800123 ],
124 'dependencies': [
125 '<(webrtc_root)/common.gyp:webrtc_common',
kwiberg0edb05b2016-01-19 05:54:28 -0800126 '<@(audio_codec_dependencies)',
kjellander3e6db232015-11-26 04:44:54 -0800127 ],
128 'include_dirs': [
129 '<(webrtc_root)',
130 ],
131 'direct_dependent_settings': {
132 'include_dirs': [
133 '<(webrtc_root)',
134 ],
135 },
136 'sources': [
137 'acm2/acm_codec_database.cc',
138 'acm2/acm_codec_database.h',
139 'acm2/rent_a_codec.cc',
140 'acm2/rent_a_codec.h',
141 ],
142 },
143 {
144 'target_name': 'audio_coding_module',
145 'type': 'static_library',
146 'defines': [
147 '<@(audio_coding_defines)',
148 ],
149 'dependencies': [
150 '<@(audio_coding_dependencies)',
151 '<(webrtc_root)/common.gyp:webrtc_common',
skvladcc91d282016-10-03 18:31:22 -0700152 '<(webrtc_root)/webrtc.gyp:rtc_event_log_api',
minyue7610f852016-09-07 13:51:51 -0700153 'audio_network_adaptor',
kjellander3e6db232015-11-26 04:44:54 -0800154 'neteq',
155 'rent_a_codec',
156 ],
157 'include_dirs': [
158 'include',
159 '../include',
160 '<(webrtc_root)',
161 ],
162 'direct_dependent_settings': {
163 'include_dirs': [
164 'include',
165 '../include',
166 '<(webrtc_root)',
167 ],
168 },
169 'conditions': [
170 ['include_opus==1', {
171 'export_dependent_settings': ['webrtc_opus'],
172 }],
173 ],
174 'sources': [
175 'acm2/acm_common_defs.h',
176 'acm2/acm_receiver.cc',
177 'acm2/acm_receiver.h',
178 'acm2/acm_resampler.cc',
179 'acm2/acm_resampler.h',
180 'acm2/audio_coding_module.cc',
kjellander3e6db232015-11-26 04:44:54 -0800181 'acm2/call_statistics.cc',
182 'acm2/call_statistics.h',
183 'acm2/codec_manager.cc',
184 'acm2/codec_manager.h',
kjellander3e6db232015-11-26 04:44:54 -0800185 'include/audio_coding_module.h',
186 'include/audio_coding_module_typedefs.h',
187 ],
188 },
189 ],
kjellander@webrtc.orga33f05e2015-01-29 14:29:45 +0000190 'conditions': [
191 ['include_opus==1', {
192 'includes': ['codecs/opus/opus.gypi',],
193 }],
kjellander@webrtc.orga33f05e2015-01-29 14:29:45 +0000194 ],
195}