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

Side by Side Diff: runtime/bin/net/zlib.gyp

Issue 10909189: Add gyp files to build NSS in Dart (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove changes at global level, move to runtime configuration file. Created 8 years, 1 month 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
(Empty)
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 {
6 'includes': [
7 '../../tools/gyp/runtime-configurations.gypi',
8 '../../tools/gyp/third_party_configurations.gypi',
9 ],
10 'variables': {
11 'zlib_path': '../../../third_party/zlib',
12 'conditions': [
13 [ 'OS=="none"', {
14 # Because we have a patched zlib, we cannot use the system libz.
15 # TODO(pvalchev): OpenBSD is purposefully left out, as the system
16 # zlib brings up an incompatibility that breaks rendering.
17 'use_system_zlib%': 1,
18 }, {
19 'use_system_zlib%': 0,
20 }],
21 ],
22 },
23 'targets': [
24 {
25 'target_name': 'zlib',
26 'type': 'static_library',
27 'conditions': [
28 ['use_system_zlib==0', {
29 'sources': [
30 '<(zlib_path)/contrib/minizip/ioapi.c',
31 '<(zlib_path)/contrib/minizip/ioapi.h',
32 '<(zlib_path)/contrib/minizip/iowin32.c',
33 '<(zlib_path)/contrib/minizip/iowin32.h',
34 '<(zlib_path)/contrib/minizip/unzip.c',
35 '<(zlib_path)/contrib/minizip/unzip.h',
36 '<(zlib_path)/contrib/minizip/zip.c',
37 '<(zlib_path)/contrib/minizip/zip.h',
38 '<(zlib_path)/adler32.c',
39 '<(zlib_path)/compress.c',
40 '<(zlib_path)/crc32.c',
41 '<(zlib_path)/crc32.h',
42 '<(zlib_path)/deflate.c',
43 '<(zlib_path)/deflate.h',
44 '<(zlib_path)/gzio.c',
45 '<(zlib_path)/infback.c',
46 '<(zlib_path)/inffast.c',
47 '<(zlib_path)/inffast.h',
48 '<(zlib_path)/inffixed.h',
49 '<(zlib_path)/inflate.c',
50 '<(zlib_path)/inflate.h',
51 '<(zlib_path)/inftrees.c',
52 '<(zlib_path)/inftrees.h',
53 '<(zlib_path)/mozzconf.h',
54 '<(zlib_path)/trees.c',
55 '<(zlib_path)/trees.h',
56 '<(zlib_path)/uncompr.c',
57 '<(zlib_path)/zconf.h',
58 '<(zlib_path)/zlib.h',
59 '<(zlib_path)/zutil.c',
60 '<(zlib_path)/zutil.h',
61 ],
62 'include_dirs': [
63 '<(zlib_path)/.',
64 # For contrib/minizip
65 '<(zlib_path)/../..',
66 ],
67 'direct_dependent_settings': {
68 'include_dirs': [
69 '<(zlib_path)/.',
70 ],
71 },
72 'conditions': [
73 ['OS!="win"', {
74 'product_name': 'chrome_zlib',
75 'sources!': [
76 '<(zlib_path)/contrib/minizip/iowin32.c'
77 ],
78 }], ['OS=="android"', {
79 'toolsets': ['target', 'host'],
80 }],
81 ],
82 }, {
83 'direct_dependent_settings': {
84 'defines': [
85 'USE_SYSTEM_ZLIB',
86 ],
87 },
88 'defines': [
89 'USE_SYSTEM_ZLIB',
90 ],
91 'sources': [
92 '<(zlib_path)/contrib/minizip/ioapi.c',
93 '<(zlib_path)/contrib/minizip/ioapi.h',
94 '<(zlib_path)/contrib/minizip/unzip.c',
95 '<(zlib_path)/contrib/minizip/unzip.h',
96 '<(zlib_path)/contrib/minizip/zip.c',
97 '<(zlib_path)/contrib/minizip/zip.h',
98 ],
99 'conditions': [
100 ['OS=="android"', {
101 'toolsets': ['target', 'host'],
102 }],
103 ],
104 'link_settings': {
105 'libraries': [
106 '-lz',
107 ],
108 },
109 }],
110 ['OS=="mac" or OS=="ios" or os_bsd==1 or OS=="android"', {
111 # Mac, Android and the BSDs don't have fopen64, ftello64, or
112 # fseeko64. We use fopen, ftell, and fseek instead on these
113 # systems.
114 'defines': [
115 'USE_FILE32API'
116 ],
117 }],
118 ['clang==1', {
119 'xcode_settings': {
120 'WARNING_CFLAGS': [
121 # zlib uses `if ((a == b))` for some reason.
122 '-Wno-parentheses-equality',
123 ],
124 },
125 'cflags': [
126 '-Wno-parentheses-equality',
127 ],
128 }],
129 ],
130 }
131 ],
132 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698