1 # Copyright (c) 2009 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 [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
9 # Link to system .so since we already use it due to GTK.
10 'use_system_libpng%': 1,
11 }, { # OS!="linux" and OS!="freebsd" and OS!="openbsd"
12 'use_system_libpng%': 0,
17 ['use_system_libpng==0', {
20 'target_name': 'libpng',
21 'type': '<(component)',
23 '../zlib/zlib.gyp:zlib',
26 'CHROME_PNG_WRITE_SUPPORT',
29 'msvs_guid': 'C564F145-9172-42C3-BFCB-6014CA97DBCD',
52 'direct_dependent_settings': {
57 'CHROME_PNG_WRITE_SUPPORT',
61 'export_dependent_settings': [
62 '../zlib/zlib.gyp:zlib',
65 ['OS!="win"', {'product_name': 'png'}],
66 ['OS=="win" and component=="shared_library"', {
71 'direct_dependent_settings': {
84 'pkg-config': '../../build/linux/pkg-config-wrapper "<(sysroot)"',
88 'pkg-config': 'pkg-config'
94 'target_name': 'libpng',
97 '../zlib/zlib.gyp:zlib',
99 'direct_dependent_settings': {
101 '<!@(<(pkg-config) --cflags libpng)',
109 '<!@(<(pkg-config) --libs-only-L --libs-only-other libpng)',
112 '<!@(<(pkg-config) --libs-only-l libpng)',
123 # indent-tabs-mode:nil
125 # vim: set expandtab tabstop=2 shiftwidth=2: