| OLD | NEW |
| (Empty) |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 config("ssl_config") { | |
| 6 include_dirs = [ "." ] | |
| 7 | |
| 8 if (is_mac || is_win) { | |
| 9 defines = [ "NSS_PLATFORM_CLIENT_AUTH" ] | |
| 10 } | |
| 11 } | |
| 12 | |
| 13 component("libssl") { | |
| 14 output_name = "crssl" | |
| 15 | |
| 16 sources = [ | |
| 17 "SSLerrs.h", | |
| 18 "authcert.c", | |
| 19 "cmpcert.c", | |
| 20 "derive.c", | |
| 21 "dtlscon.c", | |
| 22 "preenc.h", | |
| 23 "prelib.c", | |
| 24 "ssl.h", | |
| 25 "ssl3con.c", | |
| 26 "ssl3ecc.c", | |
| 27 "ssl3ext.c", | |
| 28 "ssl3gthr.c", | |
| 29 "ssl3prot.h", | |
| 30 "sslauth.c", | |
| 31 "sslcon.c", | |
| 32 "ssldef.c", | |
| 33 "sslenum.c", | |
| 34 "sslerr.c", | |
| 35 "sslerr.h", | |
| 36 "sslerrstrs.c", | |
| 37 "sslgathr.c", | |
| 38 "sslimpl.h", | |
| 39 "sslinfo.c", | |
| 40 "sslinit.c", | |
| 41 "sslmutex.c", | |
| 42 "sslmutex.h", | |
| 43 "sslnonce.c", | |
| 44 "sslproto.h", | |
| 45 "sslreveal.c", | |
| 46 "sslsecur.c", | |
| 47 "sslsnce.c", | |
| 48 "sslsock.c", | |
| 49 "sslt.h", | |
| 50 "ssltrace.c", | |
| 51 "sslver.c", | |
| 52 "tls13con.c", | |
| 53 "tls13con.h", | |
| 54 "tls13hkdf.c", | |
| 55 "tls13hkdf.h", | |
| 56 "unix_err.c", | |
| 57 "unix_err.h", | |
| 58 ] | |
| 59 | |
| 60 public_configs = [ ":ssl_config" ] | |
| 61 | |
| 62 cflags = [] | |
| 63 defines = [ | |
| 64 "NO_PKCS11_BYPASS", | |
| 65 "NSS_ENABLE_ECC", | |
| 66 "USE_UTIL_DIRECTLY", | |
| 67 ] | |
| 68 | |
| 69 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 70 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 71 | |
| 72 if (is_clang) { | |
| 73 # SSL triggers some of these Clang warnings. | |
| 74 configs -= [ "//build/config/clang:extra_warnings" ] | |
| 75 | |
| 76 # There is a broken header guard in /usr/include/nss/secmod.h: | |
| 77 # https://bugzilla.mozilla.org/show_bug.cgi?id=884072 | |
| 78 cflags = [ "-Wno-header-guard" ] | |
| 79 | |
| 80 if (is_ios) { | |
| 81 # libssl uses routines deprecated on iOS (sem_init/sem_destroy). | |
| 82 # https://bugzilla.mozilla.org/show_bug.cgi?id=1192500 | |
| 83 cflags += [ "-Wno-deprecated-declarations" ] | |
| 84 } | |
| 85 } | |
| 86 | |
| 87 if (is_ios) { | |
| 88 defines += [ | |
| 89 "XP_UNIX", | |
| 90 "DARWIN", | |
| 91 "XP_MACOSX", | |
| 92 ] | |
| 93 } | |
| 94 | |
| 95 if (is_ios) { | |
| 96 public_deps = [ | |
| 97 "//third_party/nss:nspr", | |
| 98 "//third_party/nss:nss", | |
| 99 ] | |
| 100 } | |
| 101 | |
| 102 if (is_debug) { | |
| 103 defines += [ "DEBUG" ] | |
| 104 } | |
| 105 } | |
| OLD | NEW |