OLD | NEW |
| (Empty) |
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 | |
3 # found in the LICENSE file. | |
4 | |
5 config("speex_config") { | |
6 # Clients expect <speex/speex.h> to be a system header. | |
7 include_dirs = [ "include" ] | |
8 } | |
9 | |
10 static_library("speex") { | |
11 sources = [ | |
12 "libspeex/arch.h", | |
13 "libspeex/bits.c", | |
14 "libspeex/cb_search.c", | |
15 "libspeex/cb_search.h", | |
16 "libspeex/exc_10_16_table.c", | |
17 "libspeex/exc_10_32_table.c", | |
18 "libspeex/exc_20_32_table.c", | |
19 "libspeex/exc_5_256_table.c", | |
20 "libspeex/exc_5_64_table.c", | |
21 "libspeex/exc_8_128_table.c", | |
22 "libspeex/filters.c", | |
23 "libspeex/filters.h", | |
24 "libspeex/gain_table.c", | |
25 "libspeex/gain_table_lbr.c", | |
26 "libspeex/hexc_10_32_table.c", | |
27 "libspeex/hexc_table.c", | |
28 "libspeex/high_lsp_tables.c", | |
29 "libspeex/lpc.c", | |
30 "libspeex/lpc.h", | |
31 "libspeex/lsp.c", | |
32 "libspeex/lsp.h", | |
33 "libspeex/lsp_tables_nb.c", | |
34 "libspeex/ltp.c", | |
35 "libspeex/ltp.h", | |
36 "libspeex/math_approx.h", | |
37 "libspeex/modes.c", | |
38 "libspeex/modes.h", | |
39 "libspeex/modes_wb.c", | |
40 "libspeex/nb_celp.c", | |
41 "libspeex/nb_celp.h", | |
42 "libspeex/os_support.h", | |
43 "libspeex/pseudofloat.h", | |
44 "libspeex/quant_lsp.c", | |
45 "libspeex/quant_lsp.h", | |
46 "libspeex/sb_celp.c", | |
47 "libspeex/sb_celp.h", | |
48 "libspeex/speex.c", | |
49 "libspeex/speex_callbacks.c", | |
50 "libspeex/speex_header.c", | |
51 "libspeex/stack_alloc.h", | |
52 "libspeex/stereo.c", | |
53 "libspeex/vbr.c", | |
54 "libspeex/vbr.h", | |
55 "libspeex/vq.c", | |
56 "libspeex/vq.h", | |
57 "libspeex/window.c", | |
58 "include/speex/speex.h", | |
59 "include/speex/speex_bits.h", | |
60 "include/speex/speex_buffer.h", | |
61 "include/speex/speex_callbacks.h", | |
62 "include/speex/speex_echo.h", | |
63 "include/speex/speex_header.h", | |
64 "include/speex/speex_jitter.h", | |
65 "include/speex/speex_preprocess.h", | |
66 "include/speex/speex_resampler.h", | |
67 "include/speex/speex_stereo.h", | |
68 "include/speex/speex_types.h", | |
69 ] | |
70 defines = [ | |
71 "FLOATING_POINT", | |
72 "EXPORT=", | |
73 "USE_ALLOCA", | |
74 "inline=__inline", | |
75 ] | |
76 include_dirs = [ | |
77 "libspeex", | |
78 ] | |
79 | |
80 configs -= [ "//build/config/compiler:chromium_code" ] | |
81 configs += [ "//build/config/compiler:no_chromium_code" ] | |
82 direct_dependent_configs = [ ":speex_config" ] | |
83 | |
84 if (is_win) { | |
85 cflags = [ | |
86 "/wd4244", # Possible loss of data in conversion. | |
87 "/wd4305", # Truncation in conversion. | |
88 ] | |
89 } | |
90 } | |
OLD | NEW |