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

Side by Side Diff: libjpeg.gyp

Issue 9666044: Revert r124240. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libjpeg_turbo/
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | yasm-filter.sh » ('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 'variables': { 6 'variables': {
7 'shared_generated_dir': '<(SHARED_INTERMEDIATE_DIR)/third_party/libjpeg_turb o', 7 'shared_generated_dir': '<(SHARED_INTERMEDIATE_DIR)/third_party/libjpeg_turb o',
8 'conditions': [ 8 'conditions': [
9 [ 'chromeos == 1 or (os_posix == 1 and \ 9 [ 'chromeos == 1 or (os_posix == 1 and \
10 OS != "mac" and OS != "linux" and OS != "android")', { 10 OS != "mac" and OS != "linux" and OS != "android")', {
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 # <http://www.tortall.net/projects/yasm/ticket/236>. 186 # <http://www.tortall.net/projects/yasm/ticket/236>.
187 [ 'OS=="win"', { 187 [ 'OS=="win"', {
188 'variables': { 188 'variables': {
189 'yasm_path': '../yasm/binaries/win/yasm<(EXECUTABLE_SUFFIX)', 189 'yasm_path': '../yasm/binaries/win/yasm<(EXECUTABLE_SUFFIX)',
190 'yasm_format': '-fwin32', 190 'yasm_format': '-fwin32',
191 'yasm_flags': [ 191 'yasm_flags': [
192 '-DWIN32', 192 '-DWIN32',
193 '-DMSVC', 193 '-DMSVC',
194 '-Iwin/' 194 '-Iwin/'
195 ], 195 ],
196 'yasm_output_filter': [],
197 }, 196 },
198 }], 197 }],
199 [ 'OS=="mac"', { 198 [ 'OS=="mac"', {
200 'dependencies': [ 199 'dependencies': [
201 '../yasm/yasm.gyp:yasm#host', 200 '../yasm/yasm.gyp:yasm#host',
202 ], 201 ],
203 'variables': { 202 'variables': {
204 'yasm_path': '<(PRODUCT_DIR)/yasm', 203 'yasm_path': '<(PRODUCT_DIR)/yasm',
205 'yasm_format': '-fmacho', 204 'yasm_format': '-fmacho',
206 'yasm_flags': [ 205 'yasm_flags': [
207 '-DMACHO', 206 '-DMACHO',
208 '-Imac/' 207 '-Imac/'
209 ], 208 ],
210 # On Mac, jsimdext.inc contains a "SECTION SEG_CONST". This file
211 # is included by all .asm file, and most files contain another
212 # "SECTION SEG_CONST". SEG_CONST is ".rodata align=16" on mac,
213 # which leads to
214 # "warning: section flags ignored on section redeclaration"
215 # warnings on all .asm files. This script filters out this
216 # warning.
217 'yasm_output_filter': ['./yasm-filter.sh'],
218 }, 209 },
219 }], 210 }],
220 [ 'OS=="linux"', { 211 [ 'OS=="linux"', {
221 'conditions': [ 212 'conditions': [
222 [ 'use_system_yasm==0', { 213 [ 'use_system_yasm==0', {
223 'dependencies': [ 214 'dependencies': [
224 '../yasm/yasm.gyp:yasm#host', 215 '../yasm/yasm.gyp:yasm#host',
225 ], 216 ],
226 }], 217 }],
227 ], 218 ],
228 'variables': { 219 'variables': {
229 'conditions': [ 220 'conditions': [
230 [ 'use_system_yasm==1', { 221 [ 'use_system_yasm==1', {
231 'yasm_path': '<!(which yasm)', 222 'yasm_path': '<!(which yasm)',
232 }, { 223 }, {
233 'yasm_path': '<(PRODUCT_DIR)/yasm', 224 'yasm_path': '<(PRODUCT_DIR)/yasm',
234 }], 225 }],
235 [ 'target_arch=="ia32"', { 226 [ 'target_arch=="ia32"', {
236 'yasm_format': '-felf', 227 'yasm_format': '-felf',
237 'yasm_flag': '-D__X86__', 228 'yasm_flag': '-D__X86__',
238 'yasm_flags': [ 229 'yasm_flags': [
239 '-D__x86__', 230 '-D__x86__',
240 '-DELF', 231 '-DELF',
241 '-Ilinux/' 232 '-Ilinux/'
242 ], 233 ],
243 'yasm_output_filter': [],
244 }, { 234 }, {
245 'yasm_format': '-felf64', 235 'yasm_format': '-felf64',
246 'yasm_flag': '-D__x86_64__', 236 'yasm_flag': '-D__x86_64__',
247 'yasm_flags': [ 237 'yasm_flags': [
248 '-D__x86_64__', 238 '-D__x86_64__',
249 '-DELF', 239 '-DELF',
250 '-Ilinux/' 240 '-Ilinux/'
251 ], 241 ],
252 'yasm_output_filter': [],
253 }], 242 }],
254 ], 243 ],
255 }, 244 },
256 }], 245 }],
257 ], 246 ],
258 'rules': [ 247 'rules': [
259 { 248 {
260 'rule_name': 'assemble', 249 'rule_name': 'assemble',
261 'extension': 'asm', 250 'extension': 'asm',
262 'conditions': [ 251 'conditions': [
263 [ 'target_arch!="arm"', { 252 [ 'target_arch!="arm"', {
264 'inputs': [ '<(yasm_path)', ], 253 'inputs': [ '<(yasm_path)', ],
265 'outputs': [ 254 'outputs': [
266 '<(shared_generated_dir)/<(RULE_INPUT_ROOT).<(object_suffix) ', 255 '<(shared_generated_dir)/<(RULE_INPUT_ROOT).<(object_suffix) ',
267 ], 256 ],
268 'action': [ 257 'action': [
269 '<@(yasm_output_filter)',
270 '<(yasm_path)', 258 '<(yasm_path)',
271 '<(yasm_format)', 259 '<(yasm_format)',
272 '<@(yasm_flags)', 260 '<@(yasm_flags)',
273 '-DRGBX_FILLER_0XFF', 261 '-DRGBX_FILLER_0XFF',
274 '-DSTRICT_MEMORY_ACCESS', 262 '-DSTRICT_MEMORY_ACCESS',
275 '-Isimd/', 263 '-Isimd/',
276 '-o', '<(shared_generated_dir)/<(RULE_INPUT_ROOT).<(object_s uffix)', 264 '-o', '<(shared_generated_dir)/<(RULE_INPUT_ROOT).<(object_s uffix)',
277 '<(RULE_INPUT_PATH)', 265 '<(RULE_INPUT_PATH)',
278 ], 266 ],
279 'process_outputs_as_sources': 1, 267 'process_outputs_as_sources': 1,
(...skipping 23 matching lines...) Expand all
303 ], 291 ],
304 }], 292 }],
305 ], 293 ],
306 } 294 }
307 295
308 # Local Variables: 296 # Local Variables:
309 # tab-width:2 297 # tab-width:2
310 # indent-tabs-mode:nil 298 # indent-tabs-mode:nil
311 # End: 299 # End:
312 # vim: set expandtab tabstop=2 shiftwidth=2: 300 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « no previous file | yasm-filter.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698