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

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

Powered by Google App Engine
This is Rietveld 408576698