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("//third_party/protobuf/proto_library.gni") | 10 import("//third_party/protobuf/proto_library.gni") |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 "vad/vad_audio_proc_internal.h", | 144 "vad/vad_audio_proc_internal.h", |
145 "vad/vad_circular_buffer.cc", | 145 "vad/vad_circular_buffer.cc", |
146 "vad/vad_circular_buffer.h", | 146 "vad/vad_circular_buffer.h", |
147 "vad/voice_activity_detector.cc", | 147 "vad/voice_activity_detector.cc", |
148 "vad/voice_activity_detector.h", | 148 "vad/voice_activity_detector.h", |
149 "vad/voice_gmm_tables.h", | 149 "vad/voice_gmm_tables.h", |
150 "voice_detection_impl.cc", | 150 "voice_detection_impl.cc", |
151 "voice_detection_impl.h", | 151 "voice_detection_impl.h", |
152 ] | 152 ] |
153 | 153 |
154 configs += [ "../..:common_config" ] | |
155 public_configs = [ "../..:common_inherited_config" ] | 154 public_configs = [ "../..:common_inherited_config" ] |
156 | 155 |
157 defines = [] | 156 defines = [] |
158 deps = [ | 157 deps = [ |
159 "../..:webrtc_common", | 158 "../..:webrtc_common", |
160 "../audio_coding:isac", | 159 "../audio_coding:isac", |
161 ] | 160 ] |
162 | 161 |
163 if (apm_debug_dump) { | 162 if (apm_debug_dump) { |
164 defines += [ "WEBRTC_APM_DEBUG_DUMP=1" ] | 163 defines += [ "WEBRTC_APM_DEBUG_DUMP=1" ] |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 rtc_source_set("audio_processing_sse2") { | 256 rtc_source_set("audio_processing_sse2") { |
258 sources = [ | 257 sources = [ |
259 "aec/aec_core_sse2.cc", | 258 "aec/aec_core_sse2.cc", |
260 "aec/aec_rdft_sse2.cc", | 259 "aec/aec_rdft_sse2.cc", |
261 ] | 260 ] |
262 | 261 |
263 if (is_posix) { | 262 if (is_posix) { |
264 cflags = [ "-msse2" ] | 263 cflags = [ "-msse2" ] |
265 } | 264 } |
266 | 265 |
267 configs += [ "../..:common_config" ] | |
268 public_configs = [ "../..:common_inherited_config" ] | 266 public_configs = [ "../..:common_inherited_config" ] |
269 | 267 |
270 if (apm_debug_dump) { | 268 if (apm_debug_dump) { |
271 defines = [ "WEBRTC_APM_DEBUG_DUMP=1" ] | 269 defines = [ "WEBRTC_APM_DEBUG_DUMP=1" ] |
272 } else { | 270 } else { |
273 defines = [ "WEBRTC_APM_DEBUG_DUMP=0" ] | 271 defines = [ "WEBRTC_APM_DEBUG_DUMP=0" ] |
274 } | 272 } |
275 } | 273 } |
276 } | 274 } |
277 | 275 |
(...skipping 16 matching lines...) Expand all Loading... |
294 | 292 |
295 # Disable LTO on NEON targets due to compiler bug. | 293 # Disable LTO on NEON targets due to compiler bug. |
296 # TODO(fdegans): Enable this. See crbug.com/408997. | 294 # TODO(fdegans): Enable this. See crbug.com/408997. |
297 if (rtc_use_lto) { | 295 if (rtc_use_lto) { |
298 cflags -= [ | 296 cflags -= [ |
299 "-flto", | 297 "-flto", |
300 "-ffat-lto-objects", | 298 "-ffat-lto-objects", |
301 ] | 299 ] |
302 } | 300 } |
303 | 301 |
304 configs += [ "../..:common_config" ] | |
305 public_configs = [ "../..:common_inherited_config" ] | 302 public_configs = [ "../..:common_inherited_config" ] |
306 | 303 |
307 deps = [ | 304 deps = [ |
308 "../../common_audio", | 305 "../../common_audio", |
309 ] | 306 ] |
310 | 307 |
311 if (apm_debug_dump) { | 308 if (apm_debug_dump) { |
312 defines = [ "WEBRTC_APM_DEBUG_DUMP=1" ] | 309 defines = [ "WEBRTC_APM_DEBUG_DUMP=1" ] |
313 } else { | 310 } else { |
314 defines = [ "WEBRTC_APM_DEBUG_DUMP=0" ] | 311 defines = [ "WEBRTC_APM_DEBUG_DUMP=0" ] |
315 } | 312 } |
316 } | 313 } |
317 } | 314 } |
318 | 315 |
319 if (rtc_include_tests) { | 316 if (rtc_include_tests) { |
320 rtc_executable("audioproc") { | 317 rtc_executable("audioproc") { |
321 testonly = true | 318 testonly = true |
322 sources = [ | 319 sources = [ |
323 "test/process_test.cc", | 320 "test/process_test.cc", |
324 ] | 321 ] |
325 | 322 |
326 configs += [ "../..:common_config" ] | |
327 public_configs = [ "../..:common_inherited_config" ] | 323 public_configs = [ "../..:common_inherited_config" ] |
328 | 324 |
329 deps = [ | 325 deps = [ |
330 ":audio_processing", | 326 ":audio_processing", |
331 ":audioproc_debug_proto", | 327 ":audioproc_debug_proto", |
332 ":audioproc_protobuf_utils", | 328 ":audioproc_protobuf_utils", |
333 ":audioproc_test_utils", | 329 ":audioproc_test_utils", |
334 "../../system_wrappers", | 330 "../../system_wrappers", |
335 "../../system_wrappers:system_wrappers_default", | 331 "../../system_wrappers:system_wrappers_default", |
336 "../../test:test_support", | 332 "../../test:test_support", |
337 "//testing/gtest", | 333 "//testing/gtest", |
338 "//third_party/gflags:gflags", | 334 "//third_party/gflags:gflags", |
339 ] | 335 ] |
340 } # audioproc | 336 } # audioproc |
341 | 337 |
342 rtc_executable("unpack_aecdump") { | 338 rtc_executable("unpack_aecdump") { |
343 testonly = true | 339 testonly = true |
344 sources = [ | 340 sources = [ |
345 "test/unpack.cc", | 341 "test/unpack.cc", |
346 ] | 342 ] |
347 | 343 |
348 configs += [ "../..:common_config" ] | |
349 public_configs = [ "../..:common_inherited_config" ] | 344 public_configs = [ "../..:common_inherited_config" ] |
350 | 345 |
351 deps = [ | 346 deps = [ |
352 ":audio_processing", | 347 ":audio_processing", |
353 ":audioproc_debug_proto", | 348 ":audioproc_debug_proto", |
354 ":audioproc_protobuf_utils", | 349 ":audioproc_protobuf_utils", |
355 ":audioproc_test_utils", | 350 ":audioproc_test_utils", |
356 "../../common_audio", | 351 "../../common_audio", |
357 "../../system_wrappers:system_wrappers_default", | 352 "../../system_wrappers:system_wrappers_default", |
358 "//third_party/gflags:gflags", | 353 "//third_party/gflags:gflags", |
359 ] | 354 ] |
360 } # unpack_aecdump | 355 } # unpack_aecdump |
361 | 356 |
362 rtc_executable("audioproc_f") { | 357 rtc_executable("audioproc_f") { |
363 testonly = true | 358 testonly = true |
364 sources = [ | 359 sources = [ |
365 "test/aec_dump_based_simulator.cc", | 360 "test/aec_dump_based_simulator.cc", |
366 "test/aec_dump_based_simulator.h", | 361 "test/aec_dump_based_simulator.h", |
367 "test/audio_processing_simulator.cc", | 362 "test/audio_processing_simulator.cc", |
368 "test/audio_processing_simulator.h", | 363 "test/audio_processing_simulator.h", |
369 "test/audioproc_float.cc", | 364 "test/audioproc_float.cc", |
370 "test/wav_based_simulator.cc", | 365 "test/wav_based_simulator.cc", |
371 "test/wav_based_simulator.h", | 366 "test/wav_based_simulator.h", |
372 ] | 367 ] |
373 | 368 |
374 configs += [ "../..:common_config" ] | |
375 public_configs = [ "../..:common_inherited_config" ] | 369 public_configs = [ "../..:common_inherited_config" ] |
376 | 370 |
377 deps = [ | 371 deps = [ |
378 ":audio_processing", | 372 ":audio_processing", |
379 ":audioproc_debug_proto", | 373 ":audioproc_debug_proto", |
380 ":audioproc_protobuf_utils", | 374 ":audioproc_protobuf_utils", |
381 ":audioproc_test_utils", | 375 ":audioproc_test_utils", |
382 "../../system_wrappers", | 376 "../../system_wrappers", |
383 "../../system_wrappers:system_wrappers_default", | 377 "../../system_wrappers:system_wrappers_default", |
384 "../../test:test_support", | 378 "../../test:test_support", |
385 "//testing/gtest", | 379 "//testing/gtest", |
386 "//third_party/gflags:gflags", | 380 "//third_party/gflags:gflags", |
387 ] | 381 ] |
388 } # audioproc_f | 382 } # audioproc_f |
389 | 383 |
390 rtc_source_set("audioproc_test_utils") { | 384 rtc_source_set("audioproc_test_utils") { |
391 testonly = true | 385 testonly = true |
392 sources = [ | 386 sources = [ |
393 "test/audio_buffer_tools.cc", | 387 "test/audio_buffer_tools.cc", |
394 "test/audio_buffer_tools.h", | 388 "test/audio_buffer_tools.h", |
395 "test/test_utils.cc", | 389 "test/test_utils.cc", |
396 "test/test_utils.h", | 390 "test/test_utils.h", |
397 ] | 391 ] |
398 | 392 |
399 configs += [ "../..:common_config" ] | |
400 public_configs = [ "../..:common_inherited_config" ] | 393 public_configs = [ "../..:common_inherited_config" ] |
401 | 394 |
402 deps = [ | 395 deps = [ |
403 "../../base:rtc_base_approved", | 396 "../../base:rtc_base_approved", |
404 "../../common_audio", | 397 "../../common_audio", |
405 ] | 398 ] |
406 } | 399 } |
407 | 400 |
408 rtc_executable("transient_suppression_test") { | 401 rtc_executable("transient_suppression_test") { |
409 testonly = true | 402 testonly = true |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 "test/protobuf_utils.cc", | 470 "test/protobuf_utils.cc", |
478 "test/protobuf_utils.h", | 471 "test/protobuf_utils.h", |
479 ] | 472 ] |
480 | 473 |
481 deps = [ | 474 deps = [ |
482 ":audioproc_debug_proto", | 475 ":audioproc_debug_proto", |
483 ] | 476 ] |
484 } | 477 } |
485 } | 478 } |
486 } | 479 } |
OLD | NEW |