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 if (component_mode == "shared_library") {
80 ldflags = [ "/DEF:" + rebase_path("exports_win.def", root_build_dir) ]
82 } else if (is_linux) {
83 if (component_mode == "shared_library") {
84 configs -= [ "//build/config/gcc:symbol_visibility_hidden" ]
89 include_dirs = [ "bodge" ]
91 # Must be after ssl_config since we want our SSL headers to take
93 public_configs += [ "//third_party/nss:system_nss_no_ssl_config" ]
95 libs = [ "Security.framework" ]
99 # SSL triggers some of these Clang warnings.
100 configs -= [ "//build/config/clang:extra_warnings" ]
110 if (is_mac || is_ios) {
118 if (is_mac || is_ios || is_win) {
119 sources -= [ "bodge/secitem_array.c" ]
121 "//third_party/nss:nspr",
122 "//third_party/nss:nss",
127 defines += [ "DEBUG" ]