kjellander@webrtc.org | e35fa96 | 2015-02-16 12:46:41 +0000 | [diff] [blame] | 1 | # Copyright (c) 2012 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 | 'targets': [ |
| 11 | { |
| 12 | 'target_name': 'iSACFix', |
| 13 | 'type': 'static_library', |
| 14 | 'dependencies': [ |
| 15 | '<(webrtc_root)/common_audio/common_audio.gyp:common_audio', |
| 16 | '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers', |
| 17 | ], |
| 18 | 'include_dirs': [ |
| 19 | 'fix/interface', |
| 20 | '<(webrtc_root)' |
| 21 | ], |
| 22 | 'direct_dependent_settings': { |
| 23 | 'include_dirs': [ |
| 24 | 'fix/interface', |
| 25 | '<(webrtc_root)', |
| 26 | ], |
| 27 | }, |
| 28 | 'sources': [ |
| 29 | 'audio_encoder_isac_t.h', |
| 30 | 'audio_encoder_isac_t_impl.h', |
| 31 | 'fix/interface/audio_encoder_isacfix.h', |
| 32 | 'fix/interface/isacfix.h', |
| 33 | 'fix/source/arith_routines.c', |
| 34 | 'fix/source/arith_routines_hist.c', |
| 35 | 'fix/source/arith_routines_logist.c', |
| 36 | 'fix/source/audio_encoder_isacfix.cc', |
| 37 | 'fix/source/bandwidth_estimator.c', |
| 38 | 'fix/source/decode.c', |
| 39 | 'fix/source/decode_bwe.c', |
| 40 | 'fix/source/decode_plc.c', |
| 41 | 'fix/source/encode.c', |
| 42 | 'fix/source/entropy_coding.c', |
| 43 | 'fix/source/fft.c', |
| 44 | 'fix/source/filterbank_tables.c', |
| 45 | 'fix/source/filterbanks.c', |
| 46 | 'fix/source/filters.c', |
| 47 | 'fix/source/initialize.c', |
| 48 | 'fix/source/isacfix.c', |
| 49 | 'fix/source/lattice.c', |
| 50 | 'fix/source/lattice_c.c', |
| 51 | 'fix/source/lpc_masking_model.c', |
| 52 | 'fix/source/lpc_tables.c', |
| 53 | 'fix/source/pitch_estimator.c', |
| 54 | 'fix/source/pitch_estimator_c.c', |
| 55 | 'fix/source/pitch_filter.c', |
| 56 | 'fix/source/pitch_filter_c.c', |
| 57 | 'fix/source/pitch_gain_tables.c', |
| 58 | 'fix/source/pitch_lag_tables.c', |
| 59 | 'fix/source/spectrum_ar_model_tables.c', |
| 60 | 'fix/source/transform.c', |
| 61 | 'fix/source/transform_tables.c', |
| 62 | 'fix/source/arith_routins.h', |
| 63 | 'fix/source/bandwidth_estimator.h', |
| 64 | 'fix/source/codec.h', |
| 65 | 'fix/source/entropy_coding.h', |
| 66 | 'fix/source/fft.h', |
| 67 | 'fix/source/filterbank_tables.h', |
| 68 | 'fix/source/lpc_masking_model.h', |
| 69 | 'fix/source/lpc_tables.h', |
| 70 | 'fix/source/pitch_estimator.h', |
| 71 | 'fix/source/pitch_gain_tables.h', |
| 72 | 'fix/source/pitch_lag_tables.h', |
| 73 | 'fix/source/settings.h', |
| 74 | 'fix/source/spectrum_ar_model_tables.h', |
| 75 | 'fix/source/structs.h', |
| 76 | ], |
| 77 | 'conditions': [ |
| 78 | ['OS!="win"', { |
| 79 | 'defines': [ |
| 80 | 'WEBRTC_LINUX', |
| 81 | ], |
| 82 | }], |
| 83 | ['target_arch=="arm" and arm_version>=7', { |
kjellander@webrtc.org | e35fa96 | 2015-02-16 12:46:41 +0000 | [diff] [blame] | 84 | 'sources': [ |
| 85 | 'fix/source/lattice_armv7.S', |
| 86 | 'fix/source/pitch_filter_armv6.S', |
| 87 | ], |
| 88 | 'sources!': [ |
| 89 | 'fix/source/lattice_c.c', |
| 90 | 'fix/source/pitch_filter_c.c', |
| 91 | ], |
andrew@webrtc.org | fa67463 | 2015-03-05 06:07:25 +0000 | [diff] [blame] | 92 | 'conditions': [ |
| 93 | ['arm_neon==1 or arm_neon_optional==1', { |
| 94 | 'dependencies': [ 'isac_neon' ], |
| 95 | }], |
| 96 | ], |
kjellander@webrtc.org | e35fa96 | 2015-02-16 12:46:41 +0000 | [diff] [blame] | 97 | }], |
Zhongwei Yao | e8a197b | 2015-04-28 14:42:11 +0800 | [diff] [blame^] | 98 | ['target_arch=="arm64"', { |
| 99 | 'dependencies': ['isac_neon', ], |
| 100 | }], |
Richard Coles | d417c93 | 2015-04-09 17:36:12 +0200 | [diff] [blame] | 101 | ['target_arch=="mipsel" and mips_arch_variant!="r6"', { |
kjellander@webrtc.org | e35fa96 | 2015-02-16 12:46:41 +0000 | [diff] [blame] | 102 | 'sources': [ |
| 103 | 'fix/source/entropy_coding_mips.c', |
| 104 | 'fix/source/filters_mips.c', |
| 105 | 'fix/source/lattice_mips.c', |
| 106 | 'fix/source/pitch_estimator_mips.c', |
| 107 | 'fix/source/transform_mips.c', |
| 108 | ], |
| 109 | 'sources!': [ |
| 110 | 'fix/source/lattice_c.c', |
| 111 | 'fix/source/pitch_estimator_c.c', |
| 112 | ], |
| 113 | 'conditions': [ |
| 114 | ['mips_dsp_rev>0', { |
| 115 | 'sources': [ |
| 116 | 'fix/source/filterbanks_mips.c', |
| 117 | ], |
| 118 | }], |
| 119 | ['mips_dsp_rev>1', { |
| 120 | 'sources': [ |
| 121 | 'fix/source/lpc_masking_model_mips.c', |
| 122 | 'fix/source/pitch_filter_mips.c', |
| 123 | ], |
| 124 | 'sources!': [ |
| 125 | 'fix/source/pitch_filter_c.c', |
| 126 | ], |
| 127 | }], |
| 128 | ], |
| 129 | }], |
| 130 | ], |
| 131 | }, |
| 132 | ], |
| 133 | 'conditions': [ |
Zhongwei Yao | e8a197b | 2015-04-28 14:42:11 +0800 | [diff] [blame^] | 134 | ['target_arch=="arm" and arm_version>=7 or target_arch=="arm64"', { |
kjellander@webrtc.org | e35fa96 | 2015-02-16 12:46:41 +0000 | [diff] [blame] | 135 | 'targets': [ |
| 136 | { |
| 137 | 'target_name': 'isac_neon', |
| 138 | 'type': 'static_library', |
| 139 | 'includes': ['../../../../build/arm_neon.gypi',], |
| 140 | 'dependencies': [ |
| 141 | '<(webrtc_root)/common_audio/common_audio.gyp:common_audio', |
| 142 | ], |
kjellander@webrtc.org | e35fa96 | 2015-02-16 12:46:41 +0000 | [diff] [blame] | 143 | 'sources': [ |
| 144 | 'fix/source/entropy_coding_neon.c', |
| 145 | 'fix/source/filterbanks_neon.S', |
| 146 | 'fix/source/filters_neon.S', |
| 147 | 'fix/source/lattice_neon.S', |
| 148 | 'fix/source/lpc_masking_model_neon.S', |
| 149 | 'fix/source/transform_neon.S', |
| 150 | ], |
| 151 | 'conditions': [ |
| 152 | # Disable LTO in isac_neon target due to compiler bug |
| 153 | ['use_lto==1', { |
| 154 | 'cflags!': [ |
| 155 | '-flto', |
| 156 | '-ffat-lto-objects', |
| 157 | ], |
| 158 | }], |
Zhongwei Yao | e8a197b | 2015-04-28 14:42:11 +0800 | [diff] [blame^] | 159 | ['target_arch=="arm64"', { |
| 160 | 'sources!': [ |
| 161 | 'fix/source/filterbanks_neon.S', |
| 162 | 'fix/source/filters_neon.S', |
| 163 | 'fix/source/lattice_neon.S', |
| 164 | 'fix/source/lpc_masking_model_neon.S', |
| 165 | 'fix/source/transform_neon.S', |
| 166 | ], |
| 167 | 'sources': [ |
| 168 | 'fix/source/filters_neon.c', |
| 169 | 'fix/source/lattice_neon.c', |
| 170 | 'fix/source/transform_neon.c', |
| 171 | ], |
| 172 | 'conditions': [ |
| 173 | # Disable AllpassFilter2FixDec16Neon function due to a clang |
| 174 | # bug. Refer more details at: |
| 175 | # https://code.google.com/p/webrtc/issues/detail?id=4567 |
| 176 | ['clang==0', { |
| 177 | 'sources': ['fix/source/filterbanks_neon.c',], |
| 178 | }], |
| 179 | ], |
| 180 | }] |
kjellander@webrtc.org | e35fa96 | 2015-02-16 12:46:41 +0000 | [diff] [blame] | 181 | ], |
| 182 | }, |
| 183 | ], |
| 184 | }], |
| 185 | ], |
| 186 | } |