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" ]
19 "bodge/secitem_array.c",
60 public_configs = [ ":ssl_config" ]
69 configs -= [ "//build/config/compiler:chromium_code" ]
70 configs += [ "//build/config/compiler:no_chromium_code" ]
77 if (is_component_build) {
78 ldflags = [ "/DEF:" + rebase_path("exports_win.def", root_build_dir) ]
80 } else if (is_linux) {
81 if (is_component_build) {
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
91 public_configs += [ "//third_party/nss:system_nss_no_ssl_config" ]
93 libs = [ "Security.framework" ]
97 # SSL triggers some of these Clang warnings.
98 configs -= [ "//build/config/clang:extra_warnings" ]
100 # There is a broken header guard in /usr/include/nss/secmod.h:
101 # https://bugzilla.mozilla.org/show_bug.cgi?id=884072
102 cflags = [ "-Wno-header-guard" ]
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" ]
118 if (is_mac || is_ios) {
126 if (is_mac || is_ios || is_win) {
127 sources -= [ "bodge/secitem_array.c" ]
129 "//third_party/nss:nspr",
130 "//third_party/nss:nss",
135 defines += [ "DEBUG" ]