Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: BUILD.gn

Issue 254083004: Add BUILD.gn for libflac. (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/flac.git@master
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 source_set("flac") {
6 sources = [
7 "include/FLAC/all.h",
8 "include/FLAC/assert.h",
9 "include/FLAC/callback.h",
10 "include/FLAC/export.h",
11 "include/FLAC/format.h",
12 "include/FLAC/metadata.h",
13 "include/FLAC/ordinals.h",
14 "include/FLAC/stream_decoder.h",
15 "include/FLAC/stream_encoder.h",
16 "include/share/alloc.h",
17 "src/libFLAC/alloc.c",
18 "src/libFLAC/bitmath.c",
19 "src/libFLAC/bitreader.c",
20 "src/libFLAC/bitwriter.c",
21 "src/libFLAC/cpu.c",
22 "src/libFLAC/crc.c",
23 "src/libFLAC/fixed.c",
24 "src/libFLAC/float.c",
25 "src/libFLAC/format.c",
26 "src/libFLAC/lpc.c",
27 "src/libFLAC/md5.c",
28 "src/libFLAC/memory.c",
29 "src/libFLAC/stream_decoder.c",
30 "src/libFLAC/stream_encoder.c",
31 "src/libFLAC/stream_encoder_framing.c",
32 "src/libFLAC/window.c",
33 "src/libFLAC/include/private/all.h",
34 "src/libFLAC/include/private/bitmath.h",
35 "src/libFLAC/include/private/bitreader.h",
36 "src/libFLAC/include/private/bitwriter.h",
37 "src/libFLAC/include/private/cpu.h",
38 "src/libFLAC/include/private/crc.h",
39 "src/libFLAC/include/private/fixed.h",
40 "src/libFLAC/include/private/float.h",
41 "src/libFLAC/include/private/format.h",
42 "src/libFLAC/include/private/lpc.h",
43 "src/libFLAC/include/private/md5.h",
44 "src/libFLAC/include/private/memory.h",
45 "src/libFLAC/include/private/metadata.h",
46 "src/libFLAC/include/private/stream_encoder_framing.h",
47 "src/libFLAC/include/private/window.h",
48 "src/libFLAC/include/protected/all.h",
49 "src/libFLAC/include/protected/stream_decoder.h",
50 "src/libFLAC/include/protected/stream_encoder.h",
51 ]
52
53 config("flac_config") {
brettw 2014/04/29 21:35:41 I'd put this at the top, usually they wouldn't be
awong 2014/04/29 21:43:52 Huh... I misunderstood the style guide. Moved. Sh
brettw 2014/04/29 21:47:10 Yeah, I'm thinking we should disallow nesting but
54 defines = [
55 "FLAC__NO_DLL",
56 ]
57 }
58
59 configs -= [ "//build/config/compiler:chromium_code" ]
60 configs += [
61 ":flac_config",
62 "//build/config/compiler:no_chromium_code",
63 ]
64 direct_dependent_configs = [ ":flac_config" ]
65
66 include_dirs = [
67 "include",
68 "src/libFLAC/include",
69 ]
70
71 defines = [
72 "FLAC__OVERFLOW_DETECT",
73 "VERSION=\"1.2.1\"",
74 ]
75
76 if (is_clang) {
77 # libflac converts between FLAC__StreamDecoderState and
78 # FLAC__StreamDecoderInitStatus a lot in stream_decoder.c.
79 cflags = [
80 "-Wno-conversion",
81 ]
82 }
83 }
84
85 # Local Variables:
brettw 2014/04/29 21:35:41 I don't think we want this in all of the build fil
awong 2014/04/29 21:43:52 It's in a bunch of the gyp files...happy to take i
86 # tab-width:2
87 # indent-tabs-mode:nil
88 # End:
89 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698