| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 "OPUS_ARM_INLINE_ASM", | 137 "OPUS_ARM_INLINE_ASM", |
| 138 "OPUS_ARM_INLINE_EDSP", | 138 "OPUS_ARM_INLINE_EDSP", |
| 139 ] | 139 ] |
| 140 | 140 |
| 141 if (use_opus_rtcd) { | 141 if (use_opus_rtcd) { |
| 142 sources += [ | 142 sources += [ |
| 143 "$target_gen_dir/celt_pitch_xcorr_arm_gnu.S", | 143 "$target_gen_dir/celt_pitch_xcorr_arm_gnu.S", |
| 144 "src/celt/arm/arm_celt_map.c", | 144 "src/celt/arm/arm_celt_map.c", |
| 145 "src/celt/arm/armcpu.c", | 145 "src/celt/arm/armcpu.c", |
| 146 "src/celt/arm/armcpu.h", | 146 "src/celt/arm/armcpu.h", |
| 147 "src/celt/arm/celt_neon_intr.c", |
| 148 "src/celt/arm/fft_arm.h", |
| 149 "src/celt/arm/mdct_arm.h", |
| 150 "src/celt/arm/pitch_arm.h", |
| 147 ] | 151 ] |
| 148 | 152 |
| 149 defines += [ | 153 defines += [ |
| 150 "OPUS_ARM_MAY_HAVE_EDSP", | 154 "OPUS_ARM_MAY_HAVE_EDSP", |
| 151 "OPUS_ARM_MAY_HAVE_MEDIA", | 155 "OPUS_ARM_MAY_HAVE_MEDIA", |
| 152 "OPUS_ARM_MAY_HAVE_NEON", | 156 "OPUS_ARM_MAY_HAVE_NEON", |
| 157 "OPUS_ARM_MAY_HAVE_NEON_INTR", |
| 153 "OPUS_HAVE_RTCD", | 158 "OPUS_HAVE_RTCD", |
| 154 ] | 159 ] |
| 155 | 160 |
| 156 deps = [ | 161 deps = [ |
| 157 ":convert_rtcd_assembler", | 162 ":convert_rtcd_assembler", |
| 158 ] | 163 ] |
| 164 |
| 165 configs -= [ "//build/config/compiler:compiler_arm_fpu" ] |
| 166 cflags = [ "-mfpu=neon" ] |
| 159 } | 167 } |
| 160 } | 168 } |
| 161 } | 169 } |
| 162 | 170 |
| 163 executable("opus_compare") { | 171 executable("opus_compare") { |
| 164 sources = [ | 172 sources = [ |
| 165 "src/src/opus_compare.c", | 173 "src/src/opus_compare.c", |
| 166 ] | 174 ] |
| 167 | 175 |
| 168 configs -= [ "//build/config/compiler:chromium_code" ] | 176 configs -= [ "//build/config/compiler:chromium_code" ] |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 configs -= [ "//build/config/compiler:chromium_code" ] | 272 configs -= [ "//build/config/compiler:chromium_code" ] |
| 265 configs += [ | 273 configs += [ |
| 266 "//build/config/compiler:no_chromium_code", | 274 "//build/config/compiler:no_chromium_code", |
| 267 ":opus_test_config", | 275 ":opus_test_config", |
| 268 ] | 276 ] |
| 269 | 277 |
| 270 deps = [ | 278 deps = [ |
| 271 ":opus", | 279 ":opus", |
| 272 ] | 280 ] |
| 273 } | 281 } |
| OLD | NEW |