Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(332)

Side by Side Diff: gyp/zlib.gyp

Issue 966963002: On windows, build zlib as a static library. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Eliminate deprecation warnings. Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gyp/skflate.gyp ('k') | third_party/miniz/LICENSE » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 Google Inc. 1 # Copyright 2014 Google Inc.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 { 6 {
7 'targets': [{ 7 'targets': [
8 'target_name': 'zlib', 8 {
9 'type': 'none', 9 # Only used by win, down below.
10 'direct_dependent_settings': { 10 'target_name' : 'zlib_x86_simd',
mtklein 2015/02/27 23:31:02 Are there portable options for these? I'm thinkin
scroggo 2015/03/02 14:16:16 IIUC, the portable versions are in the files where
11 'type': 'static_library',
12 'cflags' : ['-msse4.2', '-mpclmul'],
13 'sources' : [
14 '../third_party/externals/zlib/crc_folding.c',
15 '../third_party/externals/zlib/fill_window_sse.c',
16 ],
11 'conditions': [ 17 'conditions': [
12 [ 'skia_android_framework', { 'include_dirs': [ 'external/zlib' ] }], 18 ['skia_clang_build==1', {
13 [ 'skia_os == "mac" or skia_os == "ios"', { 19 'msvs_settings': {
14 # XCode needs and explicit file path, not a logical name like -lz. 20 'VCCLCompilerTool': {
15 'link_settings': { 'libraries': [ '$(SDKROOT)/usr/lib/libz.dylib' ] }, 21 'AdditionalOptions': [ '-msse4.2', '-mpclmul' ],
16 },{ 22 },
17 'link_settings': { 'libraries': [ '-lz' ] }, 23 },
18 }] 24 }],
19 ], 25 ],
20 }, 26 },
21 },{ 27 {
22 'target_name': 'miniz', 28 'target_name': 'zlib',
23 'type': 'none', 29 'direct_dependent_settings': {
24 'direct_dependent_settings': { 30 'conditions': [
25 'include_dirs': [ '../third_party/miniz' ], 31 [ 'skia_android_framework', { 'include_dirs': [ 'external/zlib' ] }],
26 'defines': [ 'ZLIB_INCLUDE="miniz.c"' ], 32 [ 'skia_os == "mac" or skia_os == "ios"', {
27 # Not ideal, but GCC's issuing an otherwise-unstoppable (but innocuous) wa rning from miniz.c 33 # XCode needs and explicit file path, not a logical name like -lz.
28 'cflags': [ '-w' ], 34 'link_settings': { 'libraries': [ '$(SDKROOT)/usr/lib/libz.dylib' ] },
29 }, 35 }],
36 [ 'skia_os not in ["mac", "ios", "win"]',{
mtklein 2015/02/27 23:31:02 If we're going to be building zlib, I'd feel more
scroggo 2015/03/02 14:16:16 Sounds fine to me. My preference is to land this a
37 'link_settings': { 'libraries': [ '-lz' ] },
38 }]
39 ],
40 },
41 'conditions': [
42 [ 'skia_os != "win"', {
43 'type': 'none',
44 }, {
45 # win
46 'type': 'static_library',
47 'sources': [
48 '../third_party/externals/zlib/adler32.c',
49 '../third_party/externals/zlib/compress.c',
50 '../third_party/externals/zlib/crc32.c',
51 '../third_party/externals/zlib/crc32.h',
52 '../third_party/externals/zlib/deflate.c',
53 '../third_party/externals/zlib/deflate.h',
54 '../third_party/externals/zlib/gzclose.c',
55 '../third_party/externals/zlib/gzguts.h',
56 '../third_party/externals/zlib/gzlib.c',
57 '../third_party/externals/zlib/gzread.c',
58 '../third_party/externals/zlib/gzwrite.c',
59 '../third_party/externals/zlib/infback.c',
60 '../third_party/externals/zlib/inffast.c',
61 '../third_party/externals/zlib/inffast.h',
62 '../third_party/externals/zlib/inffixed.h',
63 '../third_party/externals/zlib/inflate.c',
64 '../third_party/externals/zlib/inflate.h',
65 '../third_party/externals/zlib/inftrees.c',
66 '../third_party/externals/zlib/inftrees.h',
67 '../third_party/externals/zlib/mozzconf.h',
68 '../third_party/externals/zlib/trees.c',
69 '../third_party/externals/zlib/trees.h',
70 '../third_party/externals/zlib/uncompr.c',
71 '../third_party/externals/zlib/x86.h',
72 '../third_party/externals/zlib/x86.c',
73 '../third_party/externals/zlib/zconf.h',
74 '../third_party/externals/zlib/zlib.h',
75 '../third_party/externals/zlib/zutil.c',
76 '../third_party/externals/zlib/zutil.h',
77 ],
78 'include_dirs': [
79 '../third_party/externals/zlib/',
80 ],
81 'direct_dependent_settings': {
82 'include_dirs': [
83 '../third_party/externals/zlib',
84 ],
85 },
86 'dependencies': [
87 'zlib_x86_simd',
88 ],
89 'defines': [
90 '_CRT_NONSTDC_NO_DEPRECATE',
91 ],
92 }],
93 ],
30 }], 94 }],
31 } 95 }
OLDNEW
« no previous file with comments | « gyp/skflate.gyp ('k') | third_party/miniz/LICENSE » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698