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
3 # found in the LICENSE file.
8 'target_name': 'libpng',
10 '../zlib/zlib.gyp:zlib',
13 # Upstream uses self-assignment to avoid warnings.
14 'clang_warning_flags': [ '-Wno-self-assign' ]
17 'CHROME_PNG_WRITE_SUPPORT',
42 'direct_dependent_settings': {
47 'CHROME_PNG_WRITE_SUPPORT',
51 'export_dependent_settings': [
52 '../zlib/zlib.gyp:zlib',
54 # TODO(jschuh): http://crbug.com/167187
55 'msvs_disabled_warnings': [ 4267 ],
57 ['OS!="win"', {'product_name': 'png'}],
59 'type': '<(component)',
61 # Chromium libpng does not support building as a shared_library
62 # on non-Windows platforms.
63 'type': 'static_library',
65 ['OS=="win" and component=="shared_library"', {
70 'direct_dependent_settings': {
77 'toolsets': ['target', 'host'],
79 'CHROME_PNG_READ_PACK_SUPPORT', # Required by freetype.
81 'direct_dependent_settings': {
83 'CHROME_PNG_READ_PACK_SUPPORT',