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.
8 if (is_mac || is_win) {
9 defines = [ "NSS_PLATFORM_CLIENT_AUTH" ]
57 "bodge/secitem_array.c",
60 public_configs = [ ":ssl_config" ]
69 configs -= [ "//build/config/compiler:chromium_code" ]
70 configs += [ "//build/config/compiler:no_chromium_code" ]
73 cflags += [ "/wd4267" ] # Disable warning: Conversion from size_t to 'type'.
79 sources += [ "exports_win.def" ]
80 } else if (is_linux) {
81 if (component_mode == "shared_library") {
82 configs -= [ "//build/config/gcc:symbol_visibility_hidden" ]
87 include_dirs = [ "bodge" ]
89 # Must be after ssl_config since we want our SSL headers to take
92 "//third_party/nss:system_nss_no_ssl_config"
95 libs = [ "Security.framework" ]
105 if (is_mac || is_ios) {
113 if (is_mac || is_ios || is_win) {
115 "bodge/secitem_array.c",
118 "//third_party/nss:nspr",
119 "//third_party/nss:nss",
125 # See http://crbug.com/138571#c8. In short, sslsecur.c picks up the
126 # system's cert.h because cert.h isn't in chromium's repo.
127 "-Wno-incompatible-pointer-types",
129 # There is a broken header guard in /usr/include/nss/secmod.h:
130 # https://bugzilla.mozilla.org/show_bug.cgi?id=884072
136 defines += [ "DEBUG" ]