| 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 'targets': [ | 6 'targets': [ |
| 7 { | 7 { |
| 8 'target_name': 'libpng', | 8 'target_name': 'libpng', |
| 9 'dependencies': [ | 9 'dependencies': [ |
| 10 '../zlib/zlib.gyp:zlib', | 10 '../zlib/zlib.gyp:zlib', |
| 11 ], | 11 ], |
| 12 'variables': { |
| 13 # Upstream uses self-assignment to avoid warnings. |
| 14 'clang_warning_flags': [ '-Wno-self-assign' ] |
| 15 }, |
| 12 'defines': [ | 16 'defines': [ |
| 13 'CHROME_PNG_WRITE_SUPPORT', | 17 'CHROME_PNG_WRITE_SUPPORT', |
| 14 'PNG_USER_CONFIG', | 18 'PNG_USER_CONFIG', |
| 15 ], | 19 ], |
| 16 'sources': [ | 20 'sources': [ |
| 17 'png.c', | 21 'png.c', |
| 18 'png.h', | 22 'png.h', |
| 19 'pngconf.h', | 23 'pngconf.h', |
| 20 'pngerror.c', | 24 'pngerror.c', |
| 21 'pnggccrd.c', | 25 'pnggccrd.c', |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 }], | 64 }], |
| 61 ['OS=="win" and component=="shared_library"', { | 65 ['OS=="win" and component=="shared_library"', { |
| 62 'defines': [ | 66 'defines': [ |
| 63 'PNG_BUILD_DLL', | 67 'PNG_BUILD_DLL', |
| 64 'PNG_NO_MODULEDEF', | 68 'PNG_NO_MODULEDEF', |
| 65 ], | 69 ], |
| 66 'direct_dependent_settings': { | 70 'direct_dependent_settings': { |
| 67 'defines': [ | 71 'defines': [ |
| 68 'PNG_USE_DLL', | 72 'PNG_USE_DLL', |
| 69 ], | 73 ], |
| 70 }, | 74 }, |
| 71 }], | 75 }], |
| 72 ['OS=="android"', { | 76 ['OS=="android"', { |
| 73 'toolsets': ['target', 'host'], | 77 'toolsets': ['target', 'host'], |
| 74 'defines': [ | 78 'defines': [ |
| 75 'CHROME_PNG_READ_PACK_SUPPORT', # Required by freetype. | 79 'CHROME_PNG_READ_PACK_SUPPORT', # Required by freetype. |
| 76 ], | 80 ], |
| 77 'direct_dependent_settings': { | 81 'direct_dependent_settings': { |
| 78 'defines': [ | 82 'defines': [ |
| 79 'CHROME_PNG_READ_PACK_SUPPORT', | 83 'CHROME_PNG_READ_PACK_SUPPORT', |
| 80 ], | 84 ], |
| 81 }, | 85 }, |
| 82 }], | 86 }], |
| 83 ], | 87 ], |
| 84 }, | 88 }, |
| 85 ] | 89 ] |
| 86 } | 90 } |
| OLD | NEW |