OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 { | 5 { |
6 'conditions': [ | 6 'conditions': [ |
7 [ 'os_posix == 1 and OS != "mac"', { | 7 [ 'os_posix == 1 and OS != "mac" and OS != "ios"', { |
8 'conditions': [ | 8 'conditions': [ |
9 ['sysroot!=""', { | 9 ['sysroot!=""', { |
10 'variables': { | 10 'variables': { |
11 'pkg-config': '../../../build/linux/pkg-config-wrapper "<(sysroot)"
"<(target_arch)"', | 11 'pkg-config': '../../../build/linux/pkg-config-wrapper "<(sysroot)"
"<(target_arch)"', |
12 }, | 12 }, |
13 }, { | 13 }, { |
14 'variables': { | 14 'variables': { |
15 'pkg-config': 'pkg-config' | 15 'pkg-config': 'pkg-config' |
16 }, | 16 }, |
17 }], | 17 }], |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 ], | 82 ], |
83 'defines!': [ | 83 'defines!': [ |
84 # Regrettably, NSS can't be compiled with NO_NSPR_10_SUPPORT yet. | 84 # Regrettably, NSS can't be compiled with NO_NSPR_10_SUPPORT yet. |
85 'NO_NSPR_10_SUPPORT', | 85 'NO_NSPR_10_SUPPORT', |
86 ], | 86 ], |
87 'dependencies': [ | 87 'dependencies': [ |
88 '../../../third_party/zlib/zlib.gyp:zlib', | 88 '../../../third_party/zlib/zlib.gyp:zlib', |
89 ], | 89 ], |
90 'msvs_disabled_warnings': [4018, 4244], | 90 'msvs_disabled_warnings': [4018, 4244], |
91 'conditions': [ | 91 'conditions': [ |
92 [ 'OS=="mac"', { | 92 [ 'OS == "mac" or OS == "ios"', { |
93 'defines': [ | 93 'defines': [ |
94 'XP_UNIX', | 94 'XP_UNIX', |
95 'DARWIN', | 95 'DARWIN', |
96 'XP_MACOSX', | 96 'XP_MACOSX', |
97 ], | 97 ], |
98 }], | 98 }], |
99 [ 'OS == "win"', { | 99 [ 'OS == "win"', { |
100 'sources!': [ | 100 'sources!': [ |
101 'ssl/unix_err.c', | 101 'ssl/unix_err.c', |
102 'ssl/unix_err.h', | 102 'ssl/unix_err.h', |
103 ], | 103 ], |
104 }, | 104 }, |
105 { # else: OS != "win" | 105 { # else: OS != "win" |
106 'sources!': [ | 106 'sources!': [ |
107 'ssl/win32err.c', | 107 'ssl/win32err.c', |
108 'ssl/win32err.h', | 108 'ssl/win32err.h', |
109 ], | 109 ], |
110 }, | 110 }, |
111 ], | 111 ], |
112 [ 'os_posix == 1 and OS != "mac"', { | 112 [ 'os_posix == 1 and OS != "mac" and OS != "ios"', { |
113 'defines': [ | 113 'defines': [ |
114 # These macros are needed only for compiling the files in | 114 # These macros are needed only for compiling the files in |
115 # ssl/bodge. | 115 # ssl/bodge. |
116 'SHLIB_PREFIX="lib"', | 116 'SHLIB_PREFIX="lib"', |
117 'SHLIB_SUFFIX="so"', | 117 'SHLIB_SUFFIX="so"', |
118 'SHLIB_VERSION="3"', | 118 'SHLIB_VERSION="3"', |
119 'SOFTOKEN_SHLIB_VERSION="3"', | 119 'SOFTOKEN_SHLIB_VERSION="3"', |
120 ], | 120 ], |
121 'include_dirs': [ | 121 'include_dirs': [ |
122 'ssl/bodge', | 122 'ssl/bodge', |
123 ], | 123 ], |
124 'cflags': [ | 124 'cflags': [ |
125 '<!@(<(pkg-config) --cflags nss)', | 125 '<!@(<(pkg-config) --cflags nss)', |
126 ], | 126 ], |
127 'ldflags': [ | 127 'ldflags': [ |
128 '<!@(<(pkg-config) --libs-only-L --libs-only-other nss)', | 128 '<!@(<(pkg-config) --libs-only-L --libs-only-other nss)', |
129 ], | 129 ], |
130 'libraries': [ | 130 'libraries': [ |
131 '<!@(<(pkg-config) --libs-only-l nss | sed -e "s/-lssl3//")', | 131 '<!@(<(pkg-config) --libs-only-l nss | sed -e "s/-lssl3//")', |
132 ], | 132 ], |
133 }], | 133 }], |
134 [ 'OS == "mac" or OS == "win"', { | 134 [ 'OS == "mac" or OS == "ios" or OS == "win"', { |
135 'sources/': [ | 135 'sources/': [ |
136 ['exclude', 'ssl/bodge/'], | 136 ['exclude', 'ssl/bodge/'], |
137 ], | 137 ], |
138 'defines': [ | 138 'conditions': [ |
139 'NSS_PLATFORM_CLIENT_AUTH', | 139 ['OS != "ios"', { |
| 140 'defines': [ |
| 141 'NSS_PLATFORM_CLIENT_AUTH', |
| 142 ], |
| 143 'direct_dependent_settings': { |
| 144 'defines': [ |
| 145 'NSS_PLATFORM_CLIENT_AUTH', |
| 146 ], |
| 147 }, |
| 148 }], |
140 ], | 149 ], |
141 'dependencies': [ | 150 'dependencies': [ |
142 '../../../third_party/nss/nss.gyp:nspr', | 151 '../../../third_party/nss/nss.gyp:nspr', |
143 '../../../third_party/nss/nss.gyp:nss', | 152 '../../../third_party/nss/nss.gyp:nss', |
144 ], | 153 ], |
145 'export_dependent_settings': [ | 154 'export_dependent_settings': [ |
146 '../../../third_party/nss/nss.gyp:nspr', | 155 '../../../third_party/nss/nss.gyp:nspr', |
147 '../../../third_party/nss/nss.gyp:nss', | 156 '../../../third_party/nss/nss.gyp:nss', |
148 ], | 157 ], |
149 'direct_dependent_settings': { | 158 'direct_dependent_settings': { |
150 'include_dirs': [ | 159 'include_dirs': [ |
151 'ssl', | 160 'ssl', |
152 ], | 161 ], |
153 'defines': [ | |
154 'NSS_PLATFORM_CLIENT_AUTH', | |
155 ], | |
156 }, | 162 }, |
157 }], | 163 }], |
158 ], | 164 ], |
159 'configurations': { | 165 'configurations': { |
160 'Debug_Base': { | 166 'Debug_Base': { |
161 'defines': [ | 167 'defines': [ |
162 'DEBUG', | 168 'DEBUG', |
163 ], | 169 ], |
164 }, | 170 }, |
165 }, | 171 }, |
166 }, | 172 }, |
167 ], | 173 ], |
168 } | 174 } |
OLD | NEW |