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

Side by Side Diff: third_party/libwebp/BUILD.gn

Issue 421003002: libwebp: update to 0.4.1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 0.4.1-final Created 6 years, 4 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 | third_party/libwebp/README.chromium » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 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 config("libwebp_config") { 5 config("libwebp_config") {
6 include_dirs = [ "." ] 6 include_dirs = [ "." ]
7 } 7 }
8 8
9 source_set("libwebp_dec") { 9 source_set("libwebp_dec") {
10 sources = [ 10 sources = [
11 "dec/alpha.c", 11 "dec/alpha.c",
12 "dec/buffer.c", 12 "dec/buffer.c",
13 "dec/frame.c", 13 "dec/frame.c",
14 "dec/idec.c", 14 "dec/idec.c",
15 "dec/io.c", 15 "dec/io.c",
16 "dec/layer.c",
17 "dec/quant.c", 16 "dec/quant.c",
18 "dec/tree.c", 17 "dec/tree.c",
19 "dec/vp8.c", 18 "dec/vp8.c",
20 "dec/vp8l.c", 19 "dec/vp8l.c",
21 "dec/webp.c", 20 "dec/webp.c",
22 ] 21 ]
23 22
24 configs -= [ "//build/config/compiler:chromium_code" ] 23 configs -= [ "//build/config/compiler:chromium_code" ]
25 configs += [ "//build/config/compiler:no_chromium_code" ] 24 configs += [ "//build/config/compiler:no_chromium_code" ]
26 25
(...skipping 13 matching lines...) Expand all
40 "demux/demux.c", 39 "demux/demux.c",
41 ] 40 ]
42 all_dependent_configs = [ 41 all_dependent_configs = [
43 ":libwebp_config" 42 ":libwebp_config"
44 ] 43 ]
45 } 44 }
46 45
47 46
48 source_set("libwebp_dsp") { 47 source_set("libwebp_dsp") {
49 sources = [ 48 sources = [
49 "dsp/alpha_processing.c",
50 "dsp/cpu.c", 50 "dsp/cpu.c",
51 "dsp/dec.c", 51 "dsp/dec.c",
52 "dsp/dec_clip_tables.c",
53 "dsp/dec_mips32.c",
52 "dsp/dec_sse2.c", 54 "dsp/dec_sse2.c",
53 "dsp/enc.c", 55 "dsp/enc.c",
56 "dsp/enc_avx2.c",
57 "dsp/enc_mips32.c",
54 "dsp/enc_sse2.c", 58 "dsp/enc_sse2.c",
55 "dsp/lossless.c", 59 "dsp/lossless.c",
60 "dsp/lossless_mips32.c",
61 "dsp/lossless_sse2.c",
56 "dsp/upsampling.c", 62 "dsp/upsampling.c",
57 "dsp/upsampling_sse2.c", 63 "dsp/upsampling_sse2.c",
58 "dsp/yuv.c", 64 "dsp/yuv.c",
65 "dsp/yuv_mips32.c",
66 "dsp/yuv_sse2.c",
59 ] 67 ]
60 configs -= [ "//build/config/compiler:chromium_code" ] 68 configs -= [ "//build/config/compiler:chromium_code" ]
61 configs += [ "//build/config/compiler:no_chromium_code" ] 69 configs += [ "//build/config/compiler:no_chromium_code" ]
62 70
63 all_dependent_configs = [ 71 all_dependent_configs = [
64 ":libwebp_config" 72 ":libwebp_config"
65 ] 73 ]
66 deps = [] 74 deps = []
67 if (is_android) { 75 if (is_android) {
68 deps += [ "//third_party/android_tools:cpu_features" ] 76 deps += [ "//third_party/android_tools:cpu_features" ]
69 } 77 }
70 # TODO(GYP): 78 # TODO(GYP):
71 # 'conditions': [ 79 # 'conditions': [
72 # ['order_profiling != 0', { 80 # ['order_profiling != 0', {
73 # 'target_conditions' : [ 81 # 'target_conditions' : [
74 # ['_toolset=="target"', { 82 # ['_toolset=="target"', {
75 # 'cflags!': [ '-finstrument-functions' ], 83 # 'cflags!': [ '-finstrument-functions' ],
76 # }], 84 # }],
77 # ], 85 # ],
78 # }], 86 # }],
79 # ], 87 # ],
80 } 88 }
81 89
82 # TODO(GYP): 90 # TODO(GYP):
83 # 'variables': { 91 # 'variables': {
84 # 'neon_sources': [ 92 # 'neon_sources': [
85 # 'dsp/dec_neon.c', 93 # "dsp/dec_neon.c",
86 # 'dsp/enc_neon.c', 94 # "dsp/enc_neon.c",
87 # 'dsp/upsampling_neon.c', 95 # "dsp/lossless_neon.c",
96 # "dsp/upsampling_neon.c",
88 # ] 97 # ]
89 # }, 98 # },
90 # { 99 # {
91 # 'target_name': 'libwebp_dsp_neon', 100 # 'target_name': 'libwebp_dsp_neon',
92 # 'conditions': [ 101 # 'conditions': [
93 # ['target_arch == "arm" and arm_version >= 7 and (arm_neon == 1 or arm_n eon_optional == 1)', { 102 # ['target_arch == "arm" and arm_version >= 7 and (arm_neon == 1 or arm_n eon_optional == 1)', {
94 # 'type': 'static_library', 103 # 'type': 'static_library',
95 # 'include_dirs': ['.'], 104 # 'include_dirs': ['.'],
96 # 'sources': [ 105 # 'sources': [
97 # '<@(neon_sources)' 106 # '<@(neon_sources)'
98 # ], 107 # ],
99 # # behavior similar to *.c.neon in an Android.mk 108 # # behavior similar to *.c.neon in an Android.mk
100 # 'cflags!': [ '-mfpu=vfpv3-d16' ], 109 # 'cflags!': [ '-mfpu=vfpv3-d16' ],
101 # 'cflags': [ '-mfpu=neon' ], 110 # 'cflags': [ '-mfpu=neon' ],
102 # },{ 111 # },{
103 # 'conditions': [ 112 # 'conditions': [
104 # ['target_arch == "arm64"', { 113 # ['target_arch == "arm64"', {
105 # 'type': 'static_library', 114 # 'type': 'static_library',
106 # 'include_dirs': ['.'], 115 # 'include_dirs': ['.'],
107 # 'sources': [ 116 # 'sources': [
108 # '<@(neon_sources)' 117 # '<@(neon_sources)'
109 # ], 118 # ],
119 # # avoid an ICE with gcc-4.9: b/15574841
120 # 'cflags': [ '-frename-registers' ],
110 # },{ # "target_arch != "arm|arm64" or arm_version < 7" 121 # },{ # "target_arch != "arm|arm64" or arm_version < 7"
111 # 'type': 'none', 122 # 'type': 'none',
112 # }], 123 # }],
113 # ], 124 # ],
114 # }], 125 # }],
115 # ['order_profiling != 0', { 126 # ['order_profiling != 0', {
116 # 'target_conditions' : [ 127 # 'target_conditions' : [
117 # ['_toolset=="target"', { 128 # ['_toolset=="target"', {
118 # 'cflags!': [ '-finstrument-functions' ], 129 # 'cflags!': [ '-finstrument-functions' ],
119 # }], 130 # }],
120 # ], 131 # ],
121 # }], 132 # }],
122 # ], 133 # ],
123 # } 134 # }
124 135
125 source_set("libwebp_enc") { 136 source_set("libwebp_enc") {
126 sources = [ 137 sources = [
127 "enc/alpha.c", 138 "enc/alpha.c",
128 "enc/analysis.c", 139 "enc/analysis.c",
129 "enc/backward_references.c", 140 "enc/backward_references.c",
130 "enc/config.c", 141 "enc/config.c",
131 "enc/cost.c", 142 "enc/cost.c",
132 "enc/filter.c", 143 "enc/filter.c",
133 "enc/frame.c", 144 "enc/frame.c",
134 "enc/histogram.c", 145 "enc/histogram.c",
135 "enc/iterator.c", 146 "enc/iterator.c",
136 "enc/layer.c",
137 "enc/picture.c", 147 "enc/picture.c",
148 "enc/picture_csp.c",
149 "enc/picture_psnr.c",
150 "enc/picture_rescale.c",
151 "enc/picture_tools.c",
138 "enc/quant.c", 152 "enc/quant.c",
139 "enc/syntax.c", 153 "enc/syntax.c",
140 "enc/token.c", 154 "enc/token.c",
141 "enc/tree.c", 155 "enc/tree.c",
142 "enc/vp8l.c", 156 "enc/vp8l.c",
143 "enc/webpenc.c", 157 "enc/webpenc.c",
144 ] 158 ]
145 configs -= [ "//build/config/compiler:chromium_code" ] 159 configs -= [ "//build/config/compiler:chromium_code" ]
146 configs += [ "//build/config/compiler:no_chromium_code" ] 160 configs += [ "//build/config/compiler:no_chromium_code" ]
147 161
148 all_dependent_configs = [ 162 all_dependent_configs = [
149 ":libwebp_config" 163 ":libwebp_config"
150 ] 164 ]
151 } 165 }
152 166
153 source_set("libwebp_utils") { 167 source_set("libwebp_utils") {
154 sources = [ 168 sources = [
155 "utils/alpha_processing.c",
156 "utils/bit_reader.c", 169 "utils/bit_reader.c",
157 "utils/bit_writer.c", 170 "utils/bit_writer.c",
158 "utils/color_cache.c", 171 "utils/color_cache.c",
159 "utils/filters.c", 172 "utils/filters.c",
160 "utils/huffman.c", 173 "utils/huffman.c",
161 "utils/huffman_encode.c", 174 "utils/huffman_encode.c",
162 "utils/quant_levels.c", 175 "utils/quant_levels.c",
163 "utils/quant_levels_dec.c", 176 "utils/quant_levels_dec.c",
164 "utils/random.c", 177 "utils/random.c",
165 "utils/rescaler.c", 178 "utils/rescaler.c",
(...skipping 15 matching lines...) Expand all
181 ":libwebp_dsp", 194 ":libwebp_dsp",
182 # TODO(GYP): 195 # TODO(GYP):
183 # ":libwebp_dsp_neon", 196 # ":libwebp_dsp_neon",
184 ":libwebp_enc", 197 ":libwebp_enc",
185 ":libwebp_utils", 198 ":libwebp_utils",
186 ] 199 ]
187 direct_dependent_configs = [ 200 direct_dependent_configs = [
188 ":libwebp_config" 201 ":libwebp_config"
189 ] 202 ]
190 } 203 }
OLDNEW
« no previous file with comments | « no previous file | third_party/libwebp/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698