| 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 config("ssl_config") { | 5 config("ssl_config") { |
| 6 include_dirs = [ "." ] | 6 include_dirs = [ "." ] |
| 7 | 7 |
| 8 if (is_mac || is_win) { | 8 if (is_mac || is_win) { |
| 9 defines = [ "NSS_PLATFORM_CLIENT_AUTH" ] | 9 defines = [ "NSS_PLATFORM_CLIENT_AUTH" ] |
| 10 } | 10 } |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 libs = [ "Security.framework" ] | 93 libs = [ "Security.framework" ] |
| 94 } | 94 } |
| 95 | 95 |
| 96 if (is_clang) { | 96 if (is_clang) { |
| 97 # SSL triggers some of these Clang warnings. | 97 # SSL triggers some of these Clang warnings. |
| 98 configs -= [ "//build/config/clang:extra_warnings" ] | 98 configs -= [ "//build/config/clang:extra_warnings" ] |
| 99 | 99 |
| 100 # There is a broken header guard in /usr/include/nss/secmod.h: | 100 # There is a broken header guard in /usr/include/nss/secmod.h: |
| 101 # https://bugzilla.mozilla.org/show_bug.cgi?id=884072 | 101 # https://bugzilla.mozilla.org/show_bug.cgi?id=884072 |
| 102 cflags = [ "-Wno-header-guard" ] | 102 cflags = [ "-Wno-header-guard" ] |
| 103 |
| 104 if (is_ios) { |
| 105 # libssl uses routines deprecated on iOS (sem_init/sem_destroy). |
| 106 # https://bugzilla.mozilla.org/show_bug.cgi?id=1192500 |
| 107 cflags += [ "-Wno-deprecated-declarations" ] |
| 108 } |
| 103 } | 109 } |
| 104 | 110 |
| 105 if (is_posix) { | 111 if (is_posix) { |
| 106 sources -= [ | 112 sources -= [ |
| 107 "win32err.c", | 113 "win32err.c", |
| 108 "win32err.h", | 114 "win32err.h", |
| 109 ] | 115 ] |
| 110 } | 116 } |
| 111 | 117 |
| 112 if (is_mac || is_ios) { | 118 if (is_mac || is_ios) { |
| 113 defines += [ | 119 defines += [ |
| 114 "XP_UNIX", | 120 "XP_UNIX", |
| 115 "DARWIN", | 121 "DARWIN", |
| 116 "XP_MACOSX", | 122 "XP_MACOSX", |
| 117 ] | 123 ] |
| 118 } | 124 } |
| 119 | 125 |
| 120 if (is_mac || is_ios || is_win) { | 126 if (is_mac || is_ios || is_win) { |
| 121 sources -= [ "bodge/secitem_array.c" ] | 127 sources -= [ "bodge/secitem_array.c" ] |
| 122 public_deps = [ | 128 public_deps = [ |
| 123 "//third_party/nss:nspr", | 129 "//third_party/nss:nspr", |
| 124 "//third_party/nss:nss", | 130 "//third_party/nss:nss", |
| 125 ] | 131 ] |
| 126 } | 132 } |
| 127 | 133 |
| 128 if (is_debug) { | 134 if (is_debug) { |
| 129 defines += [ "DEBUG" ] | 135 defines += [ "DEBUG" ] |
| 130 } | 136 } |
| 131 } | 137 } |
| OLD | NEW |