| OLD | NEW |
| 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 # This file is not used when use_system_libjepg==1. Settings for building with | 6 # This file is not used when use_system_libjepg==1. Settings for building with |
| 7 # the system libjpeg is in third_party/libjpeg/libjpeg.gyp. | 7 # the system libjpeg is in third_party/libjpeg/libjpeg.gyp. |
| 8 'variables': { | 8 'variables': { |
| 9 'shared_generated_dir': '<(SHARED_INTERMEDIATE_DIR)/third_party/libjpeg_turb
o', | 9 'shared_generated_dir': '<(SHARED_INTERMEDIATE_DIR)/third_party/libjpeg_turb
o', |
| 10 'conditions': [ | 10 'conditions': [ |
| 11 [ 'OS=="win"', { | 11 [ 'OS=="win"', { |
| 12 'object_suffix': 'obj', | 12 'object_suffix': 'obj', |
| 13 }, { | 13 }, { |
| 14 'object_suffix': 'o', | 14 'object_suffix': 'o', |
| 15 }], | 15 }], |
| 16 ], | 16 ], |
| 17 }, | 17 }, |
| 18 'targets': [ | 18 'targets': [ |
| 19 { | 19 { |
| 20 'target_name': 'libjpeg', | 20 'target_name': 'libjpeg', |
| 21 'type': 'static_library', | 21 'type': 'static_library', |
| 22 'include_dirs': [ | 22 'include_dirs': [ |
| 23 '.', | 23 '.', |
| 24 ], | 24 ], |
| 25 'defines': [ | 25 'defines': [ |
| 26 'WITH_SIMD', | 26 'WITH_SIMD', |
| 27 'MOTION_JPEG_SUPPORTED', | 27 'MOTION_JPEG_SUPPORTED', |
| 28 'NO_GETENV', | |
| 29 ], | 28 ], |
| 30 'sources': [ | 29 'sources': [ |
| 31 'jcapimin.c', | 30 'jcapimin.c', |
| 32 'jcapistd.c', | 31 'jcapistd.c', |
| 33 'jccoefct.c', | 32 'jccoefct.c', |
| 34 'jccolor.c', | 33 'jccolor.c', |
| 35 'jcdctmgr.c', | 34 'jcdctmgr.c', |
| 36 'jchuff.c', | 35 'jchuff.c', |
| 37 'jchuff.h', | 36 'jchuff.h', |
| 38 'jcinit.c', | 37 'jcinit.c', |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 'yasm_format': '-felf64', | 258 'yasm_format': '-felf64', |
| 260 'yasm_flags': [ | 259 'yasm_flags': [ |
| 261 '-D__x86_64__', | 260 '-D__x86_64__', |
| 262 '-DELF', | 261 '-DELF', |
| 263 '-Ilinux/' | 262 '-Ilinux/' |
| 264 ], | 263 ], |
| 265 }], | 264 }], |
| 266 ], | 265 ], |
| 267 }, | 266 }, |
| 268 }], | 267 }], |
| 268 [ 'OS=="android"', { |
| 269 'defines': [ |
| 270 'NO_GETENV', # getenv() is not thread-safe. |
| 271 ], |
| 272 }], |
| 269 ], | 273 ], |
| 270 'rules': [ | 274 'rules': [ |
| 271 { | 275 { |
| 272 'rule_name': 'assemble', | 276 'rule_name': 'assemble', |
| 273 'extension': 'asm', | 277 'extension': 'asm', |
| 274 'conditions': [ | 278 'conditions': [ |
| 275 [ 'target_arch!="arm"', { | 279 [ 'target_arch!="arm"', { |
| 276 'inputs': [ '<(yasm_path)', ], | 280 'inputs': [ '<(yasm_path)', ], |
| 277 'outputs': [ | 281 'outputs': [ |
| 278 '<(shared_generated_dir)/<(RULE_INPUT_ROOT).<(object_suffix)', | 282 '<(shared_generated_dir)/<(RULE_INPUT_ROOT).<(object_suffix)', |
| (...skipping 16 matching lines...) Expand all Loading... |
| 295 ], | 299 ], |
| 296 }, | 300 }, |
| 297 ], | 301 ], |
| 298 } | 302 } |
| 299 | 303 |
| 300 # Local Variables: | 304 # Local Variables: |
| 301 # tab-width:2 | 305 # tab-width:2 |
| 302 # indent-tabs-mode:nil | 306 # indent-tabs-mode:nil |
| 303 # End: | 307 # End: |
| 304 # vim: set expandtab tabstop=2 shiftwidth=2: | 308 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |