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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 include_dirs += [ "src/silk/float" ] | 115 include_dirs += [ "src/silk/float" ] |
116 } | 116 } |
117 | 117 |
118 if (use_opus_arm_optimization) { | 118 if (use_opus_arm_optimization) { |
119 sources += [ | 119 sources += [ |
120 "src/celt/arm/fixed_armv4.h", | 120 "src/celt/arm/fixed_armv4.h", |
121 "src/celt/arm/fixed_armv5e.h", | 121 "src/celt/arm/fixed_armv5e.h", |
122 "src/celt/arm/kiss_fft_armv4.h", | 122 "src/celt/arm/kiss_fft_armv4.h", |
123 "src/celt/arm/kiss_fft_armv5e.h", | 123 "src/celt/arm/kiss_fft_armv5e.h", |
124 "src/celt/pitch_arm.h", | 124 "src/celt/pitch_arm.h", |
| 125 "src/silk/arm/SigProc_FIX_armv4.h", |
| 126 "src/silk/arm/SigProc_FIX_armv5e.h", |
125 "src/silk/arm/macro_armv4.h", | 127 "src/silk/arm/macro_armv4.h", |
126 "src/silk/arm/macro_armv5e.h", | 128 "src/silk/arm/macro_armv5e.h", |
127 "src/silk/arm/SigProc_FIX_armv4.h", | |
128 "src/silk/arm/SigProc_FIX_armv5e.h", | |
129 ] | 129 ] |
130 | 130 |
131 defines += [ | 131 defines += [ |
132 "OPUS_ARM_ASM", | 132 "OPUS_ARM_ASM", |
133 "OPUS_ARM_INLINE_ASM", | 133 "OPUS_ARM_INLINE_ASM", |
134 "OPUS_ARM_INLINE_EDSP", | 134 "OPUS_ARM_INLINE_EDSP", |
135 ] | 135 ] |
136 | 136 |
137 if (use_opus_rtcd) { | 137 if (use_opus_rtcd) { |
138 sources += [ | 138 sources += [ |
| 139 "$target_gen_dir/celt_pitch_xcorr_arm_gnu.S", |
139 "src/celt/arm/arm_celt_map.c", | 140 "src/celt/arm/arm_celt_map.c", |
140 "src/celt/arm/armcpu.c", | 141 "src/celt/arm/armcpu.c", |
141 "src/celt/arm/armcpu.h", | 142 "src/celt/arm/armcpu.h", |
142 "$target_gen_dir/celt_pitch_xcorr_arm_gnu.S", | |
143 ] | 143 ] |
144 | 144 |
145 defines += [ | 145 defines += [ |
146 "OPUS_ARM_MAY_HAVE_EDSP", | 146 "OPUS_ARM_MAY_HAVE_EDSP", |
147 "OPUS_ARM_MAY_HAVE_MEDIA", | 147 "OPUS_ARM_MAY_HAVE_MEDIA", |
148 "OPUS_ARM_MAY_HAVE_NEON", | 148 "OPUS_ARM_MAY_HAVE_NEON", |
149 "OPUS_HAVE_RTCD", | 149 "OPUS_HAVE_RTCD", |
150 ] | 150 ] |
151 | 151 |
152 deps = [ | 152 deps = [ |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 configs -= [ "//build/config/compiler:chromium_code" ] | 252 configs -= [ "//build/config/compiler:chromium_code" ] |
253 configs += [ | 253 configs += [ |
254 "//build/config/compiler:no_chromium_code", | 254 "//build/config/compiler:no_chromium_code", |
255 ":opus_test_config", | 255 ":opus_test_config", |
256 ] | 256 ] |
257 | 257 |
258 deps = [ | 258 deps = [ |
259 ":opus", | 259 ":opus", |
260 ] | 260 ] |
261 } | 261 } |
OLD | NEW |