kjellander@webrtc.org | a33f05e | 2015-01-29 14:29:45 +0000 | [diff] [blame] | 1 | # 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', |
minyue | 7610f85 | 2016-09-07 13:51:51 -0700 | [diff] [blame] | 12 | 'audio_network_adaptor/audio_network_adaptor.gypi', |
kjellander@webrtc.org | a33f05e | 2015-01-29 14:29:45 +0000 | [diff] [blame] | 13 | '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.org | e35fa96 | 2015-02-16 12:46:41 +0000 | [diff] [blame] | 18 | 'codecs/isac/isac.gypi', |
kwiberg | 608c3cf | 2015-08-24 02:03:23 -0700 | [diff] [blame] | 19 | 'codecs/isac/isac_common.gypi', |
kjellander@webrtc.org | e35fa96 | 2015-02-16 12:46:41 +0000 | [diff] [blame] | 20 | 'codecs/isac/isacfix.gypi', |
kjellander@webrtc.org | a33f05e | 2015-01-29 14:29:45 +0000 | [diff] [blame] | 21 | 'codecs/pcm16b/pcm16b.gypi', |
| 22 | 'codecs/red/red.gypi', |
kjellander@webrtc.org | a33f05e | 2015-01-29 14:29:45 +0000 | [diff] [blame] | 23 | 'neteq/neteq.gypi', |
| 24 | ], |
kjellander | 3e6db23 | 2015-11-26 04:44:54 -0800 | [diff] [blame] | 25 | 'variables': { |
kwiberg | 0edb05b | 2016-01-19 05:54:28 -0800 | [diff] [blame] | 26 | '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)', |
kjellander | 3e6db23 | 2015-11-26 04:44:54 -0800 | [diff] [blame] | 63 | 'audio_coding_dependencies': [ |
kwiberg | 0edb05b | 2016-01-19 05:54:28 -0800 | [diff] [blame] | 64 | '<@(audio_codec_dependencies)', |
kjellander | 3e6db23 | 2015-11-26 04:44:54 -0800 | [diff] [blame] | 65 | '<(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 | ], |
kwiberg | 0edb05b | 2016-01-19 05:54:28 -0800 | [diff] [blame] | 69 | 'audio_coding_defines': '<(audio_codec_defines)', |
kjellander | 3e6db23 | 2015-11-26 04:44:54 -0800 | [diff] [blame] | 70 | }, |
| 71 | 'targets': [ |
| 72 | { |
kwiberg | c01c6a4 | 2016-04-28 14:23:32 -0700 | [diff] [blame] | 73 | '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 | { |
kjellander | 3e6db23 | 2015-11-26 04:44:54 -0800 | [diff] [blame] | 117 | 'target_name': 'rent_a_codec', |
| 118 | 'type': 'static_library', |
| 119 | 'defines': [ |
kwiberg | 0edb05b | 2016-01-19 05:54:28 -0800 | [diff] [blame] | 120 | '<@(audio_codec_defines)', |
kjellander | 3e6db23 | 2015-11-26 04:44:54 -0800 | [diff] [blame] | 121 | ], |
| 122 | 'dependencies': [ |
| 123 | '<(webrtc_root)/common.gyp:webrtc_common', |
kwiberg | 0edb05b | 2016-01-19 05:54:28 -0800 | [diff] [blame] | 124 | '<@(audio_codec_dependencies)', |
kjellander | 3e6db23 | 2015-11-26 04:44:54 -0800 | [diff] [blame] | 125 | ], |
| 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', |
minyue | 7610f85 | 2016-09-07 13:51:51 -0700 | [diff] [blame] | 151 | 'audio_network_adaptor', |
kjellander | 3e6db23 | 2015-11-26 04:44:54 -0800 | [diff] [blame] | 152 | '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', |
kjellander | 3e6db23 | 2015-11-26 04:44:54 -0800 | [diff] [blame] | 179 | 'acm2/call_statistics.cc', |
| 180 | 'acm2/call_statistics.h', |
| 181 | 'acm2/codec_manager.cc', |
| 182 | 'acm2/codec_manager.h', |
kjellander | 3e6db23 | 2015-11-26 04:44:54 -0800 | [diff] [blame] | 183 | 'include/audio_coding_module.h', |
| 184 | 'include/audio_coding_module_typedefs.h', |
| 185 | ], |
| 186 | }, |
| 187 | ], |
kjellander@webrtc.org | a33f05e | 2015-01-29 14:29:45 +0000 | [diff] [blame] | 188 | 'conditions': [ |
| 189 | ['include_opus==1', { |
| 190 | 'includes': ['codecs/opus/opus.gypi',], |
| 191 | }], |
kjellander@webrtc.org | a33f05e | 2015-01-29 14:29:45 +0000 | [diff] [blame] | 192 | ], |
| 193 | } |