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 direct_dependent_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 configs -= [ "//build/config/gcc:symbol_visibility_hidden" ]
84 include_dirs = [ "bodge" ]
86 # Must be after ssl_config since we want our SSL headers to take
88 direct_dependent_configs += [
89 "//third_party/nss:system_nss_no_ssl_config"
92 libs = [ "Security.framework" ]
102 if (is_mac || is_ios) {
110 if (is_mac || is_ios || is_win) {
112 "bodge/secitem_array.c",
115 "//third_party/nss:nspr",
116 "//third_party/nss:nss",
118 forward_dependent_configs_from = deps
121 if (!is_win && component_mode == "shared_library") {
122 configs -= [ "//build/config/gcc:symbol_visibility_hidden" ]
127 # See http://crbug.com/138571#c8. In short, sslsecur.c picks up the
128 # system's cert.h because cert.h isn't in chromium's repo.
129 "-Wno-incompatible-pointer-types",
131 # There is a broken header guard in /usr/include/nss/secmod.h:
132 # https://bugzilla.mozilla.org/show_bug.cgi?id=884072
138 defines += [ "DEBUG" ]