# Copyright 2014 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

{
  'targets': [{
    'target_name': 'zlib',
    'type': 'none',
    'link_settings': { 'libraries': [ '-lz' ] },
    'direct_dependent_settings': {
      'conditions': [
        [ 'skia_android_framework', { 'include_dirs': [ 'external/zlib' ] }]
      ],
    },
  }],
}

@@ -196,57 +196,8 @@
 e',%0A
-    'link_settings': %7B 'libraries': %5B '-lz' %5D %7D,%0A
     
@@ -325,16 +325,311 @@
 ib' %5D %7D%5D
+,%0A        %5B 'skia_os == %22mac%22 or skia_os == %22ios%22', %7B%0A            # XCode needs and explicit file path, not a logical name like -lz.%0A            'link_settings': %7B 'libraries': %5B '$(SDKROOT)/usr/lib/libz.dylib' %5D %7D,%0A        %7D,%7B%0A            'link_settings': %7B 'libraries': %5B '-lz' %5D %7D,%0A        %7D%5D
 %0A      %5D

fix xcode build