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

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

Issue 790173003: Add a build target for opus_compare. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 | « no previous file | third_party/opus/opus.gyp » ('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 6
7 # If fixed point implementation shall be used (otherwise float). 7 # If fixed point implementation shall be used (otherwise float).
8 use_opus_fixed_point = cpu_arch == "arm" || cpu_arch == "arm64" 8 use_opus_fixed_point = cpu_arch == "arm" || cpu_arch == "arm64"
9 9
10 # If ARM optimizations shall be used to accelerate performance. 10 # If ARM optimizations shall be used to accelerate performance.
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 "OPUS_HAVE_RTCD", 130 "OPUS_HAVE_RTCD",
131 ] 131 ]
132 132
133 deps = [ 133 deps = [
134 ":convert_rtcd_assembler", 134 ":convert_rtcd_assembler",
135 ] 135 ]
136 } 136 }
137 } 137 }
138 } 138 }
139 139
140 executable("opus_compare") {
wtc 2014/12/10 20:27:35 I copied the opus_demo code and changed "demo" to
141 sources = [
142 "src/src/opus_compare.c",
143 ]
144
145 configs -= [ "//build/config/compiler:chromium_code" ]
146 configs += [ "//build/config/compiler:no_chromium_code" ]
147
148 include_dirs = [
149 "src/celt",
150 "src/silk",
151 ]
152
153 if (is_win) {
154 defines = [ "inline=__inline" ]
155 }
156 if (is_android) {
157 libs = [ "log" ]
158 }
159 if (is_clang) {
160 cflags = [ "-Wno-absolute-value" ]
161 }
162
163 deps = [
164 ":opus",
165 ]
166 }
167
140 executable("opus_demo") { 168 executable("opus_demo") {
141 sources = [ 169 sources = [
142 "src/src/opus_demo.c", 170 "src/src/opus_demo.c",
143 ] 171 ]
144 172
145 configs -= [ "//build/config/compiler:chromium_code" ] 173 configs -= [ "//build/config/compiler:chromium_code" ]
146 configs += [ "//build/config/compiler:no_chromium_code" ] 174 configs += [ "//build/config/compiler:no_chromium_code" ]
147 175
148 include_dirs = [ 176 include_dirs = [
149 "src/celt", 177 "src/celt",
150 "src/silk", 178 "src/silk",
151 ] 179 ]
152 180
153 if (is_win) { 181 if (is_win) {
154 defines = [ "inline=__inline" ] 182 defines = [ "inline=__inline" ]
155 } 183 }
156 if (is_android) { 184 if (is_android) {
157 libs = [ "log" ] 185 libs = [ "log" ]
158 } 186 }
159 if (is_clang) { 187 if (is_clang) {
160 cflags = [ "-Wno-absolute-value" ] 188 cflags = [ "-Wno-absolute-value" ]
161 } 189 }
162 190
163 deps = [ 191 deps = [
164 ":opus", 192 ":opus",
165 ] 193 ]
166 } 194 }
OLDNEW
« no previous file with comments | « no previous file | third_party/opus/opus.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698