Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Unified Diff: gyp/zlib.gyp

Issue 936583002: SK_NO_FLATE (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: no source Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: gyp/zlib.gyp
diff --git a/gyp/zlib.gyp b/gyp/zlib.gyp
index 78adc34b72486f9ac41381bd776c681f77b91c05..a573dc7498d970d83f7e35848ba709aa823cb976 100644
--- a/gyp/zlib.gyp
+++ b/gyp/zlib.gyp
@@ -4,75 +4,14 @@
# found in the LICENSE file.
{
- 'variables': {
- 'skia_warnings_as_errors': 0,
- },
- 'targets': [
- {
- 'target_name': 'zlib',
+ 'targets': [{
+ 'target_name': 'zlib',
+ 'type': 'none',
+ 'link_settings': { 'libraries': [ '-lz' ] },
+ 'direct_dependent_settings': {
'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/src/adler32.c',
- '../third_party/externals/zlib/src/compress.c',
- '../third_party/externals/zlib/src/crc32.c',
- '../third_party/externals/zlib/src/deflate.c',
- '../third_party/externals/zlib/src/gzclose.c',
- '../third_party/externals/zlib/src/gzlib.c',
- '../third_party/externals/zlib/src/gzread.c',
- '../third_party/externals/zlib/src/gzwrite.c',
- '../third_party/externals/zlib/src/infback.c',
- '../third_party/externals/zlib/src/inffast.c',
- '../third_party/externals/zlib/src/inflate.c',
- '../third_party/externals/zlib/src/inftrees.c',
- '../third_party/externals/zlib/src/trees.c',
- '../third_party/externals/zlib/src/uncompr.c',
- '../third_party/externals/zlib/src/zutil.c',
- ],
- }, { # not skia_zlib_static
- 'type': 'none',
- 'direct_dependent_settings': {
- 'conditions': [
- [ 'skia_android_framework', {
- 'include_dirs': [
- 'external/zlib',
- ],
- }, {
- 'defines': [
- 'SK_SYSTEM_ZLIB=1',
- ],
- }]
- ],
- 'link_settings': {
- 'conditions': [
- [ 'skia_os == "mac" or skia_os == "ios"', {
- 'libraries': [
- '$(SDKROOT)/usr/lib/libz.dylib',
- ]
- }, { # skia_os != "mac" and skia_os != "ios"
- 'libraries': [
- '-lz',
- ]
- }],
- ],
- }
- },
- }
- ]
- ]
- }
- ]
+ [ 'skia_android_framework', { 'include_dirs': [ 'external/zlib' ] }]
+ ],
+ },
+ }],
}

Powered by Google App Engine
This is Rietveld 408576698