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', { |
(...skipping 10 matching lines...) Expand all Loading... |
21 'dec/io.c', | 21 'dec/io.c', |
22 'dec/layer.c', | 22 'dec/layer.c', |
23 'dec/quant.c', | 23 'dec/quant.c', |
24 'dec/tree.c', | 24 'dec/tree.c', |
25 'dec/vp8.c', | 25 'dec/vp8.c', |
26 'dec/vp8l.c', | 26 'dec/vp8l.c', |
27 'dec/webp.c', | 27 'dec/webp.c', |
28 ], | 28 ], |
29 }, | 29 }, |
30 { | 30 { |
| 31 'target_name': 'libwebp_demux', |
| 32 'type': 'static_library', |
| 33 'include_dirs': ['.'], |
| 34 'sources': [ |
| 35 'demux/demux.c', |
| 36 ], |
| 37 }, |
| 38 { |
31 'target_name': 'libwebp_dsp', | 39 'target_name': 'libwebp_dsp', |
32 'type': 'static_library', | 40 'type': 'static_library', |
33 'include_dirs': ['.'], | 41 'include_dirs': ['.'], |
34 'sources': [ | 42 'sources': [ |
35 'dsp/cpu.c', | 43 'dsp/cpu.c', |
36 'dsp/dec.c', | 44 'dsp/dec.c', |
37 'dsp/dec_sse2.c', | 45 'dsp/dec_sse2.c', |
38 'dsp/enc.c', | 46 'dsp/enc.c', |
39 'dsp/enc_sse2.c', | 47 'dsp/enc_sse2.c', |
40 'dsp/lossless.c', | 48 'dsp/lossless.c', |
(...skipping 15 matching lines...) Expand all Loading... |
56 ], | 64 ], |
57 }, | 65 }, |
58 { | 66 { |
59 'target_name': 'libwebp_dsp_neon', | 67 'target_name': 'libwebp_dsp_neon', |
60 'conditions': [ | 68 'conditions': [ |
61 ['armv7 == 1', { | 69 ['armv7 == 1', { |
62 'type': 'static_library', | 70 'type': 'static_library', |
63 'include_dirs': ['.'], | 71 'include_dirs': ['.'], |
64 'sources': [ | 72 'sources': [ |
65 'dsp/dec_neon.c', | 73 'dsp/dec_neon.c', |
| 74 'dsp/enc_neon.c', |
| 75 'dsp/upsampling_neon.c', |
66 ], | 76 ], |
67 # behavior similar dsp_neon.c.neon in an Android.mk | 77 # behavior similar to *.c.neon in an Android.mk |
68 'cflags!': [ '-mfpu=vfpv3-d16' ], | 78 'cflags!': [ '-mfpu=vfpv3-d16' ], |
69 'cflags': [ '-mfpu=neon' ], | 79 'cflags': [ '-mfpu=neon' ], |
70 },{ # "armv7 != 1" | 80 },{ # "armv7 != 1" |
71 'type': 'none', | 81 'type': 'none', |
72 }], | 82 }], |
73 ['order_profiling != 0', { | 83 ['order_profiling != 0', { |
74 'target_conditions' : [ | 84 'target_conditions' : [ |
75 ['_toolset=="target"', { | 85 ['_toolset=="target"', { |
76 'cflags!': [ '-finstrument-functions' ], | 86 'cflags!': [ '-finstrument-functions' ], |
77 }], | 87 }], |
(...skipping 12 matching lines...) Expand all Loading... |
90 'enc/config.c', | 100 'enc/config.c', |
91 'enc/cost.c', | 101 'enc/cost.c', |
92 'enc/filter.c', | 102 'enc/filter.c', |
93 'enc/frame.c', | 103 'enc/frame.c', |
94 'enc/histogram.c', | 104 'enc/histogram.c', |
95 'enc/iterator.c', | 105 'enc/iterator.c', |
96 'enc/layer.c', | 106 'enc/layer.c', |
97 'enc/picture.c', | 107 'enc/picture.c', |
98 'enc/quant.c', | 108 'enc/quant.c', |
99 'enc/syntax.c', | 109 'enc/syntax.c', |
| 110 'enc/token.c', |
100 'enc/tree.c', | 111 'enc/tree.c', |
101 'enc/vp8l.c', | 112 'enc/vp8l.c', |
102 'enc/webpenc.c', | 113 'enc/webpenc.c', |
103 ], | 114 ], |
104 }, | 115 }, |
105 { | 116 { |
106 'target_name': 'libwebp_utils', | 117 'target_name': 'libwebp_utils', |
107 'type': 'static_library', | 118 'type': 'static_library', |
108 'include_dirs': ['.'], | 119 'include_dirs': ['.'], |
109 'sources': [ | 120 'sources': [ |
110 'utils/bit_reader.c', | 121 'utils/bit_reader.c', |
111 'utils/bit_writer.c', | 122 'utils/bit_writer.c', |
112 'utils/color_cache.c', | 123 'utils/color_cache.c', |
113 'utils/filters.c', | 124 'utils/filters.c', |
114 'utils/huffman.c', | 125 'utils/huffman.c', |
115 'utils/huffman_encode.c', | 126 'utils/huffman_encode.c', |
116 'utils/quant_levels.c', | 127 'utils/quant_levels.c', |
| 128 'utils/quant_levels_dec.c', |
117 'utils/rescaler.c', | 129 'utils/rescaler.c', |
118 'utils/thread.c', | 130 'utils/thread.c', |
119 'utils/utils.c', | 131 'utils/utils.c', |
120 ], | 132 ], |
121 }, | 133 }, |
122 { | 134 { |
123 'target_name': 'libwebp', | 135 'target_name': 'libwebp', |
124 'type': 'none', | 136 'type': 'none', |
125 'dependencies' : [ | 137 'dependencies' : [ |
126 'libwebp_dec', | 138 'libwebp_dec', |
| 139 'libwebp_demux', |
127 'libwebp_dsp', | 140 'libwebp_dsp', |
128 'libwebp_dsp_neon', | 141 'libwebp_dsp_neon', |
129 'libwebp_enc', | 142 'libwebp_enc', |
130 'libwebp_utils', | 143 'libwebp_utils', |
131 ], | 144 ], |
132 'direct_dependent_settings': { | 145 'direct_dependent_settings': { |
133 'include_dirs': ['.'], | 146 'include_dirs': ['.'], |
134 }, | 147 }, |
135 'conditions': [ | 148 'conditions': [ |
136 ['OS!="win"', {'product_name': 'webp'}], | 149 ['OS!="win"', {'product_name': 'webp'}], |
(...skipping 13 matching lines...) Expand all Loading... |
150 'link_settings': { | 163 'link_settings': { |
151 'libraries': [ | 164 'libraries': [ |
152 '-lwebp', | 165 '-lwebp', |
153 ], | 166 ], |
154 }, | 167 }, |
155 } | 168 } |
156 ], | 169 ], |
157 }], | 170 }], |
158 ], | 171 ], |
159 } | 172 } |
OLD | NEW |