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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 defines = [ | 46 defines = [ |
47 "OPUS_BUILD", | 47 "OPUS_BUILD", |
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" ] |
| 57 configs += [ "//build/config/compiler:no_chromium_code" ] |
56 direct_dependent_configs = [ ":opus_config" ] | 58 direct_dependent_configs = [ ":opus_config" ] |
57 | 59 |
58 if (is_win) { | 60 if (is_win) { |
59 defines += [ | 61 defines += [ |
60 "USE_ALLOCA", | 62 "USE_ALLOCA", |
61 "inline=__inline", | 63 "inline=__inline", |
62 ] | 64 ] |
63 | 65 |
64 cflags = [ | 66 cflags = [ |
65 "/wd4305", # Disable truncation warning in celt/pitch.c . | 67 "/wd4305", # Disable truncation warning in celt/pitch.c . |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 deps = [ ":convert_rtcd_assembler" ] | 136 deps = [ ":convert_rtcd_assembler" ] |
135 } | 137 } |
136 } | 138 } |
137 } | 139 } |
138 | 140 |
139 executable("opus_demo") { | 141 executable("opus_demo") { |
140 sources = [ | 142 sources = [ |
141 "src/src/opus_demo.c", | 143 "src/src/opus_demo.c", |
142 ] | 144 ] |
143 | 145 |
| 146 configs -= [ "//build/config/compiler:chromium_code" ] |
| 147 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 148 |
144 include_dirs = [ | 149 include_dirs = [ |
145 "src/celt", | 150 "src/celt", |
146 "src/silk", | 151 "src/silk", |
147 ] | 152 ] |
148 | 153 |
149 if (is_win) { | 154 if (is_win) { |
150 defines = [ "inline=__inline" ] | 155 defines = [ "inline=__inline" ] |
151 } | 156 } |
152 if (is_android) { | 157 if (is_android) { |
153 libs = [ "log" ] | 158 libs = [ "log" ] |
154 } | 159 } |
155 | 160 |
156 deps = [ ":opus" ] | 161 deps = [ ":opus" ] |
157 } | 162 } |
OLD | NEW |