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

Side by Side Diff: runtime/bin/net/ssl.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: Fix typos 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 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6 # for details. All rights reserved. Use of this source code is governed by a
7 # BSD-style license that can be found in the LICENSE file.
8
9 # This file is a modified copy of Chromium's src/net/third_party/nss/ssl.gyp.
10 # Revision 165464 (this should agree with "nss_rev" in DEPS).
11 {
12 # Conditions section for ssl-bodge (Compiling SSL on linux using system
13 # NSS and NSPR libraries) removed:
14 # 'conditions': [
15 # [ 'os_posix == 1 and OS != "mac" and OS != "ios"', {
16 # ...
17
18 'includes': [ # Added by Dart.
Mads Ager (google) 2012/11/02 13:56:35 Ditto
19 '../../tools/gyp/runtime-configurations.gypi',
20 '../../tools/gyp/nss_configurations.gypi',
21 ],
22 'variables': { # Added by Dart.
23 'ssl_directory': '../../../third_party/net_nss',
24 'os_posix': 0,
25 },
26 'targets': [
27 {
28 'target_name': 'libssl',
29 'type': 'static_library',
30 'sources': [
31 # (ssl_directory) added by Dart.
32 '<(ssl_directory)/ssl/authcert.c',
33 '<(ssl_directory)/ssl/cmpcert.c',
34 '<(ssl_directory)/ssl/derive.c',
35 '<(ssl_directory)/ssl/dtls1con.c',
36 '<(ssl_directory)/ssl/nsskea.c',
37 '<(ssl_directory)/ssl/os2_err.c',
38 '<(ssl_directory)/ssl/os2_err.h',
39 '<(ssl_directory)/ssl/preenc.h',
40 '<(ssl_directory)/ssl/prelib.c',
41 '<(ssl_directory)/ssl/ssl.h',
42 '<(ssl_directory)/ssl/ssl3con.c',
43 '<(ssl_directory)/ssl/ssl3ecc.c',
44 '<(ssl_directory)/ssl/ssl3ext.c',
45 '<(ssl_directory)/ssl/ssl3gthr.c',
46 '<(ssl_directory)/ssl/ssl3prot.h',
47 '<(ssl_directory)/ssl/sslauth.c',
48 '<(ssl_directory)/ssl/sslcon.c',
49 '<(ssl_directory)/ssl/ssldef.c',
50 '<(ssl_directory)/ssl/sslenum.c',
51 '<(ssl_directory)/ssl/sslerr.c',
52 '<(ssl_directory)/ssl/sslerr.h',
53 '<(ssl_directory)/ssl/SSLerrs.h',
54 '<(ssl_directory)/ssl/sslerrstrs.c',
55 '<(ssl_directory)/ssl/sslgathr.c',
56 '<(ssl_directory)/ssl/sslimpl.h',
57 '<(ssl_directory)/ssl/sslinfo.c',
58 '<(ssl_directory)/ssl/sslinit.c',
59 '<(ssl_directory)/ssl/sslmutex.c',
60 '<(ssl_directory)/ssl/sslmutex.h',
61 '<(ssl_directory)/ssl/sslnonce.c',
62 '<(ssl_directory)/ssl/sslplatf.c',
63 '<(ssl_directory)/ssl/sslproto.h',
64 '<(ssl_directory)/ssl/sslreveal.c',
65 '<(ssl_directory)/ssl/sslsecur.c',
66 '<(ssl_directory)/ssl/sslsnce.c',
67 '<(ssl_directory)/ssl/sslsock.c',
68 '<(ssl_directory)/ssl/sslt.h',
69 '<(ssl_directory)/ssl/ssltrace.c',
70 '<(ssl_directory)/ssl/sslver.c',
71 '<(ssl_directory)/ssl/unix_err.c',
72 '<(ssl_directory)/ssl/unix_err.h',
73 '<(ssl_directory)/ssl/win32err.c',
74 '<(ssl_directory)/ssl/win32err.h',
75 ],
76 'sources!': [
77 '<(ssl_directory)/ssl/os2_err.c',
78 '<(ssl_directory)/ssl/os2_err.h',
79 ],
80 'defines': [
81 'NSS_ENABLE_ECC',
82 'NSS_ENABLE_ZLIB',
83 'USE_UTIL_DIRECTLY',
84 ],
85 'defines!': [
86 # Regrettably, NSS can't be compiled with NO_NSPR_10_SUPPORT yet.
87 'NO_NSPR_10_SUPPORT',
88 ],
89 'dependencies': [
90 'zlib.gyp:zlib',
91 'nss.gyp:nspr', # Dart: Start of copy from bodge conditions section.
92 'nss.gyp:nss',
93 ],
94 'export_dependent_settings': [
95 'nss.gyp:nspr',
96 'nss.gyp:nss',
97 ],
98 'direct_dependent_settings': {
99 'include_dirs': [
100 '<(ssl_directory)/ssl',
101 ],
102 'defines': [
103 'NSS_PLATFORM_CLIENT_AUTH',
104 ], # Dart: End of copy from bodge conditions section.
105 },
106 'msvs_disabled_warnings': [4018, 4244],
107 'conditions': [
108 [ 'clang == 1', {
109 'cflags': [
110 # See http://crbug.com/138571#c8. In short, sslsecur.c picks up the
111 # system's cert.h because cert.h isn't in chromium's repo.
112 '-Wno-incompatible-pointer-types',
113 ],
114 }],
115 [ 'OS == "linux"', { # Added by Dart.
116 'defines': [
117 'XP_UNIX',
118 'NSS_PLATFORM_CLIENT_AUTH',
119 'NSS_USE_STATIC_LIBS',
120 ],
121 }],
122 [ 'OS == "mac" or OS == "ios"', {
123 'defines': [
124 'XP_UNIX',
125 'DARWIN',
126 'XP_MACOSX',
127 ],
128 }],
129 [ 'OS == "win"', {
130 'sources!': [
131 '<(ssl_directory)/ssl/unix_err.c',
132 '<(ssl_directory)/ssl/unix_err.h',
133 ],
134 },
135 { # else: OS != "win"
136 'sources!': [
137 '<(ssl_directory)/ssl/win32err.c',
138 '<(ssl_directory)/ssl/win32err.h',
139 ],
140 },
141 ],
142 # Dart: Conditions sections for ssl/bodge removed.
143 # [ 'os_posix == 1 and OS != "mac" and OS != "ios", {
144 # ...
145 # ],
146 # [ 'OS == "mac" or OS == "ios" or OS == "win"', {
147 # ...
148 # ],
149 ],
150 'configurations': {
151 'Debug_Base': {
152 'defines': [
153 'DEBUG',
154 ],
155 },
156 },
157 },
158 ],
159 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698