blob: 7665505682164d57d76f7c964824b464687c8385 [file] [log] [blame]
vandebo@chromium.org0f1c95c2011-06-24 23:13:47 +00001{
2 'includes': [
epoger@google.com5351b372011-07-01 17:16:26 +00003 'common.gypi',
vandebo@chromium.org0f1c95c2011-06-24 23:13:47 +00004 ],
5 'targets': [
6 {
7 'target_name': 'zlib',
8 'type': 'static_library',
9 'include_dirs': [
10 '../include/config',
11 '../include/core',
12 ],
13 'sources': [
14 '../include/core/SkFlate.h',
15
16 '../src/core/SkFlate.cpp',
17 ],
18 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +000019 [ 'skia_os == "mac"', {
vandebo@chromium.org0f1c95c2011-06-24 23:13:47 +000020 'link_settings': {
21 'libraries': [
22 '$(SDKROOT)/usr/lib/libz.dylib',
23 ],
24 },
25 'defines': [ 'SK_ZLIB_INCLUDE=<zlib.h>', ],
26 }],
epoger@google.com8846cb22011-07-01 20:20:07 +000027 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
vandebo@chromium.org0f1c95c2011-06-24 23:13:47 +000028 'link_settings': { 'libraries': [ '-lz', ], },
29 'defines': [ 'SK_ZLIB_INCLUDE=<zlib.h>', ],
30 }],
31 ],
32 },
33 ],
34}
35
36# Local Variables:
37# tab-width:2
38# indent-tabs-mode:nil
39# End:
40# vim: set expandtab tabstop=2 shiftwidth=2: