| 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': [ |
| 11 { | 11 { |
| 12 'target_name': 'libpng', | 12 'target_name': 'libpng', |
| 13 'conditions': [ | 13 'conditions': [ |
| 14 [ 'skia_libpng_static', | 14 [ 'skia_libpng_static', |
| 15 { | 15 { |
| 16 'type': 'static_library', | 16 'type': 'static_library', |
| 17 'include_dirs': [ | 17 'include_dirs': [ |
| 18 '../third_party/externals/libpng', | 18 '../third_party/externals/libpng', |
| 19 # Needed for generated pnglibconf.h |
| 20 '../third_party/libpng', |
| 19 ], | 21 ], |
| 20 'dependencies': [ | 22 'dependencies': [ |
| 21 'zlib.gyp:zlib', | 23 'zlib.gyp:zlib', |
| 22 ], | 24 ], |
| 23 'export_dependent_settings': [ | 25 'export_dependent_settings': [ |
| 24 'zlib.gyp:zlib', | 26 'zlib.gyp:zlib', |
| 25 ], | 27 ], |
| 26 'direct_dependent_settings': { | 28 'direct_dependent_settings': { |
| 27 'include_dirs': [ | 29 'include_dirs': [ |
| 28 '../third_party/externals/libpng', | 30 '../third_party/externals/libpng', |
| 31 # Needed for generated pnglibconf.h |
| 32 '../third_party/libpng', |
| 29 ], | 33 ], |
| 30 }, | 34 }, |
| 31 'cflags': [ | 35 'cflags': [ |
| 32 '-w', | 36 '-w', |
| 33 '-fvisibility=hidden', | 37 '-fvisibility=hidden', |
| 34 ], | 38 ], |
| 39 'conditions': [ |
| 40 ['not arm_neon', { |
| 41 'defines': [ |
| 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 ], |
| 35 'sources': [ | 49 'sources': [ |
| 36 '../third_party/externals/libpng/png.c', | 50 '../third_party/externals/libpng/png.c', |
| 37 '../third_party/externals/libpng/pngerror.c', | 51 '../third_party/externals/libpng/pngerror.c', |
| 38 '../third_party/externals/libpng/pnggccrd.c', | |
| 39 '../third_party/externals/libpng/pngget.c', | 52 '../third_party/externals/libpng/pngget.c', |
| 40 '../third_party/externals/libpng/pngmem.c', | 53 '../third_party/externals/libpng/pngmem.c', |
| 41 '../third_party/externals/libpng/pngpread.c', | 54 '../third_party/externals/libpng/pngpread.c', |
| 42 '../third_party/externals/libpng/pngread.c', | 55 '../third_party/externals/libpng/pngread.c', |
| 43 '../third_party/externals/libpng/pngrio.c', | 56 '../third_party/externals/libpng/pngrio.c', |
| 44 '../third_party/externals/libpng/pngrtran.c', | 57 '../third_party/externals/libpng/pngrtran.c', |
| 45 '../third_party/externals/libpng/pngrutil.c', | 58 '../third_party/externals/libpng/pngrutil.c', |
| 46 '../third_party/externals/libpng/pngset.c', | 59 '../third_party/externals/libpng/pngset.c', |
| 47 '../third_party/externals/libpng/pngtrans.c', | 60 '../third_party/externals/libpng/pngtrans.c', |
| 48 '../third_party/externals/libpng/pngvcrd.c', | |
| 49 '../third_party/externals/libpng/pngwio.c', | 61 '../third_party/externals/libpng/pngwio.c', |
| 50 '../third_party/externals/libpng/pngwrite.c', | 62 '../third_party/externals/libpng/pngwrite.c', |
| 51 '../third_party/externals/libpng/pngwtran.c', | 63 '../third_party/externals/libpng/pngwtran.c', |
| 52 '../third_party/externals/libpng/pngwutil.c', | 64 '../third_party/externals/libpng/pngwutil.c', |
| 53 ], | 65 ], |
| 54 }, { # not skia_libpng_static | 66 }, { # not skia_libpng_static |
| 55 'type': 'none', | 67 'type': 'none', |
| 56 'conditions': [ | 68 'conditions': [ |
| 57 [ 'skia_os == "android"', | 69 [ 'skia_os == "android"', |
| 58 { | 70 { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 79 }, | 91 }, |
| 80 } | 92 } |
| 81 ] | 93 ] |
| 82 ] | 94 ] |
| 83 } | 95 } |
| 84 ] | 96 ] |
| 85 ], | 97 ], |
| 86 }, | 98 }, |
| 87 ] | 99 ] |
| 88 } | 100 } |
| OLD | NEW |