OLD | NEW |
---|---|
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 'variables': { |
7 'use_system_libwebp%': 0, | 7 'use_system_libwebp%': 0, |
8 }, | 8 }, |
9 'conditions': [ | 9 'conditions': [ |
10 ['use_system_libwebp==0', { | 10 ['use_system_libwebp==0', { |
11 'targets': [ | 11 'targets': [ |
12 { | 12 { |
13 'target_name': 'libwebp_enc', | |
14 'type': 'static_library', | |
15 'include_dirs': ['.'], | |
16 'sources': [ | |
17 'enc/alpha.c', | |
18 'enc/analysis.c', | |
19 'enc/config.c', | |
20 'enc/cost.c', | |
21 'enc/filter.c', | |
22 'enc/frame.c', | |
23 'enc/iterator.c', | |
24 'enc/layer.c', | |
25 'enc/picture.c', | |
26 'enc/quant.c', | |
27 'enc/syntax.c', | |
28 'enc/tree.c', | |
29 'enc/webpenc.c', | |
30 ], | |
31 }, | |
32 { | |
33 'target_name': 'libwebp_dec', | 13 'target_name': 'libwebp_dec', |
34 'type': 'static_library', | 14 'type': 'static_library', |
35 'include_dirs': ['.'], | 15 'include_dirs': ['.'], |
36 'sources': [ | 16 'sources': [ |
37 'dec/alpha.c', | 17 'dec/alpha.c', |
38 'dec/buffer.c', | 18 'dec/buffer.c', |
39 'dec/frame.c', | 19 'dec/frame.c', |
40 'dec/idec.c', | 20 'dec/idec.c', |
41 'dec/io.c', | 21 'dec/io.c', |
42 'dec/layer.c', | 22 'dec/layer.c', |
43 'dec/quant.c', | 23 'dec/quant.c', |
44 'dec/tree.c', | 24 'dec/tree.c', |
45 'dec/vp8.c', | 25 'dec/vp8.c', |
26 'dec/vp8l.c', | |
46 'dec/webp.c', | 27 'dec/webp.c', |
47 ], | 28 ], |
48 }, | 29 }, |
49 { | 30 { |
50 'target_name': 'libwebp_dsp', | 31 'target_name': 'libwebp_dsp', |
51 'type': 'static_library', | 32 'type': 'static_library', |
52 'include_dirs': ['.'], | 33 'include_dirs': ['.'], |
53 'sources': [ | 34 'sources': [ |
54 'dsp/cpu.c', | 35 'dsp/cpu.c', |
55 'dsp/dec.c', | 36 'dsp/dec.c', |
56 'dsp/dec_neon.c', | |
57 'dsp/dec_sse2.c', | 37 'dsp/dec_sse2.c', |
58 'dsp/enc.c', | 38 'dsp/enc.c', |
59 'dsp/enc_sse2.c', | 39 'dsp/enc_sse2.c', |
40 'dsp/lossless.c', | |
60 'dsp/upsampling.c', | 41 'dsp/upsampling.c', |
61 'dsp/upsampling_sse2.c', | 42 'dsp/upsampling_sse2.c', |
62 'dsp/yuv.c', | 43 'dsp/yuv.c', |
63 ], | 44 ], |
64 'conditions': [ | 45 'conditions': [ |
46 ['OS == "android"', { | |
47 'include_dirs': ['./dsp'], | |
48 'sources': [ | |
49 'dsp/cpu-features.c', | |
50 ], | |
51 }], | |
65 ['order_profiling != 0', { | 52 ['order_profiling != 0', { |
66 'target_conditions' : [ | 53 'target_conditions' : [ |
67 ['_toolset=="target"', { | 54 ['_toolset=="target"', { |
55 'cflags!': [ '-finstrument-functions' ], | |
56 }], | |
57 ], | |
58 }], | |
59 ], | |
60 }, | |
61 { | |
62 'target_name': 'libwebp_dsp_neon', | |
Nico
2012/08/10 20:01:54
This causes the following build warning in chrome/
| |
63 'type': 'static_library', | |
64 'include_dirs': ['.'], | |
65 'sources': [ | |
66 'dsp/dec_neon.c', | |
67 ], | |
68 'conditions': [ | |
69 ['armv7 == 1', { | |
70 # behavior similar dsp_neon.c.neon in an Android.mk | |
71 'cflags!': [ '-mfpu=vfpv3-d16' ], | |
72 'cflags': [ '-mfpu=neon' ], | |
73 }], | |
74 ['order_profiling != 0', { | |
75 'target_conditions' : [ | |
76 ['_toolset=="target"', { | |
68 'cflags!': [ '-finstrument-functions' ], | 77 'cflags!': [ '-finstrument-functions' ], |
69 }], | 78 }], |
70 ], | 79 ], |
71 }], | 80 }], |
72 ], | 81 ], |
73 }, | 82 }, |
74 { | 83 { |
84 'target_name': 'libwebp_enc', | |
85 'type': 'static_library', | |
86 'include_dirs': ['.'], | |
87 'sources': [ | |
88 'enc/alpha.c', | |
89 'enc/analysis.c', | |
90 'enc/backward_references.c', | |
91 'enc/config.c', | |
92 'enc/cost.c', | |
93 'enc/filter.c', | |
94 'enc/frame.c', | |
95 'enc/histogram.c', | |
96 'enc/iterator.c', | |
97 'enc/layer.c', | |
98 'enc/picture.c', | |
99 'enc/quant.c', | |
100 'enc/syntax.c', | |
101 'enc/tree.c', | |
102 'enc/vp8l.c', | |
103 'enc/webpenc.c', | |
104 ], | |
105 }, | |
106 { | |
75 'target_name': 'libwebp_utils', | 107 'target_name': 'libwebp_utils', |
76 'type': 'static_library', | 108 'type': 'static_library', |
77 'include_dirs': ['.'], | 109 'include_dirs': ['.'], |
78 'sources': [ | 110 'sources': [ |
79 'utils/bit_reader.c', | 111 'utils/bit_reader.c', |
80 'utils/bit_writer.c', | 112 'utils/bit_writer.c', |
113 'utils/color_cache.c', | |
114 'utils/filters.c', | |
115 'utils/huffman.c', | |
116 'utils/huffman_encode.c', | |
117 'utils/quant_levels.c', | |
118 'utils/rescaler.c', | |
81 'utils/thread.c', | 119 'utils/thread.c', |
120 'utils/utils.c', | |
82 ], | 121 ], |
83 }, | 122 }, |
84 { | 123 { |
85 'target_name': 'libwebp', | 124 'target_name': 'libwebp', |
86 'type': 'none', | 125 'type': 'none', |
87 'dependencies' : [ | 126 'dependencies' : [ |
88 'libwebp_enc', | |
89 'libwebp_dec', | 127 'libwebp_dec', |
90 'libwebp_dsp', | 128 'libwebp_dsp', |
129 'libwebp_dsp_neon', | |
130 'libwebp_enc', | |
91 'libwebp_utils', | 131 'libwebp_utils', |
92 ], | 132 ], |
93 'direct_dependent_settings': { | 133 'direct_dependent_settings': { |
94 'include_dirs': ['.'], | 134 'include_dirs': ['.'], |
95 }, | 135 }, |
96 'conditions': [ | 136 'conditions': [ |
97 ['OS!="win"', {'product_name': 'webp'}], | 137 ['OS!="win"', {'product_name': 'webp'}], |
98 ], | 138 ], |
99 }, | 139 }, |
100 ], | 140 ], |
(...skipping 10 matching lines...) Expand all Loading... | |
111 'link_settings': { | 151 'link_settings': { |
112 'libraries': [ | 152 'libraries': [ |
113 '-lwebp', | 153 '-lwebp', |
114 ], | 154 ], |
115 }, | 155 }, |
116 } | 156 } |
117 ], | 157 ], |
118 }], | 158 }], |
119 ], | 159 ], |
120 } | 160 } |
OLD | NEW |