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 'toolsets': ['target', 'host'], |
9 'dependencies': [ | 10 'dependencies': [ |
10 '../zlib/zlib.gyp:zlib', | 11 '../zlib/zlib.gyp:zlib', |
11 ], | 12 ], |
12 'defines': [ | 13 'defines': [ |
13 'CHROME_PNG_WRITE_SUPPORT', | 14 'CHROME_PNG_WRITE_SUPPORT', |
14 'PNG_USER_CONFIG', | 15 'PNG_USER_CONFIG', |
15 ], | 16 ], |
16 'sources': [ | 17 'sources': [ |
17 'png.c', | 18 'png.c', |
18 'png.h', | 19 'png.h', |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 }], | 61 }], |
61 ['OS=="win" and component=="shared_library"', { | 62 ['OS=="win" and component=="shared_library"', { |
62 'defines': [ | 63 'defines': [ |
63 'PNG_BUILD_DLL', | 64 'PNG_BUILD_DLL', |
64 'PNG_NO_MODULEDEF', | 65 'PNG_NO_MODULEDEF', |
65 ], | 66 ], |
66 'direct_dependent_settings': { | 67 'direct_dependent_settings': { |
67 'defines': [ | 68 'defines': [ |
68 'PNG_USE_DLL', | 69 'PNG_USE_DLL', |
69 ], | 70 ], |
70 }, | 71 }, |
71 }], | 72 }], |
72 ['OS=="android"', { | 73 ['OS=="android" and _toolset=="target"', { |
73 'toolsets': ['target', 'host'], | 74 'includes': [ |
| 75 "../../build/android/cpufeatures.gypi", |
| 76 ], |
| 77 }], |
| 78 ['target_arch=="arm"', { |
| 79 'sources': [ |
| 80 'arm/arm_init.c', |
| 81 'arm/filter_neon.S', |
| 82 ], |
74 }], | 83 }], |
75 ], | 84 ], |
76 }, | 85 }, |
77 ] | 86 ] |
78 } | 87 } |
OLD | NEW |