blob: f10de56c5ab2083ce285d96f3c6e92ebcd1e23bd [file] [log] [blame]
kjellander@webrtc.orge35fa962015-02-16 12:46:41 +00001# 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 {
Zeke Chin786dbdc2015-06-10 13:45:08 -070012 'target_name': 'isac_fix',
kjellander@webrtc.orge35fa962015-02-16 12:46:41 +000013 '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',
kwiberg608c3cf2015-08-24 02:03:23 -070017 'isac_common',
kjellander@webrtc.orge35fa962015-02-16 12:46:41 +000018 ],
19 'include_dirs': [
Henrik Kjellander74640892015-10-29 11:31:02 +010020 'fix/include',
kjellander@webrtc.orge35fa962015-02-16 12:46:41 +000021 '<(webrtc_root)'
22 ],
23 'direct_dependent_settings': {
24 'include_dirs': [
Henrik Kjellander74640892015-10-29 11:31:02 +010025 'fix/include',
kjellander@webrtc.orge35fa962015-02-16 12:46:41 +000026 '<(webrtc_root)',
27 ],
28 },
29 'sources': [
Henrik Kjellander74640892015-10-29 11:31:02 +010030 'fix/include/audio_decoder_isacfix.h',
31 'fix/include/audio_encoder_isacfix.h',
32 'fix/include/isacfix.h',
kjellander@webrtc.orge35fa962015-02-16 12:46:41 +000033 'fix/source/arith_routines.c',
34 'fix/source/arith_routines_hist.c',
35 'fix/source/arith_routines_logist.c',
Karl Wiberg74043682015-09-22 19:31:40 +020036 'fix/source/audio_decoder_isacfix.cc',
kjellander@webrtc.orge35fa962015-02-16 12:46:41 +000037 'fix/source/audio_encoder_isacfix.cc',
38 'fix/source/bandwidth_estimator.c',
39 'fix/source/decode.c',
40 'fix/source/decode_bwe.c',
41 'fix/source/decode_plc.c',
42 'fix/source/encode.c',
43 'fix/source/entropy_coding.c',
44 'fix/source/fft.c',
45 'fix/source/filterbank_tables.c',
46 'fix/source/filterbanks.c',
47 'fix/source/filters.c',
48 'fix/source/initialize.c',
Karl Wiberg74043682015-09-22 19:31:40 +020049 'fix/source/isac_fix_type.h',
kjellander@webrtc.orge35fa962015-02-16 12:46:41 +000050 'fix/source/isacfix.c',
51 'fix/source/lattice.c',
52 'fix/source/lattice_c.c',
53 'fix/source/lpc_masking_model.c',
54 'fix/source/lpc_tables.c',
55 'fix/source/pitch_estimator.c',
56 'fix/source/pitch_estimator_c.c',
57 'fix/source/pitch_filter.c',
58 'fix/source/pitch_filter_c.c',
59 'fix/source/pitch_gain_tables.c',
60 'fix/source/pitch_lag_tables.c',
61 'fix/source/spectrum_ar_model_tables.c',
62 'fix/source/transform.c',
63 'fix/source/transform_tables.c',
64 'fix/source/arith_routins.h',
65 'fix/source/bandwidth_estimator.h',
66 'fix/source/codec.h',
67 'fix/source/entropy_coding.h',
68 'fix/source/fft.h',
69 'fix/source/filterbank_tables.h',
70 'fix/source/lpc_masking_model.h',
71 'fix/source/lpc_tables.h',
72 'fix/source/pitch_estimator.h',
73 'fix/source/pitch_gain_tables.h',
74 'fix/source/pitch_lag_tables.h',
75 'fix/source/settings.h',
76 'fix/source/spectrum_ar_model_tables.h',
77 'fix/source/structs.h',
78 ],
79 'conditions': [
80 ['OS!="win"', {
81 'defines': [
82 'WEBRTC_LINUX',
83 ],
84 }],
85 ['target_arch=="arm" and arm_version>=7', {
kjellander@webrtc.orge35fa962015-02-16 12:46:41 +000086 'sources': [
87 'fix/source/lattice_armv7.S',
88 'fix/source/pitch_filter_armv6.S',
89 ],
90 'sources!': [
91 'fix/source/lattice_c.c',
92 'fix/source/pitch_filter_c.c',
93 ],
kjellander@webrtc.orge35fa962015-02-16 12:46:41 +000094 }],
Andrew MacDonaldac4234c2015-06-24 18:25:54 -070095 ['build_with_neon==1', {
Zhongwei Yaoe8a197b2015-04-28 14:42:11 +080096 'dependencies': ['isac_neon', ],
97 }],
Richard Colesd417c932015-04-09 17:36:12 +020098 ['target_arch=="mipsel" and mips_arch_variant!="r6"', {
kjellander@webrtc.orge35fa962015-02-16 12:46:41 +000099 'sources': [
100 'fix/source/entropy_coding_mips.c',
101 'fix/source/filters_mips.c',
102 'fix/source/lattice_mips.c',
103 'fix/source/pitch_estimator_mips.c',
104 'fix/source/transform_mips.c',
105 ],
106 'sources!': [
107 'fix/source/lattice_c.c',
108 'fix/source/pitch_estimator_c.c',
109 ],
110 'conditions': [
111 ['mips_dsp_rev>0', {
112 'sources': [
113 'fix/source/filterbanks_mips.c',
114 ],
115 }],
116 ['mips_dsp_rev>1', {
117 'sources': [
118 'fix/source/lpc_masking_model_mips.c',
119 'fix/source/pitch_filter_mips.c',
120 ],
121 'sources!': [
122 'fix/source/pitch_filter_c.c',
123 ],
124 }],
125 ],
126 }],
127 ],
128 },
129 ],
130 'conditions': [
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700131 ['build_with_neon==1', {
kjellander@webrtc.orge35fa962015-02-16 12:46:41 +0000132 'targets': [
133 {
134 'target_name': 'isac_neon',
135 'type': 'static_library',
136 'includes': ['../../../../build/arm_neon.gypi',],
137 'dependencies': [
138 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
139 ],
kjellander@webrtc.orge35fa962015-02-16 12:46:41 +0000140 'sources': [
141 'fix/source/entropy_coding_neon.c',
Zhongwei Yaob3cc77f2015-07-28 11:17:40 +0800142 'fix/source/filterbanks_neon.c',
Zhongwei Yaof242e662015-05-06 16:39:17 +0800143 'fix/source/filters_neon.c',
144 'fix/source/lattice_neon.c',
145 'fix/source/transform_neon.c',
kjellander@webrtc.orge35fa962015-02-16 12:46:41 +0000146 ],
kjellander@webrtc.orge35fa962015-02-16 12:46:41 +0000147 },
148 ],
149 }],
150 ],
151}