OLD | NEW |
(Empty) | |
| 1 # Copyright 2014 Google Inc. |
| 2 # |
| 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. |
| 5 |
| 6 { |
| 7 'variables': { |
| 8 'skia_warnings_as_errors': 0, |
| 9 }, |
| 10 'targets': [ |
| 11 { |
| 12 'target_name': 'libpng', |
| 13 'conditions': [ |
| 14 [ 'skia_libpng_static', |
| 15 { |
| 16 'type': 'static_library', |
| 17 'include_dirs': [ |
| 18 '../third_party/externals/libpng', |
| 19 ], |
| 20 'dependencies': [ |
| 21 'zlib.gyp:zlib', |
| 22 ], |
| 23 'export_dependent_settings': [ |
| 24 'zlib.gyp:zlib', |
| 25 ], |
| 26 'direct_dependent_settings': { |
| 27 'include_dirs': [ |
| 28 '../third_party/externals/libpng', |
| 29 ], |
| 30 }, |
| 31 'cflags': [ |
| 32 '-w', |
| 33 '-fvisibility=hidden', |
| 34 ], |
| 35 'sources': [ |
| 36 '../third_party/externals/libpng/png.c', |
| 37 '../third_party/externals/libpng/pngerror.c', |
| 38 '../third_party/externals/libpng/pnggccrd.c', |
| 39 '../third_party/externals/libpng/pngget.c', |
| 40 '../third_party/externals/libpng/pngmem.c', |
| 41 '../third_party/externals/libpng/pngpread.c', |
| 42 '../third_party/externals/libpng/pngread.c', |
| 43 '../third_party/externals/libpng/pngrio.c', |
| 44 '../third_party/externals/libpng/pngrtran.c', |
| 45 '../third_party/externals/libpng/pngrutil.c', |
| 46 '../third_party/externals/libpng/pngset.c', |
| 47 '../third_party/externals/libpng/pngtrans.c', |
| 48 '../third_party/externals/libpng/pngvcrd.c', |
| 49 '../third_party/externals/libpng/pngwio.c', |
| 50 '../third_party/externals/libpng/pngwrite.c', |
| 51 '../third_party/externals/libpng/pngwtran.c', |
| 52 '../third_party/externals/libpng/pngwutil.c', |
| 53 ], |
| 54 }, { # not skia_libpng_static |
| 55 'type': 'none', |
| 56 'conditions': [ |
| 57 [ 'skia_os == "android"', |
| 58 { |
| 59 # TODO(halcanary): merge all png targets into this file. |
| 60 'dependencies': [ |
| 61 'android_deps.gyp:png', |
| 62 ], |
| 63 'export_dependent_settings': [ |
| 64 'android_deps.gyp:png', |
| 65 ], |
| 66 }, { # skia_os != "android" |
| 67 'dependencies': [ |
| 68 'zlib.gyp:zlib', |
| 69 ], |
| 70 'export_dependent_settings': [ |
| 71 'zlib.gyp:zlib', |
| 72 ], |
| 73 'direct_dependent_settings': { |
| 74 'link_settings': { |
| 75 'libraries': [ |
| 76 '-lpng', |
| 77 ], |
| 78 }, |
| 79 }, |
| 80 } |
| 81 ] |
| 82 ] |
| 83 } |
| 84 ] |
| 85 ], |
| 86 }, |
| 87 ] |
| 88 } |
OLD | NEW |