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

Side by Side Diff: tools/gn/secondary/third_party/zlib/BUILD.gn

Issue 239543013: Work on Mac GN build (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix line endings Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 config("zlib_config") { 5 config("zlib_config") {
6 include_dirs = [ "." ] 6 include_dirs = [ "." ]
7 } 7 }
8 8
9 static_library("zlib") { 9 static_library("zlib") {
10 if (!is_win) { 10 if (!is_win) {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 "contrib/minizip/unzip.h", 58 "contrib/minizip/unzip.h",
59 "contrib/minizip/zip.c", 59 "contrib/minizip/zip.c",
60 "contrib/minizip/zip.h", 60 "contrib/minizip/zip.h",
61 ] 61 ]
62 62
63 if (!is_win) { 63 if (!is_win) {
64 sources -= [ 64 sources -= [
65 "contrib/minizip/iowin32.c", 65 "contrib/minizip/iowin32.c",
66 "contrib/minizip/iowin32.h", 66 "contrib/minizip/iowin32.h",
67 ] 67 ]
68 } else if (is_mac || is_ios || is_android) { 68 }
69 if (is_mac || is_ios || is_android) {
69 # Mac, Android and the BSDs don't have fopen64, ftello64, or fseeko64. We 70 # Mac, Android and the BSDs don't have fopen64, ftello64, or fseeko64. We
70 # use fopen, ftell, and fseek instead on these systems. 71 # use fopen, ftell, and fseek instead on these systems.
71 defines = [ "USE_FILE32API" ] 72 defines = [ "USE_FILE32API" ]
72 } 73 }
73 74
74 if (is_clang) { 75 if (is_clang) {
75 # zlib uses `if ((a == b))` for some reason. 76 # zlib uses `if ((a == b))` for some reason.
76 cflags = [ "-Wno-parentheses-equality" ] 77 cflags = [ "-Wno-parentheses-equality" ]
77 } 78 }
78 79
(...skipping 11 matching lines...) Expand all
90 "google/zip_internal.cc", 91 "google/zip_internal.cc",
91 "google/zip_internal.h", 92 "google/zip_internal.h",
92 "google/zip_reader.cc", 93 "google/zip_reader.cc",
93 "google/zip_reader.h", 94 "google/zip_reader.h",
94 ] 95 ]
95 deps = [ 96 deps = [
96 ":minizip", 97 ":minizip",
97 "//base", 98 "//base",
98 ] 99 ]
99 } 100 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698