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 'variables': { | 6 'variables': { |
7 'conditions': [ | 7 'conditions': [ |
8 [ 'os_posix == 1 and OS != "mac" and OS != "android"', { | 8 [ 'os_posix == 1 and OS != "mac" and OS != "android"', { |
9 # Maybe link to system .so once the security concerns are thought | 9 # Maybe link to system .so once the security concerns are thought |
10 # through, since we already use it due to GTK. | 10 # through, since we already use it due to GTK. |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 { | 102 { |
103 'target_name': 'libpng', | 103 'target_name': 'libpng', |
104 'type': 'none', | 104 'type': 'none', |
105 'dependencies': [ | 105 'dependencies': [ |
106 '../zlib/zlib.gyp:zlib', | 106 '../zlib/zlib.gyp:zlib', |
107 ], | 107 ], |
108 'direct_dependent_settings': { | 108 'direct_dependent_settings': { |
109 'cflags': [ | 109 'cflags': [ |
110 '<!@(<(pkg-config) --cflags libpng)', | 110 '<!@(<(pkg-config) --cflags libpng)', |
111 ], | 111 ], |
112 'defines': [ | |
113 'USE_SYSTEM_LIBPNG', | |
114 ], | |
115 }, | 112 }, |
116 'link_settings': { | 113 'link_settings': { |
117 'ldflags': [ | 114 'ldflags': [ |
118 '<!@(<(pkg-config) --libs-only-L --libs-only-other libpng)', | 115 '<!@(<(pkg-config) --libs-only-L --libs-only-other libpng)', |
119 ], | 116 ], |
120 'libraries': [ | 117 'libraries': [ |
121 '<!@(<(pkg-config) --libs-only-l libpng)', | 118 '<!@(<(pkg-config) --libs-only-l libpng)', |
122 ], | 119 ], |
123 }, | 120 }, |
| 121 'variables': { |
| 122 'headers_root_path': '.', |
| 123 'header_filenames': [ |
| 124 'png.h', |
| 125 'pngconf.h', |
| 126 ], |
| 127 }, |
| 128 'includes': [ |
| 129 '../../build/shim_headers.gypi', |
| 130 ], |
124 }, | 131 }, |
125 ], | 132 ], |
126 }], | 133 }], |
127 ], | 134 ], |
128 } | 135 } |
OLD | NEW |