Fix missing .Pass() on returning scoped_ptr<SdchManager::DictionarySet>
[chromium-blink-merge.git] / third_party / speex / BUILD.gn
blob1b5dc9a3cdd021ec02ed808dbd129f30c84efd6b
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     "libspeex/arch.h",
12     "libspeex/bits.c",
13     "libspeex/cb_search.c",
14     "libspeex/cb_search.h",
15     "libspeex/exc_10_16_table.c",
16     "libspeex/exc_10_32_table.c",
17     "libspeex/exc_20_32_table.c",
18     "libspeex/exc_5_256_table.c",
19     "libspeex/exc_5_64_table.c",
20     "libspeex/exc_8_128_table.c",
21     "libspeex/filters.c",
22     "libspeex/filters.h",
23     "libspeex/gain_table.c",
24     "libspeex/gain_table_lbr.c",
25     "libspeex/hexc_10_32_table.c",
26     "libspeex/hexc_table.c",
27     "libspeex/high_lsp_tables.c",
28     "libspeex/lpc.c",
29     "libspeex/lpc.h",
30     "libspeex/lsp.c",
31     "libspeex/lsp.h",
32     "libspeex/lsp_tables_nb.c",
33     "libspeex/ltp.c",
34     "libspeex/ltp.h",
35     "libspeex/math_approx.h",
36     "libspeex/modes.c",
37     "libspeex/modes.h",
38     "libspeex/modes_wb.c",
39     "libspeex/nb_celp.c",
40     "libspeex/nb_celp.h",
41     "libspeex/os_support.h",
42     "libspeex/pseudofloat.h",
43     "libspeex/quant_lsp.c",
44     "libspeex/quant_lsp.h",
45     "libspeex/sb_celp.c",
46     "libspeex/sb_celp.h",
47     "libspeex/speex.c",
48     "libspeex/speex_callbacks.c",
49     "libspeex/speex_header.c",
50     "libspeex/stack_alloc.h",
51     "libspeex/stereo.c",
52     "libspeex/vbr.c",
53     "libspeex/vbr.h",
54     "libspeex/vq.c",
55     "libspeex/vq.h",
56     "libspeex/window.c",
57     "include/speex/speex.h",
58     "include/speex/speex_bits.h",
59     "include/speex/speex_buffer.h",
60     "include/speex/speex_callbacks.h",
61     "include/speex/speex_echo.h",
62     "include/speex/speex_header.h",
63     "include/speex/speex_jitter.h",
64     "include/speex/speex_preprocess.h",
65     "include/speex/speex_resampler.h",
66     "include/speex/speex_stereo.h",
67     "include/speex/speex_types.h",
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   }