OLD | NEW |
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 # This file declares build flags for the SSL library configuration. | 5 # This file declares build flags for the SSL library configuration. |
6 # | 6 # |
7 # TODO(brettw) this should probably be moved to src/crypto or somewhere, and | 7 # TODO(brettw) this should probably be moved to src/crypto or somewhere, and |
8 # the global build dependency on it should be removed. | 8 # the global build dependency on it should be removed. |
9 | 9 |
10 declare_args() { | 10 declare_args() { |
11 # Use OpenSSL instead of NSS. This is used for Android and is experimental | 11 # Use OpenSSL instead of NSS. This is used for Android and NaCl untrusted |
12 # in other cases (see http://crbug.com/62803). | 12 # code, and is experimental in other cases (see http://crbug.com/62803). |
13 use_openssl = false | 13 use_openssl = is_android || is_nacl |
14 } | 14 } |
15 | 15 |
16 if (is_linux && !use_openssl) { | 16 if (is_linux && !use_openssl) { |
17 use_nss = true | 17 use_nss = true |
18 } else { | 18 } else { |
19 use_nss = false | 19 use_nss = false |
20 } | 20 } |
OLD | NEW |