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("flac_config") { | |
6 defines = [ "FLAC__NO_DLL" ] | |
7 } | |
8 | |
9 static_library("flac") { | |
10 sources = [ | |
11 "include/FLAC/all.h", | |
12 "include/FLAC/assert.h", | |
13 "include/FLAC/callback.h", | |
14 "include/FLAC/export.h", | |
15 "include/FLAC/format.h", | |
16 "include/FLAC/metadata.h", | |
17 "include/FLAC/ordinals.h", | |
18 "include/FLAC/stream_decoder.h", | |
19 "include/FLAC/stream_encoder.h", | |
20 "include/share/alloc.h", | |
21 "src/libFLAC/alloc.c", | |
22 "src/libFLAC/bitmath.c", | |
23 "src/libFLAC/bitreader.c", | |
24 "src/libFLAC/bitwriter.c", | |
25 "src/libFLAC/cpu.c", | |
26 "src/libFLAC/crc.c", | |
27 "src/libFLAC/fixed.c", | |
28 "src/libFLAC/float.c", | |
29 "src/libFLAC/format.c", | |
30 "src/libFLAC/lpc.c", | |
31 "src/libFLAC/md5.c", | |
32 "src/libFLAC/memory.c", | |
33 "src/libFLAC/stream_decoder.c", | |
34 "src/libFLAC/stream_encoder.c", | |
35 "src/libFLAC/stream_encoder_framing.c", | |
36 "src/libFLAC/window.c", | |
37 "src/libFLAC/include/private/all.h", | |
38 "src/libFLAC/include/private/bitmath.h", | |
39 "src/libFLAC/include/private/bitreader.h", | |
40 "src/libFLAC/include/private/bitwriter.h", | |
41 "src/libFLAC/include/private/cpu.h", | |
42 "src/libFLAC/include/private/crc.h", | |
43 "src/libFLAC/include/private/fixed.h", | |
44 "src/libFLAC/include/private/float.h", | |
45 "src/libFLAC/include/private/format.h", | |
46 "src/libFLAC/include/private/lpc.h", | |
47 "src/libFLAC/include/private/md5.h", | |
48 "src/libFLAC/include/private/memory.h", | |
49 "src/libFLAC/include/private/metadata.h", | |
50 "src/libFLAC/include/private/stream_encoder_framing.h", | |
51 "src/libFLAC/include/private/window.h", | |
52 "src/libFLAC/include/protected/all.h", | |
53 "src/libFLAC/include/protected/stream_decoder.h", | |
54 "src/libFLAC/include/protected/stream_encoder.h", | |
55 ] | |
56 | |
57 defines = [ | |
58 "FLAC__OVERFLOW_DETECT", | |
59 "VERSION=\"1.2.1\"", | |
60 ] | |
61 | |
62 configs -= [ "//build/config/compiler:chromium_code" ] | |
63 configs += [ "//build/config/compiler:no_chromium_code" ] | |
64 public_configs = [ ":flac_config" ] | |
65 | |
66 include_dirs = [ | |
67 "include", | |
68 "src/libFLAC/include", | |
69 ] | |
70 | |
71 if (is_clang) { | |
72 # libflac converts between FLAC__StreamDecoderState and | |
73 # FLAC__StreamDecoderInitStatus a lot in stream_decoder.c. | |
74 cflags = [ "-Wno-conversion" ] | |
75 } | |
76 } | |
OLD | NEW |