Tweak GYP to also link with XCode 7.
authormtklein <mtklein@chromium.org>
Mon, 13 Jul 2015 15:13:03 +0000 (08:13 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 13 Jul 2015 15:13:03 +0000 (08:13 -0700)
commit24d8249638706acc28b32959aa7b093cf356f38a
tree8aad873835df7eb54c10009eb70f7774b3aa2f78
parent1c735488cbec9abdb25c9a12e0c11af9c302a776
Tweak GYP to also link with XCode 7.

Using the XCode 7 beta, the file in the GYP doesn't exist, instead we get

/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libz.tbd

which is a text file describing libz and pointing to /usr/lib/libz.1.dylib.

There's a weird easy fix, which is that GYP looks for things in libraries like 'libz.dylib' and pattern match translates that to '-lz' on the command line.  (Infuriatingly, a literal '-lz' is interpreted as a file path...)

BUG=skia:

Review URL: https://codereview.chromium.org/1234493002
gyp/zlib.gyp