| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 } | 92 } |
| 93 | 93 |
| 94 if (is_posix && !is_android) { | 94 if (is_posix && !is_android) { |
| 95 # Suppress a warning given by opus_decoder.c that tells us | 95 # Suppress a warning given by opus_decoder.c that tells us |
| 96 # optimizations are turned off. | 96 # optimizations are turned off. |
| 97 cflags = [ "-Wno-#pragma-messages" ] | 97 cflags = [ "-Wno-#pragma-messages" ] |
| 98 } | 98 } |
| 99 | 99 |
| 100 if (!is_debug && is_posix && | 100 if (!is_debug && is_posix && |
| 101 (current_cpu == "arm" || current_cpu == "arm64")) { | 101 (current_cpu == "arm" || current_cpu == "arm64")) { |
| 102 configs -= [ "//build/config/compiler:optimize" ] | 102 configs -= [ "//build/config/compiler:default_optimization" ] |
| 103 configs += [ "//build/config/compiler:optimize_max" ] | 103 configs += [ "//build/config/compiler:optimize_max" ] |
| 104 } | 104 } |
| 105 | 105 |
| 106 if (use_opus_fixed_point) { | 106 if (use_opus_fixed_point) { |
| 107 sources += gypi_values.opus_fixed_sources | 107 sources += gypi_values.opus_fixed_sources |
| 108 | 108 |
| 109 defines += [ "FIXED_POINT" ] | 109 defines += [ "FIXED_POINT" ] |
| 110 | 110 |
| 111 include_dirs += [ "src/silk/fixed" ] | 111 include_dirs += [ "src/silk/fixed" ] |
| 112 } else { | 112 } else { |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 configs -= [ "//build/config/compiler:chromium_code" ] | 254 configs -= [ "//build/config/compiler:chromium_code" ] |
| 255 configs += [ | 255 configs += [ |
| 256 "//build/config/compiler:no_chromium_code", | 256 "//build/config/compiler:no_chromium_code", |
| 257 ":opus_test_config", | 257 ":opus_test_config", |
| 258 ] | 258 ] |
| 259 | 259 |
| 260 deps = [ | 260 deps = [ |
| 261 ":opus", | 261 ":opus", |
| 262 ] | 262 ] |
| 263 } | 263 } |
| OLD | NEW |