| 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 = ((is_android || is_chromeos || | 8 use_opus_fixed_point = ((is_android || is_chromeos || |
| 9 (is_ios && arm_version == 7)) && cpu_arch == "arm") | 9 (is_ios && arm_version == 7)) && cpu_arch == "arm") |
| 10 | 10 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 "OPUS_EXPORT=", | 48 "OPUS_EXPORT=", |
| 49 ] | 49 ] |
| 50 | 50 |
| 51 include_dirs = [ | 51 include_dirs = [ |
| 52 "src/celt", | 52 "src/celt", |
| 53 "src/silk", | 53 "src/silk", |
| 54 ] | 54 ] |
| 55 | 55 |
| 56 configs -= [ "//build/config/compiler:chromium_code" ] | 56 configs -= [ "//build/config/compiler:chromium_code" ] |
| 57 configs += [ "//build/config/compiler:no_chromium_code" ] | 57 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 58 direct_dependent_configs = [ ":opus_config" ] | 58 public_configs = [ ":opus_config" ] |
| 59 | 59 |
| 60 if (is_win) { | 60 if (is_win) { |
| 61 defines += [ | 61 defines += [ |
| 62 "USE_ALLOCA", | 62 "USE_ALLOCA", |
| 63 "inline=__inline", | 63 "inline=__inline", |
| 64 ] | 64 ] |
| 65 | 65 |
| 66 cflags = [ | 66 cflags = [ |
| 67 "/wd4305", # Disable truncation warning in celt/pitch.c . | 67 "/wd4305", # Disable truncation warning in celt/pitch.c . |
| 68 "/wd4334", # Disable 32-bit shift warning in src/opus_encoder.c . | 68 "/wd4334", # Disable 32-bit shift warning in src/opus_encoder.c . |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 } | 156 } |
| 157 if (is_android) { | 157 if (is_android) { |
| 158 libs = [ "log" ] | 158 libs = [ "log" ] |
| 159 } | 159 } |
| 160 if (is_clang) { | 160 if (is_clang) { |
| 161 cflags = [ "-Wno-absolute-value" ] | 161 cflags = [ "-Wno-absolute-value" ] |
| 162 } | 162 } |
| 163 | 163 |
| 164 deps = [ ":opus" ] | 164 deps = [ ":opus" ] |
| 165 } | 165 } |
| OLD | NEW |