Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/arm.gni") | 5 import("//build/config/arm.gni") |
| 6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
| 7 | 7 |
| 8 # If fixed point implementation shall be used (otherwise float). | 8 # If fixed point implementation shall be used (otherwise float). |
| 9 use_opus_fixed_point = current_cpu == "arm" || current_cpu == "arm64" | 9 use_opus_fixed_point = current_cpu == "arm" || current_cpu == "arm64" |
| 10 | 10 |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 359 "src/silk/arm/macros_armv4.h", | 359 "src/silk/arm/macros_armv4.h", |
| 360 "src/silk/arm/macros_armv5e.h", | 360 "src/silk/arm/macros_armv5e.h", |
| 361 ] | 361 ] |
| 362 | 362 |
| 363 defines += [ | 363 defines += [ |
| 364 "OPUS_ARM_ASM", | 364 "OPUS_ARM_ASM", |
| 365 "OPUS_ARM_INLINE_ASM", | 365 "OPUS_ARM_INLINE_ASM", |
| 366 "OPUS_ARM_INLINE_EDSP", | 366 "OPUS_ARM_INLINE_EDSP", |
| 367 ] | 367 ] |
| 368 | 368 |
| 369 if (use_opus_rtcd) { | 369 if (use_opus_rtcd) { |
|
minyue
2016/10/20 07:55:24
If I am not mistaken, RTCD can determine neon at r
wzhong
2016/10/20 15:30:11
Yeah. A bug would help.
The problem is the source
slan
2016/10/20 16:33:11
Tagged the bug.
To your point, OPUS_ARM_MAY_HAVE_
| |
| 370 sources += [ | 370 sources += [ |
| 371 "$target_gen_dir/celt_pitch_xcorr_arm_gnu.S", | 371 "$target_gen_dir/celt_pitch_xcorr_arm_gnu.S", |
| 372 "src/celt/arm/arm_celt_map.c", | 372 "src/celt/arm/arm_celt_map.c", |
| 373 "src/celt/arm/armcpu.c", | 373 "src/celt/arm/armcpu.c", |
| 374 "src/celt/arm/armcpu.h", | 374 "src/celt/arm/armcpu.h", |
| 375 "src/celt/arm/celt_neon_intr.c", | |
| 376 "src/celt/arm/fft_arm.h", | 375 "src/celt/arm/fft_arm.h", |
| 377 "src/celt/arm/mdct_arm.h", | 376 "src/celt/arm/mdct_arm.h", |
| 378 "src/celt/arm/pitch_arm.h", | 377 "src/celt/arm/pitch_arm.h", |
| 379 "src/silk/arm/NSQ_neon.c", | |
| 380 "src/silk/arm/NSQ_neon.h", | |
| 381 "src/silk/arm/arm_silk_map.c", | 378 "src/silk/arm/arm_silk_map.c", |
| 382 ] | 379 ] |
| 383 | 380 |
| 384 include_dirs += [ "src" ] | 381 include_dirs += [ "src" ] |
| 385 | 382 |
| 386 defines += [ | 383 defines += [ |
| 387 "OPUS_ARM_MAY_HAVE_EDSP", | 384 "OPUS_ARM_MAY_HAVE_EDSP", |
| 388 "OPUS_ARM_MAY_HAVE_MEDIA", | 385 "OPUS_ARM_MAY_HAVE_MEDIA", |
| 389 "OPUS_ARM_MAY_HAVE_NEON", | |
| 390 "OPUS_ARM_MAY_HAVE_NEON_INTR", | |
| 391 "OPUS_HAVE_RTCD", | 386 "OPUS_HAVE_RTCD", |
| 392 ] | 387 ] |
| 393 | 388 |
| 394 deps = [ | 389 deps = [ |
| 395 ":convert_rtcd_assembler", | 390 ":convert_rtcd_assembler", |
| 396 ] | 391 ] |
| 392 | |
| 393 if (arm_use_neon) { | |
| 394 sources += [ | |
| 395 "src/celt/arm/celt_neon_intr.c", | |
| 396 "src/silk/arm/NSQ_neon.c", | |
| 397 "src/silk/arm/NSQ_neon.h", | |
| 398 ] | |
| 399 | |
| 400 defines += [ | |
| 401 "OPUS_ARM_MAY_HAVE_NEON", | |
| 402 "OPUS_ARM_MAY_HAVE_NEON_INTR", | |
| 403 ] | |
| 404 } | |
| 397 } | 405 } |
| 398 } | 406 } |
| 399 } | 407 } |
| 400 | 408 |
| 401 executable("opus_compare") { | 409 executable("opus_compare") { |
| 402 sources = [ | 410 sources = [ |
| 403 "src/src/opus_compare.c", | 411 "src/src/opus_compare.c", |
| 404 ] | 412 ] |
| 405 | 413 |
| 406 configs -= [ "//build/config/compiler:chromium_code" ] | 414 configs -= [ "//build/config/compiler:chromium_code" ] |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 504 configs -= [ "//build/config/compiler:chromium_code" ] | 512 configs -= [ "//build/config/compiler:chromium_code" ] |
| 505 configs += [ | 513 configs += [ |
| 506 "//build/config/compiler:no_chromium_code", | 514 "//build/config/compiler:no_chromium_code", |
| 507 ":opus_test_config", | 515 ":opus_test_config", |
| 508 ] | 516 ] |
| 509 | 517 |
| 510 deps = [ | 518 deps = [ |
| 511 ":opus", | 519 ":opus", |
| 512 ] | 520 ] |
| 513 } | 521 } |
| OLD | NEW |