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

Side by Side Diff: gyp/libjpeg-turbo.gyp

Issue 1213093003: Revert of Switch SkJpegCode to libjpeg-turbo (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 5 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 | « gyp/codec.gyp ('k') | gyp/yasm.gyp » ('j') | 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 (c) 2012 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 {
6 'variables': {
7 'shared_generated_dir': '<(SHARED_INTERMEDIATE_DIR)/third_party/externals/li bjpeg-turbo',
8 'conditions': [
9 [ 'skia_os == "win"', {
10 'object_suffix': 'obj',
11 }, {
12 'object_suffix': 'o',
13 }],
14 ],
15 },
16 'targets': [
17 {
18 'target_name': 'libjpeg-turbo',
19 'type': 'static_library',
20 'include_dirs': [
21 '../third_party/externals/libjpeg-turbo/',
22 ],
23 'defines': [
24 'WITH_SIMD',
25 'MOTION_JPEG_SUPPORTED',
26 'NO_GETENV',
27 ],
28 'cflags': [
29 '-w', # supresses warnings
30 ],
31 'msvs_settings': {
32 'VCCLCompilerTool': {
33 'AdditionalOptions': [
34 '/w',
35 ],
36 },
37 },
38 'xcode_settings': {
39 'WARNING_CFLAGS': [
40 '-w',
41 ],
42 },
43 'sources': [
44 '../third_party/externals/libjpeg-turbo/jaricom.c',
45 '../third_party/externals/libjpeg-turbo/jcapimin.c',
46 '../third_party/externals/libjpeg-turbo/jcapistd.c',
47 '../third_party/externals/libjpeg-turbo/jcarith.c',
48 '../third_party/externals/libjpeg-turbo/jccoefct.c',
49 '../third_party/externals/libjpeg-turbo/jccolor.c',
50 '../third_party/externals/libjpeg-turbo/jcdctmgr.c',
51 '../third_party/externals/libjpeg-turbo/jchuff.c',
52 '../third_party/externals/libjpeg-turbo/jchuff.h',
53 '../third_party/externals/libjpeg-turbo/jcinit.c',
54 '../third_party/externals/libjpeg-turbo/jcmainct.c',
55 '../third_party/externals/libjpeg-turbo/jcmarker.c',
56 '../third_party/externals/libjpeg-turbo/jcmaster.c',
57 '../third_party/externals/libjpeg-turbo/jcomapi.c',
58 '../third_party/externals/libjpeg-turbo/jconfig.h',
59 '../third_party/externals/libjpeg-turbo/jconfigint.h',
60 '../third_party/externals/libjpeg-turbo/jcparam.c',
61 '../third_party/externals/libjpeg-turbo/jcphuff.c',
62 '../third_party/externals/libjpeg-turbo/jcprepct.c',
63 '../third_party/externals/libjpeg-turbo/jcsample.c',
64 '../third_party/externals/libjpeg-turbo/jdapimin.c',
65 '../third_party/externals/libjpeg-turbo/jdapistd.c',
66 '../third_party/externals/libjpeg-turbo/jdarith.c',
67 '../third_party/externals/libjpeg-turbo/jdcoefct.c',
68 '../third_party/externals/libjpeg-turbo/jdcolor.c',
69 '../third_party/externals/libjpeg-turbo/jdct.h',
70 '../third_party/externals/libjpeg-turbo/jddctmgr.c',
71 '../third_party/externals/libjpeg-turbo/jdhuff.c',
72 '../third_party/externals/libjpeg-turbo/jdhuff.h',
73 '../third_party/externals/libjpeg-turbo/jdinput.c',
74 '../third_party/externals/libjpeg-turbo/jdmainct.c',
75 '../third_party/externals/libjpeg-turbo/jdmarker.c',
76 '../third_party/externals/libjpeg-turbo/jdmaster.c',
77 '../third_party/externals/libjpeg-turbo/jdmerge.c',
78 '../third_party/externals/libjpeg-turbo/jdphuff.c',
79 '../third_party/externals/libjpeg-turbo/jdpostct.c',
80 '../third_party/externals/libjpeg-turbo/jdsample.c',
81 '../third_party/externals/libjpeg-turbo/jerror.c',
82 '../third_party/externals/libjpeg-turbo/jerror.h',
83 '../third_party/externals/libjpeg-turbo/jfdctflt.c',
84 '../third_party/externals/libjpeg-turbo/jfdctfst.c',
85 '../third_party/externals/libjpeg-turbo/jfdctint.c',
86 '../third_party/externals/libjpeg-turbo/jidctflt.c',
87 '../third_party/externals/libjpeg-turbo/jidctfst.c',
88 '../third_party/externals/libjpeg-turbo/jidctint.c',
89 '../third_party/externals/libjpeg-turbo/jidctred.c',
90 '../third_party/externals/libjpeg-turbo/jinclude.h',
91 '../third_party/externals/libjpeg-turbo/jmemmgr.c',
92 '../third_party/externals/libjpeg-turbo/jmemnobs.c',
93 '../third_party/externals/libjpeg-turbo/jmemsys.h',
94 '../third_party/externals/libjpeg-turbo/jmorecfg.h',
95 '../third_party/externals/libjpeg-turbo/jpegint.h',
96 '../third_party/externals/libjpeg-turbo/jpeglib.h',
97 '../third_party/externals/libjpeg-turbo/jpeglibmangler.h',
98 '../third_party/externals/libjpeg-turbo/jquant1.c',
99 '../third_party/externals/libjpeg-turbo/jquant2.c',
100 '../third_party/externals/libjpeg-turbo/jutils.c',
101 '../third_party/externals/libjpeg-turbo/jversion.h',
102 ],
103 'direct_dependent_settings': {
104 'include_dirs': [
105 '../third_party/externals/libjpeg-turbo/',
106 ],
107 },
108 'msvs_disabled_warnings': [4018, 4101],
109 # VS2010 does not correctly incrementally link obj files generated
110 # from asm files. This flag disables UseLibraryDependencyInputs to
111 # avoid this problem.
112 'msvs_2010_disable_uldi_when_referenced': 1,
113
114 # Add target-specific source files.
115 'conditions': [
116 [ 'skia_arch_type == "x86"', {
117 'sources': [
118 '../third_party/externals/libjpeg-turbo/simd/jsimd_i386.c',
119 '../third_party/externals/libjpeg-turbo/simd/jccolor-mmx.asm',
120 '../third_party/externals/libjpeg-turbo/simd/jccolor-sse2.asm',
121 '../third_party/externals/libjpeg-turbo/simd/jcgray-mmx.asm',
122 '../third_party/externals/libjpeg-turbo/simd/jcgray-sse2.asm',
123 '../third_party/externals/libjpeg-turbo/simd/jcsample-mmx.asm',
124 '../third_party/externals/libjpeg-turbo/simd/jcsample-sse2.asm',
125 '../third_party/externals/libjpeg-turbo/simd/jdcolor-mmx.asm',
126 '../third_party/externals/libjpeg-turbo/simd/jdcolor-sse2.asm',
127 '../third_party/externals/libjpeg-turbo/simd/jdmerge-mmx.asm',
128 '../third_party/externals/libjpeg-turbo/simd/jdmerge-sse2.asm',
129 '../third_party/externals/libjpeg-turbo/simd/jdsample-mmx.asm',
130 '../third_party/externals/libjpeg-turbo/simd/jdsample-sse2.asm',
131 '../third_party/externals/libjpeg-turbo/simd/jfdctflt-3dn.asm',
132 '../third_party/externals/libjpeg-turbo/simd/jfdctflt-sse.asm',
133 '../third_party/externals/libjpeg-turbo/simd/jfdctfst-mmx.asm',
134 '../third_party/externals/libjpeg-turbo/simd/jfdctfst-sse2.asm',
135 '../third_party/externals/libjpeg-turbo/simd/jfdctint-mmx.asm',
136 '../third_party/externals/libjpeg-turbo/simd/jfdctint-sse2.asm',
137 '../third_party/externals/libjpeg-turbo/simd/jidctflt-3dn.asm',
138 '../third_party/externals/libjpeg-turbo/simd/jidctflt-sse2.asm',
139 '../third_party/externals/libjpeg-turbo/simd/jidctflt-sse.asm',
140 '../third_party/externals/libjpeg-turbo/simd/jidctfst-mmx.asm',
141 '../third_party/externals/libjpeg-turbo/simd/jidctfst-sse2.asm',
142 '../third_party/externals/libjpeg-turbo/simd/jidctint-mmx.asm',
143 '../third_party/externals/libjpeg-turbo/simd/jidctint-sse2.asm',
144 '../third_party/externals/libjpeg-turbo/simd/jidctred-mmx.asm',
145 '../third_party/externals/libjpeg-turbo/simd/jidctred-sse2.asm',
146 '../third_party/externals/libjpeg-turbo/simd/jquant-3dn.asm',
147 '../third_party/externals/libjpeg-turbo/simd/jquantf-sse2.asm',
148 '../third_party/externals/libjpeg-turbo/simd/jquanti-sse2.asm',
149 '../third_party/externals/libjpeg-turbo/simd/jquant-mmx.asm',
150 '../third_party/externals/libjpeg-turbo/simd/jquant-sse.asm',
151 '../third_party/externals/libjpeg-turbo/simd/jsimdcpu.asm',
152 ],
153 }],
154 [ 'skia_arch_type == "x86_64"', {
155 'sources': [
156 '../third_party/externals/libjpeg-turbo/simd/jsimd_x86_64.c',
157 '../third_party/externals/libjpeg-turbo/simd/jccolor-sse2-64.asm',
158 '../third_party/externals/libjpeg-turbo/simd/jcgray-sse2-64.asm',
159 '../third_party/externals/libjpeg-turbo/simd/jcsample-sse2-64.asm',
160 '../third_party/externals/libjpeg-turbo/simd/jdcolor-sse2-64.asm',
161 '../third_party/externals/libjpeg-turbo/simd/jdmerge-sse2-64.asm',
162 '../third_party/externals/libjpeg-turbo/simd/jdsample-sse2-64.asm',
163 '../third_party/externals/libjpeg-turbo/simd/jfdctflt-sse-64.asm',
164 '../third_party/externals/libjpeg-turbo/simd/jfdctfst-sse2-64.asm',
165 '../third_party/externals/libjpeg-turbo/simd/jfdctint-sse2-64.asm',
166 '../third_party/externals/libjpeg-turbo/simd/jidctflt-sse2-64.asm',
167 '../third_party/externals/libjpeg-turbo/simd/jidctfst-sse2-64.asm',
168 '../third_party/externals/libjpeg-turbo/simd/jidctint-sse2-64.asm',
169 '../third_party/externals/libjpeg-turbo/simd/jidctred-sse2-64.asm',
170 '../third_party/externals/libjpeg-turbo/simd/jquantf-sse2-64.asm',
171 '../third_party/externals/libjpeg-turbo/simd/jquanti-sse2-64.asm',
172 ],
173 }],
174 [ 'skia_arch_type == "arm64"', {
175 'sources': [
176 '../third_party/externals/libjpeg-turbo/simd/jsimd_arm64.c',
177 '../third_party/externals/libjpeg-turbo/simd/jsimd_arm64_neon.S',
178 ],
179 }],
180 [ 'skia_arch_type == "arm"', {
181 'conditions': [
182 [ 'arm_version >= 7 and (arm_neon == 1 or arm_neon_optional == 1)', {
183 'sources': [
184 '../third_party/externals/libjpeg-turbo/simd/jsimd_arm.c',
185 '../third_party/externals/libjpeg-turbo/simd/jsimd_arm_neon.S',
186 ],
187 }, {
188 'sources': [
189 '../third_party/externals/libjpeg-turbo/jsimd_none.c',
190 ],
191 }],
192 ],
193 }],
194 [ 'skia_arch_type == "mips"', {
195 'conditions': [
196 [ 'skia_arch_width == 64', {
197 'sources': [
198 '../third_party/externals/libjpeg-turbo/simd/jsimd_mips.c',
199 '../third_party/externals/libjpeg-turbo/simd/jsimd_mips_dspr2_as m.h',
200 '../third_party/externals/libjpeg-turbo/simd/jsimd_mips_dspr2.S' ,
201 ],
202 }, {
203 'sources': [
204 '../third_party/externals/libjpeg-turbo/jsimd_none.c',
205 ],
206 }],
207 ],
208 }],
209
210 # Build rules for an asm file.
211 # On Windows, we use the precompiled yasm binary.
212 # On Linux, we build our patched yasm and use it except when use_system_ yasm is 1.
213 # On Mac, we always build our patched yasm and use it.
214 [ 'skia_os == "win"', {
215 'variables': {
216 'yasm_path': '../third_party/externals/yasm/binaries/win/yasm.exe',
217 'conditions': [
218 [ 'skia_arch_type == "x86"', {
219 'yasm_format': '-fwin32',
220 'yasm_flags': [
221 '-D__x86__',
222 '-DWIN32',
223 '-DMSVC',
224 '-Iwin/'
225 ],
226 }, {
227 'yasm_format': '-fwin64',
228 'yasm_flags': [
229 '-D__x86_64__',
230 '-DWIN64',
231 '-DMSVC',
232 '-Iwin/'
233 ],
234 }],
235 ],
236 },
237 }],
238 [ 'skia_os == "android" and (skia_arch_type == "x86" or skia_arch_type = = "x86_64")', {
239 'variables': {
240 'yasm_path': '../third_party/yasm/config/android/yasm',
241 'conditions': [
242 [ 'skia_arch_type == "x86"', {
243 'yasm_format': '-felf',
244 'yasm_flags': [
245 '-D__x86__',
246 '-DELF',
247 '-Ilinux/'
248 ],
249 }, {
250 'yasm_format': '-felf64',
251 'yasm_flags': [
252 '-D__x86_64__',
253 '-DELF',
254 '-Ilinux/'
255 ],
256 }],
257 ],
258 },
259 }],
260 [ 'skia_os == "mac" or skia_os == "ios"', {
261 'dependencies': [
262 'yasm.gyp:yasm#host',
263 ],
264 'variables': {
265 'yasm_path': '<(PRODUCT_DIR)/yasm',
266 'conditions': [
267 [ 'skia_arch_type == "x86"', {
268 'yasm_format': '-fmacho',
269 'yasm_flags': [
270 '-D__x86__',
271 '-DMACHO',
272 '-Imac/'
273 ],
274 }, {
275 'yasm_format': '-fmacho64',
276 'yasm_flags': [
277 '-D__x86_64__',
278 '-DMACHO',
279 '-Imac/'
280 ],
281 }],
282 ],
283 },
284 }],
285 [ '(skia_os == "linux" or skia_os == "freebsd" or skia_os == "openbsd" o r \
286 skia_os == "solaris" or skia_os == "chromeos")', {
287 'dependencies': [
288 'yasm.gyp:yasm#host',
289 ],
290 'variables': {
291 'yasm_path': '<(PRODUCT_DIR)/yasm',
292 'conditions': [
293 [ 'skia_arch_type == "x86"', {
294 'yasm_format': '-felf',
295 'yasm_flags': [
296 '-D__x86__',
297 '-DELF',
298 '-Ilinux/'
299 ],
300 }, {
301 'yasm_format': '-felf64',
302 'yasm_flags': [
303 '-D__x86_64__',
304 '-DELF',
305 '-Ilinux/'
306 ],
307 }],
308 ],
309 },
310 }],
311 ],
312 'rules': [
313 {
314 'rule_name': 'assemble',
315 'extension': 'asm',
316 'conditions': [
317 [ 'skia_arch_type == "x86" or skia_arch_type == "x86_64"', {
318 'inputs': [],
319 'outputs': [
320 '<(shared_generated_dir)/<(RULE_INPUT_ROOT).<(object_suffix)',
321 ],
322 'action': [
323 '<(yasm_path)',
324 '<(yasm_format)',
325 '<@(yasm_flags)',
326 '-DRGBX_FILLER_0XFF',
327 '-DSTRICT_MEMORY_ACCESS',
328 '-Isimd/',
329 '-o', '<(shared_generated_dir)/<(RULE_INPUT_ROOT).<(object_suffi x)',
330 '<(RULE_INPUT_PATH)',
331 ],
332 'process_outputs_as_sources': 1,
333 'message': 'Building <(RULE_INPUT_ROOT).<(object_suffix)',
334 }],
335 ]
336 },
337 ],
338 },
339 ],
340 }
OLDNEW
« no previous file with comments | « gyp/codec.gyp ('k') | gyp/yasm.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698