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': 'libzlib', |
| 13 'conditions': [ |
| 14 ['skia_zlib_static', { |
| 15 'type': 'static_library', |
| 16 'include_dirs': [ |
| 17 '../third_party/externals/zlib', |
| 18 ], |
| 19 'direct_dependent_settings': { |
| 20 'defines': [ |
| 21 'SK_ZLIB_INCLUDE=<zlib.h>', |
| 22 ], |
| 23 'include_dirs': [ |
| 24 '../third_party/externals/zlib', |
| 25 ], |
| 26 }, |
| 27 'sources': [ |
| 28 '../third_party/externals/zlib/adler32.c', |
| 29 '../third_party/externals/zlib/compress.c', |
| 30 '../third_party/externals/zlib/crc32.c', |
| 31 '../third_party/externals/zlib/deflate.c', |
| 32 '../third_party/externals/zlib/gzclose.c', |
| 33 '../third_party/externals/zlib/gzlib.c', |
| 34 '../third_party/externals/zlib/gzread.c', |
| 35 '../third_party/externals/zlib/gzwrite.c', |
| 36 '../third_party/externals/zlib/infback.c', |
| 37 '../third_party/externals/zlib/inffast.c', |
| 38 '../third_party/externals/zlib/inflate.c', |
| 39 '../third_party/externals/zlib/inftrees.c', |
| 40 '../third_party/externals/zlib/trees.c', |
| 41 '../third_party/externals/zlib/uncompr.c', |
| 42 '../third_party/externals/zlib/zutil.c', |
| 43 ], |
| 44 }, { |
| 45 'type': 'none', |
| 46 'direct_dependent_settings': { |
| 47 'conditions': [ |
| 48 [ 'skia_android_framework', { |
| 49 'include_dirs': [ |
| 50 'external/zlib', |
| 51 ], |
| 52 }, { |
| 53 'defines': [ |
| 54 'SK_ZLIB_INCLUDE=<zlib.h>', |
| 55 ], |
| 56 }] |
| 57 ], |
| 58 'link_settings': { |
| 59 'conditions': [ |
| 60 [ 'skia_os == "mac" or skia_os == "ios"', { |
| 61 'libraries': [ |
| 62 '$(SDKROOT)/usr/lib/libz.dylib', |
| 63 ] |
| 64 }, { |
| 65 'libraries': [ |
| 66 '-lz', |
| 67 ] |
| 68 }], |
| 69 ], |
| 70 } |
| 71 }, |
| 72 }] |
| 73 ] |
| 74 } |
| 75 ] |
| 76 } |
OLD | NEW |