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