OLD | NEW |
1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license | 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 | 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 | 5 # tree. An additional intellectual property rights grant can be found |
6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
8 | 8 |
9 import("//build/config/arm.gni") | 9 import("//build/config/arm.gni") |
10 import("../webrtc.gni") | 10 import("../webrtc.gni") |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 if (!build_with_chromium && is_clang) { | 96 if (!build_with_chromium && is_clang) { |
97 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 97 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
98 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 98 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
99 } | 99 } |
100 | 100 |
101 if (current_cpu == "x86" || current_cpu == "x64") { | 101 if (current_cpu == "x86" || current_cpu == "x64") { |
102 deps += [ ":common_audio_sse2" ] | 102 deps += [ ":common_audio_sse2" ] |
103 } | 103 } |
104 } | 104 } |
105 | 105 |
| 106 rtc_source_set("common_audio_c_arm_asm") { |
| 107 visibility = [ ":*" ] # Only targets in this file can depend on this. |
| 108 sources = [] |
| 109 if (current_cpu == "arm") { |
| 110 sources += [ |
| 111 "signal_processing/complex_bit_reverse_arm.S", |
| 112 "signal_processing/spl_sqrt_floor_arm.S", |
| 113 ] |
| 114 |
| 115 if (arm_version >= 7) { |
| 116 sources += [ "signal_processing/filter_ar_fast_q12_armv7.S" ] |
| 117 } else { |
| 118 sources += [ "signal_processing/filter_ar_fast_q12.c" ] |
| 119 } |
| 120 } |
| 121 } |
| 122 |
106 rtc_source_set("common_audio_c") { | 123 rtc_source_set("common_audio_c") { |
107 visibility = [ ":*" ] # Only targets in this file can depend on this. | 124 visibility = [ ":*" ] # Only targets in this file can depend on this. |
108 sources = [ | 125 sources = [ |
109 "fft4g.c", | 126 "fft4g.c", |
110 "fft4g.h", | 127 "fft4g.h", |
111 "ring_buffer.c", | 128 "ring_buffer.c", |
112 "ring_buffer.h", | 129 "ring_buffer.h", |
113 "signal_processing/auto_corr_to_refl_coef.c", | 130 "signal_processing/auto_corr_to_refl_coef.c", |
114 "signal_processing/auto_correlation.c", | 131 "signal_processing/auto_correlation.c", |
115 "signal_processing/complex_fft_tables.h", | 132 "signal_processing/complex_fft_tables.h", |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 "vad/vad_core.h", | 166 "vad/vad_core.h", |
150 "vad/vad_filterbank.c", | 167 "vad/vad_filterbank.c", |
151 "vad/vad_filterbank.h", | 168 "vad/vad_filterbank.h", |
152 "vad/vad_gmm.c", | 169 "vad/vad_gmm.c", |
153 "vad/vad_gmm.h", | 170 "vad/vad_gmm.h", |
154 "vad/vad_sp.c", | 171 "vad/vad_sp.c", |
155 "vad/vad_sp.h", | 172 "vad/vad_sp.h", |
156 "vad/webrtc_vad.c", | 173 "vad/webrtc_vad.c", |
157 ] | 174 ] |
158 | 175 |
159 if (current_cpu == "arm") { | |
160 sources += [ | |
161 "signal_processing/complex_bit_reverse_arm.S", | |
162 "signal_processing/spl_sqrt_floor_arm.S", | |
163 ] | |
164 | |
165 if (arm_version >= 7) { | |
166 sources += [ "signal_processing/filter_ar_fast_q12_armv7.S" ] | |
167 } else { | |
168 sources += [ "signal_processing/filter_ar_fast_q12.c" ] | |
169 } | |
170 } | |
171 | |
172 if (current_cpu == "mipsel") { | 176 if (current_cpu == "mipsel") { |
173 sources += [ | 177 sources += [ |
174 "signal_processing/complex_bit_reverse_mips.c", | 178 "signal_processing/complex_bit_reverse_mips.c", |
175 "signal_processing/complex_fft_mips.c", | 179 "signal_processing/complex_fft_mips.c", |
176 "signal_processing/cross_correlation_mips.c", | 180 "signal_processing/cross_correlation_mips.c", |
177 "signal_processing/downsample_fast_mips.c", | 181 "signal_processing/downsample_fast_mips.c", |
178 "signal_processing/filter_ar_fast_q12_mips.c", | 182 "signal_processing/filter_ar_fast_q12_mips.c", |
179 "signal_processing/include/spl_inl_mips.h", | 183 "signal_processing/include/spl_inl_mips.h", |
180 "signal_processing/min_max_operations_mips.c", | 184 "signal_processing/min_max_operations_mips.c", |
181 "signal_processing/resample_by_2_mips.c", | 185 "signal_processing/resample_by_2_mips.c", |
(...skipping 13 matching lines...) Expand all Loading... |
195 "signal_processing/spl_sqrt_floor.c", | 199 "signal_processing/spl_sqrt_floor.c", |
196 ] | 200 ] |
197 } | 201 } |
198 | 202 |
199 if (is_win) { | 203 if (is_win) { |
200 cflags = [ "/wd4334" ] # Ignore warning on shift operator promotion. | 204 cflags = [ "/wd4334" ] # Ignore warning on shift operator promotion. |
201 } | 205 } |
202 | 206 |
203 public_configs = [ ":common_audio_config" ] | 207 public_configs = [ ":common_audio_config" ] |
204 deps = [ | 208 deps = [ |
| 209 ":common_audio_c_arm_asm", |
205 ":common_audio_cc", | 210 ":common_audio_cc", |
206 "..:webrtc_common", | 211 "..:webrtc_common", |
207 "../base:compile_assert_c", | 212 "../base:compile_assert_c", |
208 "../base:rtc_base_approved", | 213 "../base:rtc_base_approved", |
209 "../system_wrappers:system_wrappers", | 214 "../system_wrappers:system_wrappers", |
210 ] | 215 ] |
211 } | 216 } |
212 | 217 |
213 rtc_source_set("common_audio_cc") { | 218 rtc_source_set("common_audio_cc") { |
214 visibility = [ ":*" ] # Only targets in this file can depend on this. | 219 visibility = [ ":*" ] # Only targets in this file can depend on this. |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 "//testing/gtest", | 409 "//testing/gtest", |
405 ] | 410 ] |
406 | 411 |
407 if (is_android) { | 412 if (is_android) { |
408 deps += [ "//testing/android/native_test:native_test_support" ] | 413 deps += [ "//testing/android/native_test:native_test_support" ] |
409 | 414 |
410 shard_timeout = 900 | 415 shard_timeout = 900 |
411 } | 416 } |
412 } | 417 } |
413 } | 418 } |
OLD | NEW |