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

Side by Side Diff: gyp/zlib.gyp

Issue 1665843002: Always build our own zlib. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 10 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 | « no previous file | no next file » | 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 'variables': { 7 'variables': {
8 'skia_warnings_as_errors': 0, 8 'skia_warnings_as_errors': 0,
9 }, 9 },
10 'targets': [ 10 'targets': [
11 { 11 {
12 # Only used by win, down below. 12 'target_name': 'zlib',
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 ],
20 'conditions': [ 13 'conditions': [
21 ['skia_clang_build==1', { 14 [ 'skia_android_framework', {
22 'msvs_settings': { 15 'type': 'none',
23 'VCCLCompilerTool': { 16 'direct_dependent_settings': {
24 'AdditionalOptions': [ '-msse4.2', '-mpclmul' ], 17 'include_dirs': [ 'external/zlib' ],
25 }, 18 'link_settings': { 'libraries': [ '-lz' ] },
26 }, 19 },
27 }],
28 ],
29 },
30 {
31 'target_name': 'zlib',
32 'direct_dependent_settings': {
33 'conditions': [
34 [ 'skia_android_framework', { 'include_dirs': [ 'external/zlib' ] }],
35 [ 'skia_os == "mac" or skia_os == "ios"', {
36 # XCode needs a full library name, not -lz.
37 'link_settings': { 'libraries': [ 'libz.dylib' ] },
38 }],
39 [ 'skia_os not in ["mac", "ios", "win"]',{
40 'link_settings': { 'libraries': [ '-lz' ] },
41 }]
42 ],
43 },
44 'conditions': [
45 [ 'skia_os != "win"', {
46 'type': 'none',
47 }, { 20 }, {
48 # win
49 'type': 'static_library', 21 'type': 'static_library',
50 'sources': [ 22 'sources': [
51 '../third_party/externals/zlib/adler32.c', 23 '../third_party/externals/zlib/adler32.c',
52 '../third_party/externals/zlib/compress.c', 24 '../third_party/externals/zlib/compress.c',
53 '../third_party/externals/zlib/crc32.c', 25 '../third_party/externals/zlib/crc32.c',
54 '../third_party/externals/zlib/crc32.h',
55 '../third_party/externals/zlib/deflate.c', 26 '../third_party/externals/zlib/deflate.c',
56 '../third_party/externals/zlib/deflate.h',
57 '../third_party/externals/zlib/gzclose.c', 27 '../third_party/externals/zlib/gzclose.c',
58 '../third_party/externals/zlib/gzguts.h',
59 '../third_party/externals/zlib/gzlib.c', 28 '../third_party/externals/zlib/gzlib.c',
60 '../third_party/externals/zlib/gzread.c', 29 '../third_party/externals/zlib/gzread.c',
61 '../third_party/externals/zlib/gzwrite.c', 30 '../third_party/externals/zlib/gzwrite.c',
62 '../third_party/externals/zlib/infback.c', 31 '../third_party/externals/zlib/infback.c',
63 '../third_party/externals/zlib/inffast.c', 32 '../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', 33 '../third_party/externals/zlib/inflate.c',
67 '../third_party/externals/zlib/inflate.h',
68 '../third_party/externals/zlib/inftrees.c', 34 '../third_party/externals/zlib/inftrees.c',
69 '../third_party/externals/zlib/inftrees.h', 35 '../third_party/externals/zlib/simd_stub.c',
70 '../third_party/externals/zlib/mozzconf.h',
71 '../third_party/externals/zlib/trees.c', 36 '../third_party/externals/zlib/trees.c',
72 '../third_party/externals/zlib/trees.h',
73 '../third_party/externals/zlib/uncompr.c', 37 '../third_party/externals/zlib/uncompr.c',
74 '../third_party/externals/zlib/x86.h',
75 '../third_party/externals/zlib/x86.c',
76 '../third_party/externals/zlib/zconf.h',
77 '../third_party/externals/zlib/zlib.h',
78 '../third_party/externals/zlib/zutil.c', 38 '../third_party/externals/zlib/zutil.c',
79 '../third_party/externals/zlib/zutil.h',
80 ], 39 ],
81 'include_dirs': [ 40 'include_dirs': [
82 '../third_party/externals/zlib/', 41 '../third_party/externals/zlib/',
83 ], 42 ],
84 'direct_dependent_settings': { 43 'direct_dependent_settings': {
85 'include_dirs': [ 44 'include_dirs': [
86 '../third_party/externals/zlib', 45 '../third_party/externals/zlib',
87 ], 46 ],
88 }, 47 },
89 'dependencies': [
90 'zlib_x86_simd',
91 ],
92 'defines': [ 48 'defines': [
93 '_CRT_NONSTDC_NO_DEPRECATE', 49 '_CRT_NONSTDC_NO_DEPRECATE',
94 ], 50 ],
95 }], 51 }],
96 ], 52 ],
97 }], 53 }],
98 } 54 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698