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

Side by Side Diff: flac.gyp

Issue 14878006: Remove use_system_flac logic from the mainline gyp file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/flac/
Patch Set: Created 7 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 | Annotate | Revision Log
« 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
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'variables': { 6 'targets': [
7 'use_system_flac%': 0, 7 {
8 }, 8 'target_name': 'libflac',
9 'conditions': [ 9 'product_name': 'flac',
10 ['use_system_flac==0', { 10 'type': 'static_library',
11 'targets': [ 11 'sources': [
12 { 12 'include/FLAC/all.h',
13 'target_name': 'libflac', 13 'include/FLAC/assert.h',
14 'product_name': 'flac', 14 'include/FLAC/callback.h',
15 'type': 'static_library', 15 'include/FLAC/export.h',
16 'sources': [ 16 'include/FLAC/format.h',
17 'include/FLAC/all.h', 17 'include/FLAC/metadata.h',
18 'include/FLAC/assert.h', 18 'include/FLAC/ordinals.h',
19 'include/FLAC/callback.h', 19 'include/FLAC/stream_decoder.h',
20 'include/FLAC/export.h', 20 'include/FLAC/stream_encoder.h',
21 'include/FLAC/format.h', 21 'include/share/alloc.h',
22 'include/FLAC/metadata.h', 22 'src/libFLAC/alloc.c',
23 'include/FLAC/ordinals.h', 23 'src/libFLAC/bitmath.c',
24 'include/FLAC/stream_decoder.h', 24 'src/libFLAC/bitreader.c',
25 'include/FLAC/stream_encoder.h', 25 'src/libFLAC/bitwriter.c',
26 'include/share/alloc.h', 26 'src/libFLAC/cpu.c',
27 'src/libFLAC/alloc.c', 27 'src/libFLAC/crc.c',
28 'src/libFLAC/bitmath.c', 28 'src/libFLAC/fixed.c',
29 'src/libFLAC/bitreader.c', 29 'src/libFLAC/float.c',
30 'src/libFLAC/bitwriter.c', 30 'src/libFLAC/format.c',
31 'src/libFLAC/cpu.c', 31 'src/libFLAC/lpc.c',
32 'src/libFLAC/crc.c', 32 'src/libFLAC/md5.c',
33 'src/libFLAC/fixed.c', 33 'src/libFLAC/memory.c',
34 'src/libFLAC/float.c', 34 'src/libFLAC/stream_decoder.c',
35 'src/libFLAC/format.c', 35 'src/libFLAC/stream_encoder.c',
36 'src/libFLAC/lpc.c', 36 'src/libFLAC/stream_encoder_framing.c',
37 'src/libFLAC/md5.c', 37 'src/libFLAC/window.c',
38 'src/libFLAC/memory.c', 38 'src/libFLAC/include/private/all.h',
39 'src/libFLAC/stream_decoder.c', 39 'src/libFLAC/include/private/bitmath.h',
40 'src/libFLAC/stream_encoder.c', 40 'src/libFLAC/include/private/bitreader.h',
41 'src/libFLAC/stream_encoder_framing.c', 41 'src/libFLAC/include/private/bitwriter.h',
42 'src/libFLAC/window.c', 42 'src/libFLAC/include/private/cpu.h',
43 'src/libFLAC/include/private/all.h', 43 'src/libFLAC/include/private/crc.h',
44 'src/libFLAC/include/private/bitmath.h', 44 'src/libFLAC/include/private/fixed.h',
45 'src/libFLAC/include/private/bitreader.h', 45 'src/libFLAC/include/private/float.h',
46 'src/libFLAC/include/private/bitwriter.h', 46 'src/libFLAC/include/private/format.h',
47 'src/libFLAC/include/private/cpu.h', 47 'src/libFLAC/include/private/lpc.h',
48 'src/libFLAC/include/private/crc.h', 48 'src/libFLAC/include/private/md5.h',
49 'src/libFLAC/include/private/fixed.h', 49 'src/libFLAC/include/private/memory.h',
50 'src/libFLAC/include/private/float.h', 50 'src/libFLAC/include/private/metadata.h',
51 'src/libFLAC/include/private/format.h', 51 'src/libFLAC/include/private/stream_encoder_framing.h',
52 'src/libFLAC/include/private/lpc.h', 52 'src/libFLAC/include/private/window.h',
53 'src/libFLAC/include/private/md5.h', 53 'src/libFLAC/include/protected/all.h',
54 'src/libFLAC/include/private/memory.h', 54 'src/libFLAC/include/protected/stream_decoder.h',
55 'src/libFLAC/include/private/metadata.h', 55 'src/libFLAC/include/protected/stream_encoder.h',
56 'src/libFLAC/include/private/stream_encoder_framing.h', 56 ],
57 'src/libFLAC/include/private/window.h', 57 'defines': [
58 'src/libFLAC/include/protected/all.h', 58 'FLAC__NO_DLL',
59 'src/libFLAC/include/protected/stream_decoder.h', 59 'FLAC__OVERFLOW_DETECT',
60 'src/libFLAC/include/protected/stream_encoder.h', 60 'VERSION="1.2.1"',
61 ], 61 ],
62 'defines': [ 62 'include_dirs': [
63 'FLAC__NO_DLL', 63 'include',
64 'FLAC__OVERFLOW_DETECT', 64 'src/libFLAC/include',
65 'VERSION="1.2.1"', 65 ],
66 ], 66 'direct_dependent_settings': {
67 'include_dirs': [ 67 'defines': [
68 'include', 68 'FLAC__NO_DLL',
69 'src/libFLAC/include', 69 ],
70 ], 70 },
71 'direct_dependent_settings': { 71 'conditions': [
72 'defines': [ 72 ['clang == 1', {
73 'FLAC__NO_DLL', 73 'xcode_settings': {
74 'WARNING_CFLAGS': [
75 # libflac converts between FLAC__StreamDecoderState and
76 # FLAC__StreamDecoderInitStatus a lot in stream_decoder.c.
77 '-Wno-conversion',
74 ], 78 ],
75 }, 79 },
76 'conditions': [ 80 'cflags': [
77 ['clang == 1', { 81 '-Wno-conversion',
78 'xcode_settings': {
79 'WARNING_CFLAGS': [
80 # libflac converts between FLAC__StreamDecoderState and
81 # FLAC__StreamDecoderInitStatus a lot in stream_decoder.c.
82 '-Wno-conversion',
83 ],
84 },
85 'cflags': [
86 '-Wno-conversion',
87 ],
88 }],
89 ], 82 ],
90 }, 83 }],
91 ], 84 ],
92 }, { # use_system_speex != 0 85 },
93 'targets': [
94 {
95 'target_name': 'libflac',
96 'type': 'none',
97 'variables': {
98 'headers_root_path': 'include',
99 'header_filenames': [
100 'FLAC/callback.h',
101 'FLAC/metadata.h',
102 'FLAC/assert.h',
103 'FLAC/export.h',
104 'FLAC/format.h',
105 'FLAC/stream_decoder.h',
106 'FLAC/stream_encoder.h',
107 'FLAC/ordinals.h',
108 'FLAC/all.h',
109 ],
110 },
111 'includes': [
112 '../../build/shim_headers.gypi',
113 ],
114 'link_settings': {
115 'ldflags': [
116 '<!@(pkg-config --libs-only-L --libs-only-other flac)',
117 ],
118 'libraries': [
119 '<!@(pkg-config --libs-only-l flac)',
120 ],
121 },
122 },
123 ],
124 }],
125 ], 86 ],
126 } 87 }
127 88
128 # Local Variables: 89 # Local Variables:
129 # tab-width:2 90 # tab-width:2
130 # indent-tabs-mode:nil 91 # indent-tabs-mode:nil
131 # End: 92 # End:
132 # vim: set expandtab tabstop=2 shiftwidth=2: 93 # 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