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" ]
14 # There is a broken header guard in /usr/include/nss/secmod.h:
15 # https://bugzilla.mozilla.org/show_bug.cgi?id=884072
65 "bodge/secitem_array.c",
68 public_configs = [ ":ssl_config" ]
77 configs -= [ "//build/config/compiler:chromium_code" ]
78 configs += [ "//build/config/compiler:no_chromium_code" ]
81 cflags += [ "/wd4267" ] # Disable warning: Conversion from size_t to 'type'.
87 if (component_mode == "shared_library") {
88 ldflags = [ "/DEF:" + rebase_path("exports_win.def", root_build_dir) ]
90 } else if (is_linux) {
91 if (component_mode == "shared_library") {
92 configs -= [ "//build/config/gcc:symbol_visibility_hidden" ]
97 include_dirs = [ "bodge" ]
99 # Must be after ssl_config since we want our SSL headers to take
102 "//third_party/nss:system_nss_no_ssl_config"
105 libs = [ "Security.framework" ]
115 if (is_mac || is_ios) {
123 if (is_mac || is_ios || is_win) {
125 "bodge/secitem_array.c",
128 "//third_party/nss:nspr",
129 "//third_party/nss:nss",
134 defines += [ "DEBUG" ]