| 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("../build/webrtc.gni") | 10 import("../build/webrtc.gni") |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 "signal_processing/complex_bit_reverse.c", | 165 "signal_processing/complex_bit_reverse.c", |
| 166 "signal_processing/filter_ar_fast_q12.c", | 166 "signal_processing/filter_ar_fast_q12.c", |
| 167 "signal_processing/spl_sqrt_floor.c", | 167 "signal_processing/spl_sqrt_floor.c", |
| 168 ] | 168 ] |
| 169 } | 169 } |
| 170 | 170 |
| 171 if (is_win) { | 171 if (is_win) { |
| 172 cflags = [ "/wd4334" ] # Ignore warning on shift operator promotion. | 172 cflags = [ "/wd4334" ] # Ignore warning on shift operator promotion. |
| 173 } | 173 } |
| 174 | 174 |
| 175 public_configs = [ | 175 public_configs = [ ":common_audio_config" ] |
| 176 "..:common_inherited_config", | |
| 177 ":common_audio_config", | |
| 178 ] | |
| 179 | 176 |
| 180 if (is_clang) { | 177 if (is_clang) { |
| 181 # Suppress warnings from Chrome's Clang plugins. | 178 # Suppress warnings from Chrome's Clang plugins. |
| 182 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 179 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 183 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 180 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 184 } | 181 } |
| 185 | 182 |
| 186 if (current_cpu == "x86" || current_cpu == "x64") { | 183 if (current_cpu == "x86" || current_cpu == "x64") { |
| 187 deps += [ ":common_audio_sse2" ] | 184 deps += [ ":common_audio_sse2" ] |
| 188 } | 185 } |
| 189 } | 186 } |
| 190 | 187 |
| 191 if (current_cpu == "x86" || current_cpu == "x64") { | 188 if (current_cpu == "x86" || current_cpu == "x64") { |
| 192 rtc_source_set("common_audio_sse2") { | 189 rtc_source_set("common_audio_sse2") { |
| 193 sources = [ | 190 sources = [ |
| 194 "fir_filter_sse.cc", | 191 "fir_filter_sse.cc", |
| 195 "resampler/sinc_resampler_sse.cc", | 192 "resampler/sinc_resampler_sse.cc", |
| 196 ] | 193 ] |
| 197 | 194 |
| 198 if (is_posix) { | 195 if (is_posix) { |
| 199 cflags = [ "-msse2" ] | 196 cflags = [ "-msse2" ] |
| 200 } | 197 } |
| 201 | 198 |
| 202 configs += [ "..:common_inherited_config" ] | |
| 203 | |
| 204 if (is_clang) { | 199 if (is_clang) { |
| 205 # Suppress warnings from Chrome's Clang plugins. | 200 # Suppress warnings from Chrome's Clang plugins. |
| 206 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 201 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 207 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 202 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 208 } | 203 } |
| 209 } | 204 } |
| 210 } | 205 } |
| 211 | 206 |
| 212 if (rtc_build_with_neon) { | 207 if (rtc_build_with_neon) { |
| 213 rtc_source_set("common_audio_neon") { | 208 rtc_source_set("common_audio_neon") { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 229 | 224 |
| 230 # Disable LTO on NEON targets due to compiler bug. | 225 # Disable LTO on NEON targets due to compiler bug. |
| 231 # TODO(fdegans): Enable this. See crbug.com/408997. | 226 # TODO(fdegans): Enable this. See crbug.com/408997. |
| 232 if (rtc_use_lto) { | 227 if (rtc_use_lto) { |
| 233 cflags -= [ | 228 cflags -= [ |
| 234 "-flto", | 229 "-flto", |
| 235 "-ffat-lto-objects", | 230 "-ffat-lto-objects", |
| 236 ] | 231 ] |
| 237 } | 232 } |
| 238 | 233 |
| 239 public_configs = [ "..:common_inherited_config" ] | |
| 240 | |
| 241 if (is_clang) { | 234 if (is_clang) { |
| 242 # Suppress warnings from Chrome's Clang plugins. | 235 # Suppress warnings from Chrome's Clang plugins. |
| 243 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 236 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 244 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 237 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 245 } | 238 } |
| 246 } | 239 } |
| 247 } | 240 } |
| 248 | 241 |
| 249 if (rtc_include_tests) { | 242 if (rtc_include_tests) { |
| 250 rtc_test("common_audio_unittests") { | 243 rtc_test("common_audio_unittests") { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 277 "wav_file_unittest.cc", | 270 "wav_file_unittest.cc", |
| 278 "wav_header_unittest.cc", | 271 "wav_header_unittest.cc", |
| 279 "window_generator_unittest.cc", | 272 "window_generator_unittest.cc", |
| 280 ] | 273 ] |
| 281 | 274 |
| 282 # Does not compile on iOS for arm: webrtc:5544. | 275 # Does not compile on iOS for arm: webrtc:5544. |
| 283 if (!is_ios || target_cpu != "arm") { | 276 if (!is_ios || target_cpu != "arm") { |
| 284 sources += [ "resampler/sinc_resampler_unittest.cc" ] | 277 sources += [ "resampler/sinc_resampler_unittest.cc" ] |
| 285 } | 278 } |
| 286 | 279 |
| 287 public_configs = [ "..:common_inherited_config" ] | |
| 288 | |
| 289 if (rtc_use_openmax_dl) { | 280 if (rtc_use_openmax_dl) { |
| 290 defines = [ "RTC_USE_OPENMAX_DL" ] | 281 defines = [ "RTC_USE_OPENMAX_DL" ] |
| 291 } | 282 } |
| 292 | 283 |
| 293 if (is_clang) { | 284 if (is_clang) { |
| 294 # Suppress warnings from the Chromium Clang plugin. | 285 # Suppress warnings from the Chromium Clang plugin. |
| 295 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 286 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 296 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 287 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 297 } | 288 } |
| 298 | 289 |
| 299 deps = [ | 290 deps = [ |
| 300 ":common_audio", | 291 ":common_audio", |
| 301 "../test:test_support_main", | 292 "../test:test_support_main", |
| 302 "//testing/gmock", | 293 "//testing/gmock", |
| 303 "//testing/gtest", | 294 "//testing/gtest", |
| 304 ] | 295 ] |
| 305 | 296 |
| 306 if (is_android) { | 297 if (is_android) { |
| 307 deps += [ "//testing/android/native_test:native_test_support" ] | 298 deps += [ "//testing/android/native_test:native_test_support" ] |
| 308 | 299 |
| 309 shard_timeout = 900 | 300 shard_timeout = 900 |
| 310 } | 301 } |
| 311 } | 302 } |
| 312 } | 303 } |
| OLD | NEW |