OLD | NEW |
1 # Copyright 2014 Google Inc. | 1 # Copyright 2014 Google Inc. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 { | 6 { |
7 'variables': { | 7 'variables': { |
8 'skia_warnings_as_errors': 0, | 8 'skia_warnings_as_errors': 0, |
9 }, | 9 }, |
10 'targets': [ | 10 'targets': [ |
(...skipping 18 matching lines...) Expand all Loading... |
29 'include_dirs': [ | 29 'include_dirs': [ |
30 '../third_party/externals/libpng', | 30 '../third_party/externals/libpng', |
31 # Needed for generated pnglibconf.h | 31 # Needed for generated pnglibconf.h |
32 '../third_party/libpng', | 32 '../third_party/libpng', |
33 ], | 33 ], |
34 }, | 34 }, |
35 'cflags': [ | 35 'cflags': [ |
36 '-w', | 36 '-w', |
37 '-fvisibility=hidden', | 37 '-fvisibility=hidden', |
38 ], | 38 ], |
39 'conditions': [ | 39 'defines': [ |
40 ['not arm_neon', { | 40 # TODO: it'd be nice to enable PNG's NEON when possible. |
41 'defines': [ | 41 'PNG_ARM_NEON_OPT=0', |
42 # FIXME: Why is this needed? Without it, pngpriv.h sets it | |
43 # to 2 if __ARM_NEON is defined, but shouldn't __ARM_NEON | |
44 # not be defined since arm_neon is 0? | |
45 'PNG_ARM_NEON_OPT=0', | |
46 ], | |
47 }], | |
48 ], | 42 ], |
49 'sources': [ | 43 'sources': [ |
50 '../third_party/externals/libpng/png.c', | 44 '../third_party/externals/libpng/png.c', |
51 '../third_party/externals/libpng/pngerror.c', | 45 '../third_party/externals/libpng/pngerror.c', |
52 '../third_party/externals/libpng/pngget.c', | 46 '../third_party/externals/libpng/pngget.c', |
53 '../third_party/externals/libpng/pngmem.c', | 47 '../third_party/externals/libpng/pngmem.c', |
54 '../third_party/externals/libpng/pngpread.c', | 48 '../third_party/externals/libpng/pngpread.c', |
55 '../third_party/externals/libpng/pngread.c', | 49 '../third_party/externals/libpng/pngread.c', |
56 '../third_party/externals/libpng/pngrio.c', | 50 '../third_party/externals/libpng/pngrio.c', |
57 '../third_party/externals/libpng/pngrtran.c', | 51 '../third_party/externals/libpng/pngrtran.c', |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 }, | 85 }, |
92 } | 86 } |
93 ] | 87 ] |
94 ] | 88 ] |
95 } | 89 } |
96 ] | 90 ] |
97 ], | 91 ], |
98 }, | 92 }, |
99 ] | 93 ] |
100 } | 94 } |
OLD | NEW |