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

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

Issue 1275773004: Switching Skia to chromium's libjpeg-turbo (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update DEPS with libjpeg-turbo fix Created 5 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 | « gyp/libjpeg.gyp ('k') | platform_tools/android/gyp/dependencies.gypi » ('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 (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 'xcode_settings': { 6 'xcode_settings': {
7 'SYMROOT': '<(DEPTH)/xcodebuild', 7 'SYMROOT': '<(DEPTH)/xcodebuild',
8 }, 8 },
9 'variables': { 9 'variables': {
10 'shared_generated_dir': '<(SHARED_INTERMEDIATE_DIR)/third_party/externals/li bjpeg-turbo', 10 'shared_generated_dir': '<(SHARED_INTERMEDIATE_DIR)/third_party/externals/li bjpeg-turbo',
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 'VCCLCompilerTool': { 46 'VCCLCompilerTool': {
47 'WarningLevel': '0', 47 'WarningLevel': '0',
48 }, 48 },
49 }, 49 },
50 'xcode_settings': { 50 'xcode_settings': {
51 'WARNING_CFLAGS': [ 51 'WARNING_CFLAGS': [
52 '-w', 52 '-w',
53 ], 53 ],
54 }, 54 },
55 'sources': [ 55 'sources': [
56 '../third_party/externals/libjpeg-turbo/jaricom.c',
57 '../third_party/externals/libjpeg-turbo/jcapimin.c', 56 '../third_party/externals/libjpeg-turbo/jcapimin.c',
58 '../third_party/externals/libjpeg-turbo/jcapistd.c', 57 '../third_party/externals/libjpeg-turbo/jcapistd.c',
59 '../third_party/externals/libjpeg-turbo/jcarith.c',
60 '../third_party/externals/libjpeg-turbo/jccoefct.c', 58 '../third_party/externals/libjpeg-turbo/jccoefct.c',
61 '../third_party/externals/libjpeg-turbo/jccolor.c', 59 '../third_party/externals/libjpeg-turbo/jccolor.c',
62 '../third_party/externals/libjpeg-turbo/jcdctmgr.c', 60 '../third_party/externals/libjpeg-turbo/jcdctmgr.c',
63 '../third_party/externals/libjpeg-turbo/jchuff.c', 61 '../third_party/externals/libjpeg-turbo/jchuff.c',
64 '../third_party/externals/libjpeg-turbo/jchuff.h', 62 '../third_party/externals/libjpeg-turbo/jchuff.h',
65 '../third_party/externals/libjpeg-turbo/jcinit.c', 63 '../third_party/externals/libjpeg-turbo/jcinit.c',
66 '../third_party/externals/libjpeg-turbo/jcmainct.c', 64 '../third_party/externals/libjpeg-turbo/jcmainct.c',
67 '../third_party/externals/libjpeg-turbo/jcmarker.c', 65 '../third_party/externals/libjpeg-turbo/jcmarker.c',
68 '../third_party/externals/libjpeg-turbo/jcmaster.c', 66 '../third_party/externals/libjpeg-turbo/jcmaster.c',
69 '../third_party/externals/libjpeg-turbo/jcomapi.c', 67 '../third_party/externals/libjpeg-turbo/jcomapi.c',
70 '../third_party/externals/libjpeg-turbo/jconfig.h', 68 '../third_party/externals/libjpeg-turbo/jconfig.h',
71 '../third_party/externals/libjpeg-turbo/jconfigint.h',
72 '../third_party/externals/libjpeg-turbo/jcparam.c', 69 '../third_party/externals/libjpeg-turbo/jcparam.c',
73 '../third_party/externals/libjpeg-turbo/jcphuff.c', 70 '../third_party/externals/libjpeg-turbo/jcphuff.c',
74 '../third_party/externals/libjpeg-turbo/jcprepct.c', 71 '../third_party/externals/libjpeg-turbo/jcprepct.c',
75 '../third_party/externals/libjpeg-turbo/jcsample.c', 72 '../third_party/externals/libjpeg-turbo/jcsample.c',
76 '../third_party/externals/libjpeg-turbo/jdapimin.c', 73 '../third_party/externals/libjpeg-turbo/jdapimin.c',
77 '../third_party/externals/libjpeg-turbo/jdapistd.c', 74 '../third_party/externals/libjpeg-turbo/jdapistd.c',
78 '../third_party/externals/libjpeg-turbo/jdarith.c',
79 '../third_party/externals/libjpeg-turbo/jdcoefct.c', 75 '../third_party/externals/libjpeg-turbo/jdcoefct.c',
80 '../third_party/externals/libjpeg-turbo/jdcolor.c', 76 '../third_party/externals/libjpeg-turbo/jdcolor.c',
81 '../third_party/externals/libjpeg-turbo/jdct.h', 77 '../third_party/externals/libjpeg-turbo/jdct.h',
82 '../third_party/externals/libjpeg-turbo/jddctmgr.c', 78 '../third_party/externals/libjpeg-turbo/jddctmgr.c',
83 '../third_party/externals/libjpeg-turbo/jdhuff.c', 79 '../third_party/externals/libjpeg-turbo/jdhuff.c',
84 '../third_party/externals/libjpeg-turbo/jdhuff.h', 80 '../third_party/externals/libjpeg-turbo/jdhuff.h',
85 '../third_party/externals/libjpeg-turbo/jdinput.c', 81 '../third_party/externals/libjpeg-turbo/jdinput.c',
86 '../third_party/externals/libjpeg-turbo/jdmainct.c', 82 '../third_party/externals/libjpeg-turbo/jdmainct.c',
87 '../third_party/externals/libjpeg-turbo/jdmarker.c', 83 '../third_party/externals/libjpeg-turbo/jdmarker.c',
88 '../third_party/externals/libjpeg-turbo/jdmaster.c', 84 '../third_party/externals/libjpeg-turbo/jdmaster.c',
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 'conditions': [ 123 'conditions': [
128 # TODO (msarett): Is it possible to enable cross compiling for Android o n other platforms? 124 # TODO (msarett): Is it possible to enable cross compiling for Android o n other platforms?
129 [ 'skia_os == "android" and host_os != "linux" and "x86" in skia_arch_ty pe', { 125 [ 'skia_os == "android" and host_os != "linux" and "x86" in skia_arch_ty pe', {
130 'sources': [ 126 'sources': [
131 '../third_party/externals/libjpeg-turbo/jsimd_none.c', 127 '../third_party/externals/libjpeg-turbo/jsimd_none.c',
132 ], 128 ],
133 }], 129 }],
134 [ 'skia_arch_type == "x86" and (skia_os != "android" or host_os == "linu x")', { 130 [ 'skia_arch_type == "x86" and (skia_os != "android" or host_os == "linu x")', {
135 'sources': [ 131 'sources': [
136 '../third_party/externals/libjpeg-turbo/simd/jsimd_i386.c', 132 '../third_party/externals/libjpeg-turbo/simd/jsimd_i386.c',
137 '../third_party/externals/libjpeg-turbo/simd/jccolor-mmx.asm', 133 '../third_party/externals/libjpeg-turbo/simd/jccolmmx.asm',
138 '../third_party/externals/libjpeg-turbo/simd/jccolor-sse2.asm', 134 '../third_party/externals/libjpeg-turbo/simd/jccolss2.asm',
139 '../third_party/externals/libjpeg-turbo/simd/jcgray-mmx.asm', 135 '../third_party/externals/libjpeg-turbo/simd/jcgrammx.asm',
140 '../third_party/externals/libjpeg-turbo/simd/jcgray-sse2.asm', 136 '../third_party/externals/libjpeg-turbo/simd/jcgrass2.asm',
141 '../third_party/externals/libjpeg-turbo/simd/jcsample-mmx.asm', 137 '../third_party/externals/libjpeg-turbo/simd/jcqnt3dn.asm',
142 '../third_party/externals/libjpeg-turbo/simd/jcsample-sse2.asm', 138 '../third_party/externals/libjpeg-turbo/simd/jcqntmmx.asm',
143 '../third_party/externals/libjpeg-turbo/simd/jdcolor-mmx.asm', 139 '../third_party/externals/libjpeg-turbo/simd/jcqnts2f.asm',
144 '../third_party/externals/libjpeg-turbo/simd/jdcolor-sse2.asm', 140 '../third_party/externals/libjpeg-turbo/simd/jcqnts2i.asm',
145 '../third_party/externals/libjpeg-turbo/simd/jdmerge-mmx.asm', 141 '../third_party/externals/libjpeg-turbo/simd/jcqntsse.asm',
146 '../third_party/externals/libjpeg-turbo/simd/jdmerge-sse2.asm', 142 '../third_party/externals/libjpeg-turbo/simd/jcsammmx.asm',
147 '../third_party/externals/libjpeg-turbo/simd/jdsample-mmx.asm', 143 '../third_party/externals/libjpeg-turbo/simd/jcsamss2.asm',
148 '../third_party/externals/libjpeg-turbo/simd/jdsample-sse2.asm', 144 '../third_party/externals/libjpeg-turbo/simd/jdcolmmx.asm',
149 '../third_party/externals/libjpeg-turbo/simd/jfdctflt-3dn.asm', 145 '../third_party/externals/libjpeg-turbo/simd/jdcolss2.asm',
150 '../third_party/externals/libjpeg-turbo/simd/jfdctflt-sse.asm', 146 '../third_party/externals/libjpeg-turbo/simd/jdmermmx.asm',
151 '../third_party/externals/libjpeg-turbo/simd/jfdctfst-mmx.asm', 147 '../third_party/externals/libjpeg-turbo/simd/jdmerss2.asm',
152 '../third_party/externals/libjpeg-turbo/simd/jfdctfst-sse2.asm', 148 '../third_party/externals/libjpeg-turbo/simd/jdsammmx.asm',
153 '../third_party/externals/libjpeg-turbo/simd/jfdctint-mmx.asm', 149 '../third_party/externals/libjpeg-turbo/simd/jdsamss2.asm',
154 '../third_party/externals/libjpeg-turbo/simd/jfdctint-sse2.asm', 150 '../third_party/externals/libjpeg-turbo/simd/jf3dnflt.asm',
155 '../third_party/externals/libjpeg-turbo/simd/jidctflt-3dn.asm', 151 '../third_party/externals/libjpeg-turbo/simd/jfmmxfst.asm',
156 '../third_party/externals/libjpeg-turbo/simd/jidctflt-sse2.asm', 152 '../third_party/externals/libjpeg-turbo/simd/jfmmxint.asm',
157 '../third_party/externals/libjpeg-turbo/simd/jidctflt-sse.asm', 153 '../third_party/externals/libjpeg-turbo/simd/jfss2fst.asm',
158 '../third_party/externals/libjpeg-turbo/simd/jidctfst-mmx.asm', 154 '../third_party/externals/libjpeg-turbo/simd/jfss2int.asm',
159 '../third_party/externals/libjpeg-turbo/simd/jidctfst-sse2.asm', 155 '../third_party/externals/libjpeg-turbo/simd/jfsseflt.asm',
160 '../third_party/externals/libjpeg-turbo/simd/jidctint-mmx.asm', 156 '../third_party/externals/libjpeg-turbo/simd/ji3dnflt.asm',
161 '../third_party/externals/libjpeg-turbo/simd/jidctint-sse2.asm', 157 '../third_party/externals/libjpeg-turbo/simd/jimmxfst.asm',
162 '../third_party/externals/libjpeg-turbo/simd/jidctred-mmx.asm', 158 '../third_party/externals/libjpeg-turbo/simd/jimmxint.asm',
163 '../third_party/externals/libjpeg-turbo/simd/jidctred-sse2.asm', 159 '../third_party/externals/libjpeg-turbo/simd/jimmxred.asm',
164 '../third_party/externals/libjpeg-turbo/simd/jquant-3dn.asm', 160 '../third_party/externals/libjpeg-turbo/simd/jiss2flt.asm',
165 '../third_party/externals/libjpeg-turbo/simd/jquantf-sse2.asm', 161 '../third_party/externals/libjpeg-turbo/simd/jiss2fst.asm',
166 '../third_party/externals/libjpeg-turbo/simd/jquanti-sse2.asm', 162 '../third_party/externals/libjpeg-turbo/simd/jiss2int.asm',
167 '../third_party/externals/libjpeg-turbo/simd/jquant-mmx.asm', 163 '../third_party/externals/libjpeg-turbo/simd/jiss2red.asm',
168 '../third_party/externals/libjpeg-turbo/simd/jquant-sse.asm', 164 '../third_party/externals/libjpeg-turbo/simd/jisseflt.asm',
169 '../third_party/externals/libjpeg-turbo/simd/jsimdcpu.asm', 165 '../third_party/externals/libjpeg-turbo/simd/jsimdcpu.asm',
170 ], 166 ],
171 }], 167 }],
172 [ 'skia_arch_type == "x86_64" and (skia_os != "android" or host_os == "l inux")', { 168 [ 'skia_arch_type == "x86_64" and (skia_os != "android" or host_os == "l inux")', {
173 'sources': [ 169 'sources': [
174 '../third_party/externals/libjpeg-turbo/simd/jsimd_x86_64.c', 170 '../third_party/externals/libjpeg-turbo/simd/jsimd_x86_64.c',
175 '../third_party/externals/libjpeg-turbo/simd/jccolor-sse2-64.asm', 171 '../third_party/externals/libjpeg-turbo/simd/jccolss2-64.asm',
176 '../third_party/externals/libjpeg-turbo/simd/jcgray-sse2-64.asm', 172 '../third_party/externals/libjpeg-turbo/simd/jcgrass2-64.asm',
177 '../third_party/externals/libjpeg-turbo/simd/jcsample-sse2-64.asm', 173 '../third_party/externals/libjpeg-turbo/simd/jcqnts2f-64.asm',
178 '../third_party/externals/libjpeg-turbo/simd/jdcolor-sse2-64.asm', 174 '../third_party/externals/libjpeg-turbo/simd/jcqnts2i-64.asm',
179 '../third_party/externals/libjpeg-turbo/simd/jdmerge-sse2-64.asm', 175 '../third_party/externals/libjpeg-turbo/simd/jcsamss2-64.asm',
180 '../third_party/externals/libjpeg-turbo/simd/jdsample-sse2-64.asm', 176 '../third_party/externals/libjpeg-turbo/simd/jdcolss2-64.asm',
181 '../third_party/externals/libjpeg-turbo/simd/jfdctflt-sse-64.asm', 177 '../third_party/externals/libjpeg-turbo/simd/jdmerss2-64.asm',
182 '../third_party/externals/libjpeg-turbo/simd/jfdctfst-sse2-64.asm', 178 '../third_party/externals/libjpeg-turbo/simd/jdsamss2-64.asm',
183 '../third_party/externals/libjpeg-turbo/simd/jfdctint-sse2-64.asm', 179 '../third_party/externals/libjpeg-turbo/simd/jfss2fst-64.asm',
184 '../third_party/externals/libjpeg-turbo/simd/jidctflt-sse2-64.asm', 180 '../third_party/externals/libjpeg-turbo/simd/jfss2int-64.asm',
185 '../third_party/externals/libjpeg-turbo/simd/jidctfst-sse2-64.asm', 181 '../third_party/externals/libjpeg-turbo/simd/jfsseflt-64.asm',
186 '../third_party/externals/libjpeg-turbo/simd/jidctint-sse2-64.asm', 182 '../third_party/externals/libjpeg-turbo/simd/jiss2flt-64.asm',
187 '../third_party/externals/libjpeg-turbo/simd/jidctred-sse2-64.asm', 183 '../third_party/externals/libjpeg-turbo/simd/jiss2fst-64.asm',
188 '../third_party/externals/libjpeg-turbo/simd/jquantf-sse2-64.asm', 184 '../third_party/externals/libjpeg-turbo/simd/jiss2int-64.asm',
189 '../third_party/externals/libjpeg-turbo/simd/jquanti-sse2-64.asm', 185 '../third_party/externals/libjpeg-turbo/simd/jiss2red-64.asm',
190 ], 186 ],
191 }], 187 }],
192 [ 'skia_arch_type == "arm64"', { 188 [ 'skia_arch_type == "arm64"', {
193 'sources': [ 189 'sources': [
194 '../third_party/externals/libjpeg-turbo/simd/jsimd_arm64.c', 190 '../third_party/externals/libjpeg-turbo/simd/jsimd_arm64.c',
195 '../third_party/externals/libjpeg-turbo/simd/jsimd_arm64_neon.S', 191 '../third_party/externals/libjpeg-turbo/simd/jsimd_arm64_neon.S',
196 ], 192 ],
197 }], 193 }],
198 [ 'skia_arch_type == "arm"', { 194 [ 'skia_arch_type == "arm"', {
199 'conditions': [ 195 'conditions': [
200 [ 'arm_version >= 7 and (arm_neon == 1 or arm_neon_optional == 1)', { 196 [ 'arm_version >= 7 and (arm_neon == 1 or arm_neon_optional == 1)', {
201 'sources': [ 197 'sources': [
202 '../third_party/externals/libjpeg-turbo/simd/jsimd_arm.c', 198 '../third_party/externals/libjpeg-turbo/simd/jsimd_arm.c',
203 '../third_party/externals/libjpeg-turbo/simd/jsimd_arm_neon.S', 199 '../third_party/externals/libjpeg-turbo/simd/jsimd_arm_neon.S',
204 ], 200 ],
205 }, { 201 }, {
206 'sources': [ 202 'sources': [
207 '../third_party/externals/libjpeg-turbo/jsimd_none.c', 203 '../third_party/externals/libjpeg-turbo/jsimd_none.c',
208 ], 204 ],
209 }], 205 }],
210 ], 206 ],
211 }], 207 }],
212 [ 'skia_arch_type == "mips64"', { 208 # mips simd is supported in later versions of libjpeg-turbo. If we
213 'sources': [ 209 # choose to update our copy of libjpeg-turbo we can enable mips simd.
214 '../third_party/externals/libjpeg-turbo/simd/jsimd_mips.c', 210 [ '"mips" in skia_arch_type', {
215 '../third_party/externals/libjpeg-turbo/simd/jsimd_mips_dspr2_asm.h' ,
216 '../third_party/externals/libjpeg-turbo/simd/jsimd_mips_dspr2.S',
217 ],
218 }],
219 [ 'skia_arch_type == "mips32"', {
220 'sources': [ 211 'sources': [
221 '../third_party/externals/libjpeg-turbo/jsimd_none.c', 212 '../third_party/externals/libjpeg-turbo/jsimd_none.c',
222 ], 213 ],
223 }], 214 }],
224 215
225 # Build rules for an asm file. 216 # Build rules for an asm file.
226 # On Windows, we use the precompiled yasm binary. 217 # On Windows, we use the precompiled yasm binary.
227 # On Linux, we build our patched yasm and use it. 218 # On Linux, we build our patched yasm and use it.
228 # On Mac, we always build our patched yasm and use it. 219 # On Mac, we always build our patched yasm and use it.
229 [ 'skia_os == "win"', { 220 [ 'skia_os == "win"', {
230 'dependencies': [ 221 'dependencies': [
231 'yasm-win', 222 'yasm-win',
232 ], 223 ],
233 'variables': { 224 'variables': {
234 'yasm_path': '<(PRODUCT_DIR)/yasm.exe', 225 'yasm_path': '<(PRODUCT_DIR)/yasm.exe',
235 'conditions': [ 226 'conditions': [
236 [ 'skia_arch_type == "x86"', { 227 [ 'skia_arch_type == "x86"', {
237 'yasm_format': '-fwin32', 228 'yasm_format': '-fwin32',
238 'yasm_flags': [ 229 'yasm_flags': [
239 '-D__x86__', 230 '-D__x86__',
240 '-DWIN32', 231 '-DWIN32',
241 '-DMSVC', 232 '-DMSVC',
242 '-Iwin/' 233 '-I../third_party/externals/libjpeg-turbo/win/'
243 ], 234 ],
244 }, { 235 }, {
245 'yasm_format': '-fwin64', 236 'yasm_format': '-fwin64',
246 'yasm_flags': [ 237 'yasm_flags': [
247 '-D__x86_64__', 238 '-D__x86_64__',
248 '-DWIN64', 239 '-DWIN64',
249 '-DMSVC', 240 '-DMSVC',
250 '-Iwin/' 241 '-I../third_party/externals/libjpeg-turbo/win/'
251 ], 242 ],
252 }], 243 }],
253 ], 244 ],
254 }, 245 },
255 }], 246 }],
256 [ 'skia_os == "android" and host_os == "linux" and \ 247 [ 'skia_os == "android" and host_os == "linux" and \
257 (skia_arch_type == "x86" or skia_arch_type == "x86_64")', { 248 (skia_arch_type == "x86" or skia_arch_type == "x86_64")', {
258 'dependencies': [ 249 'dependencies': [
259 'yasm.gyp:yasm#host', 250 'yasm.gyp:yasm#host',
260 ], 251 ],
261 'variables': { 252 'variables': {
262 'yasm_path': '<(PRODUCT_DIR)/yasm', 253 'yasm_path': '<(PRODUCT_DIR)/yasm',
263 'conditions': [ 254 'conditions': [
264 [ 'skia_arch_type == "x86"', { 255 [ 'skia_arch_type == "x86"', {
265 'yasm_format': '-felf', 256 'yasm_format': '-felf',
266 'yasm_flags': [ 257 'yasm_flags': [
267 '-D__x86__', 258 '-D__x86__',
268 '-DELF', 259 '-DELF',
269 '-Ilinux/' 260 '-I../third_party/externals/libjpeg-turbo/linux/'
270 ], 261 ],
271 }, { 262 }, {
272 'yasm_format': '-felf64', 263 'yasm_format': '-felf64',
273 'yasm_flags': [ 264 'yasm_flags': [
274 '-D__x86_64__', 265 '-D__x86_64__',
275 '-DELF', 266 '-DELF',
276 '-Ilinux/' 267 '-I../third_party/externals/libjpeg-turbo/linux/'
277 ], 268 ],
278 }], 269 }],
279 ], 270 ],
280 }, 271 },
281 }], 272 }],
282 [ '(skia_os == "mac" or skia_os == "ios") and \ 273 [ '(skia_os == "mac" or skia_os == "ios") and \
283 (skia_arch_type == "x86" or skia_arch_type == "x86_64")', { 274 (skia_arch_type == "x86" or skia_arch_type == "x86_64")', {
284 'dependencies': [ 275 'dependencies': [
285 'yasm.gyp:yasm#host', 276 'yasm.gyp:yasm#host',
286 ], 277 ],
287 'variables': { 278 'variables': {
288 'yasm_path': '<(PRODUCT_DIR)/yasm', 279 'yasm_path': '<(PRODUCT_DIR)/yasm',
289 'conditions': [ 280 'conditions': [
290 [ 'skia_arch_type == "x86"', { 281 [ 'skia_arch_type == "x86"', {
291 'yasm_format': '-fmacho', 282 'yasm_format': '-fmacho',
292 'yasm_flags': [ 283 'yasm_flags': [
293 '-D__x86__', 284 '-D__x86__',
294 '-DMACHO', 285 '-DMACHO',
295 '-Imac/' 286 '-I../third_party/externals/libjpeg-turbo/mac/'
296 ], 287 ],
297 }, { 288 }, {
298 'yasm_format': '-fmacho64', 289 'yasm_format': '-fmacho64',
299 'yasm_flags': [ 290 'yasm_flags': [
300 '-D__x86_64__', 291 '-D__x86_64__',
301 '-DMACHO', 292 '-DMACHO',
302 '-Imac/' 293 '-I../third_party/externals/libjpeg-turbo/mac/'
303 ], 294 ],
304 }], 295 }],
305 ], 296 ],
306 }, 297 },
307 }], 298 }],
308 [ '(skia_os == "linux" or skia_os == "freebsd" or skia_os == "openbsd" o r \ 299 [ '(skia_os == "linux" or skia_os == "freebsd" or skia_os == "openbsd" o r \
309 skia_os == "solaris" or skia_os == "chromeos")', { 300 skia_os == "solaris" or skia_os == "chromeos")', {
310 'dependencies': [ 301 'dependencies': [
311 'yasm.gyp:yasm#host', 302 'yasm.gyp:yasm#host',
312 ], 303 ],
313 'variables': { 304 'variables': {
314 'yasm_path': '<(PRODUCT_DIR)/yasm', 305 'yasm_path': '<(PRODUCT_DIR)/yasm',
315 'conditions': [ 306 'conditions': [
316 [ 'skia_arch_type == "x86"', { 307 [ 'skia_arch_type == "x86"', {
317 'yasm_format': '-felf', 308 'yasm_format': '-felf',
318 'yasm_flags': [ 309 'yasm_flags': [
319 '-D__x86__', 310 '-D__x86__',
320 '-DELF', 311 '-DELF',
321 '-Ilinux/' 312 '-I../third_party/externals/libjpeg-turbo/linux/'
322 ], 313 ],
323 }, { 314 }, {
324 'yasm_format': '-felf64', 315 'yasm_format': '-felf64',
325 'yasm_flags': [ 316 'yasm_flags': [
326 '-D__x86_64__', 317 '-D__x86_64__',
327 '-DELF', 318 '-DELF',
328 '-Ilinux/' 319 '-I../third_party/externals/libjpeg-turbo/linux/'
329 ], 320 ],
330 }], 321 }],
331 ], 322 ],
332 }, 323 },
333 }], 324 }],
334 ], 325 ],
335 'rules': [ 326 'rules': [
336 { 327 {
337 'rule_name': 'assemble', 328 'rule_name': 'assemble',
338 'extension': 'asm', 329 'extension': 'asm',
339 'conditions': [ 330 'conditions': [
340 [ '(skia_arch_type == "x86" or skia_arch_type == "x86_64") and \ 331 [ '(skia_arch_type == "x86" or skia_arch_type == "x86_64") and \
341 (skia_os != "android" or host_os == "linux")', { 332 (skia_os != "android" or host_os == "linux")', {
342 'inputs': [], 333 'inputs': [],
343 'outputs': [ 334 'outputs': [
344 '<(shared_generated_dir)/<(RULE_INPUT_ROOT).<(object_suffix)', 335 '<(shared_generated_dir)/<(RULE_INPUT_ROOT).<(object_suffix)',
345 ], 336 ],
346 'action': [ 337 'action': [
347 '<(yasm_path)', 338 '<(yasm_path)',
348 '<(yasm_format)', 339 '<(yasm_format)',
349 '<@(yasm_flags)', 340 '<@(yasm_flags)',
350 '-DRGBX_FILLER_0XFF', 341 '-DRGBX_FILLER_0XFF',
351 '-DSTRICT_MEMORY_ACCESS', 342 '-DSTRICT_MEMORY_ACCESS',
352 '-Isimd/',
353 '-o', '<(shared_generated_dir)/<(RULE_INPUT_ROOT).<(object_suffi x)', 343 '-o', '<(shared_generated_dir)/<(RULE_INPUT_ROOT).<(object_suffi x)',
354 '<(RULE_INPUT_PATH)', 344 '<(RULE_INPUT_PATH)',
355 ], 345 ],
356 'process_outputs_as_sources': 1, 346 'process_outputs_as_sources': 1,
357 'message': 'Building <(RULE_INPUT_ROOT).<(object_suffix)', 347 'message': 'Building <(RULE_INPUT_ROOT).<(object_suffix)',
358 }], 348 }],
359 ] 349 ]
360 }, 350 },
361 ], 351 ],
362 }, 352 },
363 ], 353 ],
364 } 354 }
OLDNEW
« no previous file with comments | « gyp/libjpeg.gyp ('k') | platform_tools/android/gyp/dependencies.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698