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: third_party/crashpad/crashpad/third_party/zlib/zlib.gyp

Issue 2710663006: Update Crashpad to 4a2043ea65e2641ef1a921801c0aaa15ada02fc7 (Closed)
Patch Set: Update Crashpad to 4a2043ea65e2 Created 3 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
OLDNEW
(Empty)
1 # Copyright 2017 The Crashpad Authors. All rights reserved.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 {
16 'variables': {
17 'conditions': [
18 # Use the system zlib by default where available, as it is on most
19 # platforms. Windows does not have a system zlib, so use “embedded” which
20 # directs the build to use the source code in the zlib subdirectory.
21 ['OS!="win"', {
22 'zlib_source%': 'system',
23 }, {
24 'zlib_source%': 'embedded',
25 }],
26 ],
27 },
28 'targets': [
29 {
30 'target_name': 'zlib',
31 'conditions': [
32 ['zlib_source=="system"', {
33 'type': 'none',
34 'direct_dependent_settings': {
35 'defines': [
36 'CRASHPAD_ZLIB_SOURCE_SYSTEM',
37 ],
38 },
39 'link_settings': {
40 'conditions': [
41 ['OS=="mac"', {
42 'libraries': [
43 '$(SDKROOT)/usr/lib/libz.dylib',
44 ],
45 }, {
46 'libraries': [
47 '-lz',
48 ],
49 }],
50 ],
51 },
52 }],
53 ['zlib_source=="embedded"', {
54 'type': 'static_library',
55 'include_dirs': [
56 'zlib',
57 ],
58 'defines': [
59 'CRASHPAD_ZLIB_SOURCE_EMBEDDED',
60 'HAVE_STDARG_H',
61 ],
62 'direct_dependent_settings': {
63 'include_dirs': [
64 'zlib',
65 ],
66 'defines': [
67 'CRASHPAD_ZLIB_SOURCE_EMBEDDED',
68 ],
69 },
70 'sources': [
71 'zlib/adler32.c',
72 'zlib/compress.c',
73 'zlib/crc32.c',
74 'zlib/crc32.h',
75 'zlib/crc_folding.c',
76 'zlib/deflate.c',
77 'zlib/deflate.h',
78 'zlib/fill_window_sse.c',
79 'zlib/gzclose.c',
80 'zlib/gzguts.h',
81 'zlib/gzlib.c',
82 'zlib/gzread.c',
83 'zlib/gzwrite.c',
84 'zlib/infback.c',
85 'zlib/inffast.c',
86 'zlib/inffast.h',
87 'zlib/inffixed.h',
88 'zlib/inflate.c',
89 'zlib/inflate.h',
90 'zlib/inftrees.c',
91 'zlib/inftrees.h',
92 'zlib/names.h',
93 'zlib/simd_stub.c',
94 'zlib/trees.c',
95 'zlib/trees.h',
96 'zlib/uncompr.c',
97 'zlib/x86.c',
98 'zlib/x86.h',
99 'zlib/zconf.h',
100 'zlib/zlib.h',
101 'zlib/zutil.c',
102 'zlib/zutil.h',
103 'zlib_crashpad.h',
104 ],
105 'conditions': [
106 ['target_arch=="x86" or target_arch=="amd64"', {
107 'sources!': [
108 'zlib/simd_stub.c',
109 ],
110 }, {
111 'sources!': [
112 'zlib/crc_folding.c',
113 'zlib/fill_window_sse.c',
114 'zlib/x86.c',
115 'zlib/x86.h',
116 ],
117 }],
118 ['OS!="win"', {
119 'defines': [
120 'HAVE_HIDDEN',
121 'HAVE_UNISTD_H',
122 ],
123 }, {
124 'msvs_disabled_warnings': [
125 4131, # uses old-style declarator
126 4244, # conversion from 't1' to 't2', possible loss of data
127 4245, # conversion from 't1' to 't2', signed/unsigned mismatch
128 4267, # conversion from 'size_t' to 't', possible loss of data
129 4324, # structure was padded due to alignment specifier
130 ],
131 }],
132 ],
133 }],
134 ],
135 },
136 ],
137 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698