| Index: gyp/libzlib.gyp
|
| diff --git a/gyp/libzlib.gyp b/gyp/libzlib.gyp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..129e6cb2d297a1e77cf143da3ac191988ae907e7
|
| --- /dev/null
|
| +++ b/gyp/libzlib.gyp
|
| @@ -0,0 +1,76 @@
|
| +# Copyright 2014 Google Inc.
|
| +#
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +
|
| +{
|
| + 'variables': {
|
| + 'skia_warnings_as_errors': 0,
|
| + },
|
| + 'targets': [
|
| + {
|
| + 'target_name': 'libzlib',
|
| + 'conditions': [
|
| + ['skia_zlib_static', {
|
| + 'type': 'static_library',
|
| + 'include_dirs': [
|
| + '../third_party/externals/zlib',
|
| + ],
|
| + 'direct_dependent_settings': {
|
| + 'defines': [
|
| + 'SK_ZLIB_INCLUDE=<zlib.h>',
|
| + ],
|
| + 'include_dirs': [
|
| + '../third_party/externals/zlib',
|
| + ],
|
| + },
|
| + 'sources': [
|
| + '../third_party/externals/zlib/adler32.c',
|
| + '../third_party/externals/zlib/compress.c',
|
| + '../third_party/externals/zlib/crc32.c',
|
| + '../third_party/externals/zlib/deflate.c',
|
| + '../third_party/externals/zlib/gzclose.c',
|
| + '../third_party/externals/zlib/gzlib.c',
|
| + '../third_party/externals/zlib/gzread.c',
|
| + '../third_party/externals/zlib/gzwrite.c',
|
| + '../third_party/externals/zlib/infback.c',
|
| + '../third_party/externals/zlib/inffast.c',
|
| + '../third_party/externals/zlib/inflate.c',
|
| + '../third_party/externals/zlib/inftrees.c',
|
| + '../third_party/externals/zlib/trees.c',
|
| + '../third_party/externals/zlib/uncompr.c',
|
| + '../third_party/externals/zlib/zutil.c',
|
| + ],
|
| + }, {
|
| + 'type': 'none',
|
| + 'direct_dependent_settings': {
|
| + 'conditions': [
|
| + [ 'skia_android_framework', {
|
| + 'include_dirs': [
|
| + 'external/zlib',
|
| + ],
|
| + }, {
|
| + 'defines': [
|
| + 'SK_ZLIB_INCLUDE=<zlib.h>',
|
| + ],
|
| + }]
|
| + ],
|
| + 'link_settings': {
|
| + 'conditions': [
|
| + [ 'skia_os == "mac" or skia_os == "ios"', {
|
| + 'libraries': [
|
| + '$(SDKROOT)/usr/lib/libz.dylib',
|
| + ]
|
| + }, {
|
| + 'libraries': [
|
| + '-lz',
|
| + ]
|
| + }],
|
| + ],
|
| + }
|
| + },
|
| + }]
|
| + ]
|
| + }
|
| + ]
|
| +}
|
|
|