OLD | NEW |
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 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 | 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"', { | 8 [ 'os_posix == 1 and OS != "mac"', { |
9 # Link to system .so since we already use it due to GTK. | 9 # Link to system .so since we already use it due to GTK. |
10 'use_system_libpng%': 1, | 10 'use_system_libpng%': 1, |
11 }, { # os_posix != 1 or OS == "mac" | 11 }, { # os_posix != 1 or OS == "mac" |
12 'use_system_libpng%': 0, | 12 'use_system_libpng%': 0, |
13 }], | 13 }], |
14 ], | 14 ], |
15 }, | 15 }, |
16 'conditions': [ | 16 'conditions': [ |
17 ['use_system_libpng==0', { | 17 ['use_system_libpng==0', { |
18 'targets': [ | 18 'targets': [ |
19 { | 19 { |
20 'target_name': 'libpng', | 20 'target_name': 'libpng', |
21 'type': '<(component)', | 21 'type': '<(component)', |
22 'dependencies': [ | 22 'dependencies': [ |
23 '../zlib/zlib.gyp:zlib', | 23 '../zlib/zlib.gyp:zlib', |
24 ], | 24 ], |
25 'defines': [ | 25 'defines': [ |
26 'CHROME_PNG_WRITE_SUPPORT', | 26 'CHROME_PNG_WRITE_SUPPORT', |
27 'PNG_USER_CONFIG', | 27 'PNG_USER_CONFIG', |
28 ], | 28 ], |
29 'msvs_guid': 'C564F145-9172-42C3-BFCB-6014CA97DBCD', | |
30 'sources': [ | 29 'sources': [ |
31 'png.c', | 30 'png.c', |
32 'png.h', | 31 'png.h', |
33 'pngconf.h', | 32 'pngconf.h', |
34 'pngerror.c', | 33 'pngerror.c', |
35 'pnggccrd.c', | 34 'pnggccrd.c', |
36 'pngget.c', | 35 'pngget.c', |
37 'pngmem.c', | 36 'pngmem.c', |
38 'pngpread.c', | 37 'pngpread.c', |
39 'pngread.c', | 38 'pngread.c', |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 ], | 115 ], |
117 }], | 116 }], |
118 ], | 117 ], |
119 } | 118 } |
120 | 119 |
121 # Local Variables: | 120 # Local Variables: |
122 # tab-width:2 | 121 # tab-width:2 |
123 # indent-tabs-mode:nil | 122 # indent-tabs-mode:nil |
124 # End: | 123 # End: |
125 # vim: set expandtab tabstop=2 shiftwidth=2: | 124 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |