Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Side by Side Diff: webrtc/common_audio/BUILD.gn

Issue 2717123004: Avoid overflow in WebRtcSpl_DotProductWithScale (Closed)
Patch Set: Move to separate target Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 "fft4g.c", 106 "fft4g.c",
107 "fft4g.h", 107 "fft4g.h",
108 "ring_buffer.c", 108 "ring_buffer.c",
109 "ring_buffer.h", 109 "ring_buffer.h",
110 "signal_processing/auto_corr_to_refl_coef.c", 110 "signal_processing/auto_corr_to_refl_coef.c",
111 "signal_processing/auto_correlation.c", 111 "signal_processing/auto_correlation.c",
112 "signal_processing/complex_fft_tables.h", 112 "signal_processing/complex_fft_tables.h",
113 "signal_processing/copy_set_operations.c", 113 "signal_processing/copy_set_operations.c",
114 "signal_processing/cross_correlation.c", 114 "signal_processing/cross_correlation.c",
115 "signal_processing/division_operations.c", 115 "signal_processing/division_operations.c",
116 "signal_processing/dot_product_with_scale.c",
117 "signal_processing/downsample_fast.c", 116 "signal_processing/downsample_fast.c",
118 "signal_processing/energy.c", 117 "signal_processing/energy.c",
119 "signal_processing/filter_ar.c", 118 "signal_processing/filter_ar.c",
120 "signal_processing/filter_ma_fast_q12.c", 119 "signal_processing/filter_ma_fast_q12.c",
121 "signal_processing/get_hanning_window.c", 120 "signal_processing/get_hanning_window.c",
122 "signal_processing/get_scaling_square.c", 121 "signal_processing/get_scaling_square.c",
123 "signal_processing/ilbc_specific_functions.c", 122 "signal_processing/ilbc_specific_functions.c",
124 "signal_processing/include/real_fft.h", 123 "signal_processing/include/real_fft.h",
125 "signal_processing/include/signal_processing_library.h", 124 "signal_processing/include/signal_processing_library.h",
126 "signal_processing/include/spl_inl.h", 125 "signal_processing/include/spl_inl.h",
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 "signal_processing/complex_bit_reverse.c", 190 "signal_processing/complex_bit_reverse.c",
192 "signal_processing/filter_ar_fast_q12.c", 191 "signal_processing/filter_ar_fast_q12.c",
193 "signal_processing/spl_sqrt_floor.c", 192 "signal_processing/spl_sqrt_floor.c",
194 ] 193 ]
195 } 194 }
196 195
197 if (is_win) { 196 if (is_win) {
198 cflags = [ "/wd4334" ] # Ignore warning on shift operator promotion. 197 cflags = [ "/wd4334" ] # Ignore warning on shift operator promotion.
199 } 198 }
200 199
200 deps = [
201 ":common_audio_cc",
202 ]
203
204 public_configs = [ ":common_audio_config" ]
205 }
206
207 rtc_source_set("common_audio_cc") {
208 visibility = [ ":*" ] # Only targets in this file can depend on this.
209 sources = [
210 "signal_processing/dot_product_with_scale.cc",
211 "signal_processing/dot_product_with_scale.h",
212 ]
213
214 if (is_win) {
215 cflags = [ "/wd4334" ] # Ignore warning on shift operator promotion.
kwiberg-webrtc 2017/02/28 12:51:01 This looks like an easy warning to just fix in thi
216 }
217
201 public_configs = [ ":common_audio_config" ] 218 public_configs = [ ":common_audio_config" ]
202 } 219 }
203 220
204 if (current_cpu == "x86" || current_cpu == "x64") { 221 if (current_cpu == "x86" || current_cpu == "x64") {
205 rtc_static_library("common_audio_sse2") { 222 rtc_static_library("common_audio_sse2") {
206 sources = [ 223 sources = [
207 "fir_filter_sse.cc", 224 "fir_filter_sse.cc",
208 "resampler/sinc_resampler_sse.cc", 225 "resampler/sinc_resampler_sse.cc",
209 ] 226 ]
210 227
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 "//testing/gtest", 357 "//testing/gtest",
341 ] 358 ]
342 359
343 if (is_android) { 360 if (is_android) {
344 deps += [ "//testing/android/native_test:native_test_support" ] 361 deps += [ "//testing/android/native_test:native_test_support" ]
345 362
346 shard_timeout = 900 363 shard_timeout = 900
347 } 364 }
348 } 365 }
349 } 366 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698