commit-bot@chromium.org | f84722e | 2014-02-24 20:22:34 +0000 | [diff] [blame] | 1 | # Copyright 2014 Google Inc. |
| 2 | # |
| 3 | # Use of this source code is governed by a BSD-style license that can be |
| 4 | # found in the LICENSE file. |
| 5 | |
vandebo@chromium.org | 0f1c95c | 2011-06-24 23:13:47 +0000 | [diff] [blame] | 6 | { |
bsalomon | ebc1c10 | 2015-08-06 17:33:16 -0700 | [diff] [blame] | 7 | 'variables': { |
| 8 | 'skia_warnings_as_errors': 0, |
| 9 | }, |
scroggo | 3da9181 | 2015-03-02 06:24:15 -0800 | [diff] [blame] | 10 | 'targets': [ |
| 11 | { |
mtklein | 82966b5 | 2015-03-07 07:47:51 -0800 | [diff] [blame] | 12 | # Only used by win, down below. |
scroggo | 3da9181 | 2015-03-02 06:24:15 -0800 | [diff] [blame] | 13 | 'target_name' : 'zlib_x86_simd', |
| 14 | 'type': 'static_library', |
| 15 | 'cflags' : ['-msse4.2', '-mpclmul'], |
| 16 | 'sources' : [ |
| 17 | '../third_party/externals/zlib/crc_folding.c', |
| 18 | '../third_party/externals/zlib/fill_window_sse.c', |
| 19 | ], |
mtklein | 82966b5 | 2015-03-07 07:47:51 -0800 | [diff] [blame] | 20 | 'conditions': [ |
| 21 | ['skia_clang_build==1', { |
| 22 | 'msvs_settings': { |
| 23 | 'VCCLCompilerTool': { |
| 24 | 'AdditionalOptions': [ '-msse4.2', '-mpclmul' ], |
| 25 | }, |
scroggo | 3da9181 | 2015-03-02 06:24:15 -0800 | [diff] [blame] | 26 | }, |
mtklein | 82966b5 | 2015-03-07 07:47:51 -0800 | [diff] [blame] | 27 | }], |
| 28 | ], |
scroggo | 3da9181 | 2015-03-02 06:24:15 -0800 | [diff] [blame] | 29 | }, |
| 30 | { |
| 31 | 'target_name': 'zlib', |
mtklein | 82966b5 | 2015-03-07 07:47:51 -0800 | [diff] [blame] | 32 | 'direct_dependent_settings': { |
| 33 | 'conditions': [ |
| 34 | [ 'skia_android_framework', { 'include_dirs': [ 'external/zlib' ] }], |
| 35 | [ 'skia_os == "mac" or skia_os == "ios"', { |
mtklein | 24d8249 | 2015-07-13 08:13:03 -0700 | [diff] [blame] | 36 | # XCode needs a full library name, not -lz. |
| 37 | 'link_settings': { 'libraries': [ 'libz.dylib' ] }, |
mtklein | 82966b5 | 2015-03-07 07:47:51 -0800 | [diff] [blame] | 38 | }], |
| 39 | [ 'skia_os not in ["mac", "ios", "win"]',{ |
| 40 | 'link_settings': { 'libraries': [ '-lz' ] }, |
| 41 | }] |
| 42 | ], |
| 43 | }, |
scroggo | 3da9181 | 2015-03-02 06:24:15 -0800 | [diff] [blame] | 44 | 'conditions': [ |
mtklein | 82966b5 | 2015-03-07 07:47:51 -0800 | [diff] [blame] | 45 | [ 'skia_os != "win"', { |
| 46 | 'type': 'none', |
| 47 | }, { |
| 48 | # win |
scroggo | 3da9181 | 2015-03-02 06:24:15 -0800 | [diff] [blame] | 49 | 'type': 'static_library', |
| 50 | 'sources': [ |
| 51 | '../third_party/externals/zlib/adler32.c', |
| 52 | '../third_party/externals/zlib/compress.c', |
| 53 | '../third_party/externals/zlib/crc32.c', |
| 54 | '../third_party/externals/zlib/crc32.h', |
| 55 | '../third_party/externals/zlib/deflate.c', |
| 56 | '../third_party/externals/zlib/deflate.h', |
| 57 | '../third_party/externals/zlib/gzclose.c', |
| 58 | '../third_party/externals/zlib/gzguts.h', |
| 59 | '../third_party/externals/zlib/gzlib.c', |
| 60 | '../third_party/externals/zlib/gzread.c', |
| 61 | '../third_party/externals/zlib/gzwrite.c', |
| 62 | '../third_party/externals/zlib/infback.c', |
| 63 | '../third_party/externals/zlib/inffast.c', |
| 64 | '../third_party/externals/zlib/inffast.h', |
| 65 | '../third_party/externals/zlib/inffixed.h', |
| 66 | '../third_party/externals/zlib/inflate.c', |
| 67 | '../third_party/externals/zlib/inflate.h', |
| 68 | '../third_party/externals/zlib/inftrees.c', |
| 69 | '../third_party/externals/zlib/inftrees.h', |
| 70 | '../third_party/externals/zlib/mozzconf.h', |
| 71 | '../third_party/externals/zlib/trees.c', |
| 72 | '../third_party/externals/zlib/trees.h', |
| 73 | '../third_party/externals/zlib/uncompr.c', |
mtklein | 82966b5 | 2015-03-07 07:47:51 -0800 | [diff] [blame] | 74 | '../third_party/externals/zlib/x86.h', |
| 75 | '../third_party/externals/zlib/x86.c', |
scroggo | 3da9181 | 2015-03-02 06:24:15 -0800 | [diff] [blame] | 76 | '../third_party/externals/zlib/zconf.h', |
| 77 | '../third_party/externals/zlib/zlib.h', |
| 78 | '../third_party/externals/zlib/zutil.c', |
| 79 | '../third_party/externals/zlib/zutil.h', |
| 80 | ], |
| 81 | 'include_dirs': [ |
| 82 | '../third_party/externals/zlib/', |
| 83 | ], |
| 84 | 'direct_dependent_settings': { |
| 85 | 'include_dirs': [ |
| 86 | '../third_party/externals/zlib', |
| 87 | ], |
| 88 | }, |
mtklein | 82966b5 | 2015-03-07 07:47:51 -0800 | [diff] [blame] | 89 | 'dependencies': [ |
| 90 | 'zlib_x86_simd', |
scroggo | 3da9181 | 2015-03-02 06:24:15 -0800 | [diff] [blame] | 91 | ], |
| 92 | 'defines': [ |
| 93 | '_CRT_NONSTDC_NO_DEPRECATE', |
| 94 | ], |
| 95 | }], |
| 96 | ], |
mtklein | 1e4e814 | 2015-02-17 13:10:43 -0800 | [diff] [blame] | 97 | }], |
vandebo@chromium.org | 0f1c95c | 2011-06-24 23:13:47 +0000 | [diff] [blame] | 98 | } |