Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 config("ssl_config") { | 5 config("ssl_config") { |
| 6 include_dirs = [ "." ] | 6 include_dirs = [ "." ] |
| 7 | 7 |
| 8 if (is_mac || is_win) { | 8 if (is_mac || is_win) { |
| 9 defines = [ "NSS_PLATFORM_CLIENT_AUTH" ] | 9 defines = [ "NSS_PLATFORM_CLIENT_AUTH" ] |
| 10 } | 10 } |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 60 public_configs = [ ":ssl_config" ] | 60 public_configs = [ ":ssl_config" ] |
| 61 | 61 |
| 62 cflags = [] | 62 cflags = [] |
| 63 defines = [ | 63 defines = [ |
| 64 "NO_PKCS11_BYPASS", | 64 "NO_PKCS11_BYPASS", |
| 65 "NSS_ENABLE_ECC", | 65 "NSS_ENABLE_ECC", |
| 66 "USE_UTIL_DIRECTLY", | 66 "USE_UTIL_DIRECTLY", |
| 67 ] | 67 ] |
| 68 | 68 |
| 69 configs -= [ "//build/config/compiler:chromium_code" ] | 69 configs -= [ "//build/config/compiler:chromium_code" ] |
| 70 configs += [ "//build/config/compiler:no_chromium_code" ] | 70 configs += [ |
| 71 "//build/config/compiler:no_chromium_code", | |
| 72 "//build/config/compiler:no_size_t_to_int_warning", | |
|
Dirk Pranke
2015/02/18 21:29:29
no_size_t is already disabled in no_chromium_code,
| |
| 73 ] | |
| 71 | 74 |
| 72 if (is_win) { | 75 if (is_win) { |
| 73 cflags += [ "/wd4267" ] # Disable warning: Conversion from size_t to 'type' . | |
| 74 | |
| 75 sources -= [ | 76 sources -= [ |
| 76 "unix_err.c", | 77 "unix_err.c", |
| 77 "unix_err.h", | 78 "unix_err.h", |
| 78 ] | 79 ] |
| 79 if (component_mode == "shared_library") { | 80 if (component_mode == "shared_library") { |
| 80 ldflags = [ "/DEF:" + rebase_path("exports_win.def", root_build_dir) ] | 81 ldflags = [ "/DEF:" + rebase_path("exports_win.def", root_build_dir) ] |
| 81 } | 82 } |
| 82 } else if (is_linux) { | 83 } else if (is_linux) { |
| 83 if (component_mode == "shared_library") { | 84 if (component_mode == "shared_library") { |
| 84 configs -= [ "//build/config/gcc:symbol_visibility_hidden" ] | 85 configs -= [ "//build/config/gcc:symbol_visibility_hidden" ] |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 120 public_deps = [ | 121 public_deps = [ |
| 121 "//third_party/nss:nspr", | 122 "//third_party/nss:nspr", |
| 122 "//third_party/nss:nss", | 123 "//third_party/nss:nss", |
| 123 ] | 124 ] |
| 124 } | 125 } |
| 125 | 126 |
| 126 if (is_debug) { | 127 if (is_debug) { |
| 127 defines += [ "DEBUG" ] | 128 defines += [ "DEBUG" ] |
| 128 } | 129 } |
| 129 } | 130 } |
| OLD | NEW |