OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'use_system_opus%': 0, | 7 'use_system_opus%': 0, |
8 }, | 8 }, |
9 'conditions': [ | 9 'conditions': [ |
10 ['use_system_opus==0', { | 10 ['use_system_opus==0', { |
11 'targets': [ | 11 'targets': [ |
12 { | 12 { |
13 'target_name': 'opus', | 13 'target_name': 'opus', |
14 'type': 'static_library', | 14 'type': 'static_library', |
| 15 'defines': [ |
| 16 'OPUS_BUILD', |
| 17 'WORDS_BIGENDIAN', |
| 18 ], |
| 19 'conditions': [ |
| 20 ['OS!="win"', { |
| 21 'defines': [ |
| 22 'HAVE_LRINT', |
| 23 'HAVE_LRINTF', |
| 24 'VAR_ARRAYS', |
| 25 ], |
| 26 }, { |
| 27 'defines': [ |
| 28 'USE_ALLOCA', |
| 29 'inline=__inline', |
| 30 ], |
| 31 'msvs_disabled_warnings': [ |
| 32 4305, # Disable truncation warning in celt/pitch.c . |
| 33 ], |
| 34 }], |
| 35 ], |
15 'include_dirs': [ | 36 'include_dirs': [ |
| 37 '../..', |
| 38 'overrides/include', |
16 'src/celt', | 39 'src/celt', |
17 'src/include', | 40 'src/include', |
18 'src/silk', | 41 'src/silk', |
19 'src/silk/float', | 42 'src/silk/float', |
20 ], | 43 ], |
21 'defines': [ | 44 'direct_dependent_settings': { |
22 'OPUS_BUILD', | 45 'include_dirs': [ |
23 'VAR_ARRAYS', | 46 'overrides/include', |
24 'WORDS_BIGENDIAN', | 47 'src/include', |
25 ], | 48 ], |
| 49 }, |
26 'sources': [ | 50 'sources': [ |
27 'src/celt/_kiss_fft_guts.h', | 51 'src/celt/_kiss_fft_guts.h', |
28 'src/celt/arch.h', | 52 'src/celt/arch.h', |
29 'src/celt/bands.c', | 53 'src/celt/bands.c', |
30 'src/celt/bands.h', | 54 'src/celt/bands.h', |
31 'src/celt/celt.c', | 55 'src/celt/celt.c', |
32 'src/celt/celt.h', | 56 'src/celt/celt.h', |
33 'src/celt/celt_lpc.c', | 57 'src/celt/celt_lpc.c', |
34 'src/celt/celt_lpc.h', | 58 'src/celt/celt_lpc.h', |
35 'src/celt/cwrs.c', | 59 'src/celt/cwrs.c', |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 'src/silk/tuning_parameters.h', | 227 'src/silk/tuning_parameters.h', |
204 'src/silk/typedef.h', | 228 'src/silk/typedef.h', |
205 'src/silk/VAD.c', | 229 'src/silk/VAD.c', |
206 'src/silk/VQ_WMat_EC.c', | 230 'src/silk/VQ_WMat_EC.c', |
207 'src/src/opus.c', | 231 'src/src/opus.c', |
208 'src/src/opus_decoder.c', | 232 'src/src/opus_decoder.c', |
209 'src/src/opus_encoder.c', | 233 'src/src/opus_encoder.c', |
210 'src/src/opus_multistream.c', | 234 'src/src/opus_multistream.c', |
211 'src/src/repacketizer.c', | 235 'src/src/repacketizer.c', |
212 ], | 236 ], |
213 'conditions': [ | |
214 ['os_posix == 1', { | |
215 'defines': [ | |
216 'HAVE_LRINT', | |
217 'HAVE_LRINTF', | |
218 ], | |
219 }], | |
220 ], | |
221 }, # target opus | 237 }, # target opus |
222 ] | 238 ] |
223 }, { # use_system_opus != 0 | 239 }, { # use_system_opus != 0 |
224 'targets': [ | 240 'targets': [ |
225 { | 241 { |
226 'target_name': 'opus', | 242 'target_name': 'opus', |
227 'type': 'none', | 243 'type': 'none', |
228 'direct_dependent_settings': { | 244 'direct_dependent_settings': { |
229 'cflags': [ | 245 'cflags': [ |
230 '<!@(pkg-config --cflags opus)', | 246 '<!@(pkg-config --cflags opus)', |
231 ], | 247 ], |
232 'defines': [ | 248 'defines': [ |
233 'USE_SYSTEM_OPUS', | 249 'USE_SYSTEM_OPUS', |
234 ], | 250 ], |
235 }, | 251 }, |
236 'link_settings': { | 252 'link_settings': { |
237 'ldflags': [ | 253 'ldflags': [ |
238 '<!@(pkg-config --libs-only-L --libs-only-other opus)', | 254 '<!@(pkg-config --libs-only-L --libs-only-other opus)', |
239 ], | 255 ], |
240 'libraries': [ | 256 'libraries': [ |
241 '<!@(pkg-config --libs-only-l opus)', | 257 '<!@(pkg-config --libs-only-l opus)', |
242 ], | 258 ], |
243 }, | 259 }, |
244 }, # target opus | 260 }, # target opus |
245 ], | 261 ], |
246 }], | 262 }], |
247 ], | 263 ], |
248 } | 264 } |
OLD | NEW |