blob: 4b0a5956954e7d6a034104ac37032f0edbad74fc [file] [log] [blame]
# 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',
'direct_dependent_settings': {
'conditions': [
[ 'skia_android_framework', { 'include_dirs': [ 'external/zlib' ] }],
[ 'skia_os == "mac" or skia_os == "ios"', {
# XCode needs and explicit file path, not a logical name like -lz.
'link_settings': { 'libraries': [ '$(SDKROOT)/usr/lib/libz.dylib' ] },
},{
'link_settings': { 'libraries': [ '-lz' ] },
}]
],
},
},{
'target_name': 'miniz',
'type': 'none',
'direct_dependent_settings': {
'include_dirs': [ '../third_party/miniz' ],
'defines': [ 'ZLIB_INCLUDE="miniz.c"' ],
# Not ideal, but GCC's issuing an otherwise-unstoppable (but innocuous) warning from miniz.c
'cflags': [ '-w' ],
},
}],
}