Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: third_party/opus/BUILD.gn

Issue 899623002: Revert of Roll opus to opus-HEAD-66611f1. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « DEPS ('k') | third_party/opus/README.chromium » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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("//build/config/mips.gni")
7 6
8 # If fixed point implementation shall be used (otherwise float). 7 # If fixed point implementation shall be used (otherwise float).
9 # TODO(wtc): change "mipselx" to "mipsel" in this file when the compilation 8 use_opus_fixed_point = cpu_arch == "arm" || cpu_arch == "arm64"
10 # errors in the MIPS optimizations are fixed.
11 use_opus_fixed_point =
12 cpu_arch == "arm" || cpu_arch == "arm64" || cpu_arch == "mipselx"
13 9
14 # If ARM optimizations shall be used to accelerate performance. 10 # If ARM optimizations shall be used to accelerate performance.
15 use_opus_arm_optimization = cpu_arch == "arm" 11 use_opus_arm_optimization = cpu_arch == "arm"
16 12
17 # If MIPS optimizations shall be used to accelerate performance.
18 use_opus_mips_optimization = cpu_arch == "mipselx"
19
20 # If OPUS Run Time CPU Detections (RTCD) shall be used. 13 # If OPUS Run Time CPU Detections (RTCD) shall be used.
21 # Based on the conditions in celt/arm/armcpu.c: 14 # Based on the conditions in celt/arm/armcpu.c:
22 # defined(_MSC_VER) || defined(__linux__). 15 # defined(_MSC_VER) || defined(__linux__).
23 use_opus_rtcd = cpu_arch == "arm" && (is_win || is_android || is_linux) 16 use_opus_rtcd = cpu_arch == "arm" && (is_win || is_android || is_linux)
24 17
25 config("opus_config") { 18 config("opus_config") {
26 include_dirs = [ "src/include" ] 19 include_dirs = [ "src/include" ]
27 } 20 }
28 21
29 if (use_opus_rtcd) { 22 if (use_opus_rtcd) {
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 "OPUS_ARM_MAY_HAVE_MEDIA", 128 "OPUS_ARM_MAY_HAVE_MEDIA",
136 "OPUS_ARM_MAY_HAVE_NEON", 129 "OPUS_ARM_MAY_HAVE_NEON",
137 "OPUS_HAVE_RTCD", 130 "OPUS_HAVE_RTCD",
138 ] 131 ]
139 132
140 deps = [ 133 deps = [
141 ":convert_rtcd_assembler", 134 ":convert_rtcd_assembler",
142 ] 135 ]
143 } 136 }
144 } 137 }
145
146 if (use_opus_mips_optimization) {
147 sources += [
148 "src/celt/mips/celt_mipsr1.h",
149 "src/celt/mips/fixed_generic_mipsr1.h",
150 "src/celt/mips/kiss_fft_mipsr1.h",
151 "src/celt/mips/mdct_mipsr1.h",
152 "src/celt/mips/pitch_mipsr1.h",
153 "src/celt/mips/vq_mipsr1.c",
154 "src/celt/mips/vq_mipsr1.h",
155 "src/silk/fixed/mips/noise_shape_analysis_FIX_mipsr1.h",
156 "src/silk/fixed/mips/prefilter_FIX_mipsr1.h",
157 "src/silk/fixed/mips/warped_autocorrelation_FIX_mipsr1.h",
158 "src/silk/mips/NSQ_del_dec_mipsr1.h",
159 "src/silk/mips/macros_mipsr1.h",
160 "src/silk/mips/sigproc_fix_mipsr1.h",
161 ]
162
163 defines += [
164 "MIPSr1_ASM",
165 "USE_ALLOCA",
166 ]
167 }
168 } 138 }
169 139
170 executable("opus_compare") { 140 executable("opus_compare") {
171 sources = [ 141 sources = [
172 "src/src/opus_compare.c", 142 "src/src/opus_compare.c",
173 ] 143 ]
174 144
175 configs -= [ "//build/config/compiler:chromium_code" ] 145 configs -= [ "//build/config/compiler:chromium_code" ]
176 configs += [ "//build/config/compiler:no_chromium_code" ] 146 configs += [ "//build/config/compiler:no_chromium_code" ]
177 147
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 libs = [ "log" ] 185 libs = [ "log" ]
216 } 186 }
217 if (is_clang) { 187 if (is_clang) {
218 cflags = [ "-Wno-absolute-value" ] 188 cflags = [ "-Wno-absolute-value" ]
219 } 189 }
220 190
221 deps = [ 191 deps = [
222 ":opus", 192 ":opus",
223 ] 193 ]
224 } 194 }
OLDNEW
« no previous file with comments | « DEPS ('k') | third_party/opus/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698