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 | 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 Loading... | |
| 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 } |
| OLD | NEW |