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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 configs -= [ "//build/config/compiler:chromium_code" ] | 69 configs -= [ "//build/config/compiler:chromium_code" ] |
70 configs += [ "//build/config/compiler:no_chromium_code" ] | 70 configs += [ "//build/config/compiler:no_chromium_code" ] |
71 | 71 |
72 if (is_win) { | 72 if (is_win) { |
73 cflags += [ "/wd4267" ] # Disable warning: Conversion from size_t to 'type'
. | 73 cflags += [ "/wd4267" ] # Disable warning: Conversion from size_t to 'type'
. |
74 | 74 |
75 sources -= [ | 75 sources -= [ |
76 "unix_err.c", | 76 "unix_err.c", |
77 "unix_err.h", | 77 "unix_err.h", |
78 ] | 78 ] |
79 sources += [ "exports_win.def" ] | 79 if (component_mode == "shared_library") { |
| 80 ldflags = [ "/DEF:" + rebase_path("exports_win.def", root_build_dir) ] |
| 81 } |
80 } else if (is_linux) { | 82 } else if (is_linux) { |
81 if (component_mode == "shared_library") { | 83 if (component_mode == "shared_library") { |
82 configs -= [ "//build/config/gcc:symbol_visibility_hidden" ] | 84 configs -= [ "//build/config/gcc:symbol_visibility_hidden" ] |
83 } | 85 } |
84 | 86 |
85 libs = [ "dl" ] | 87 libs = [ "dl" ] |
86 | 88 |
87 include_dirs = [ "bodge" ] | 89 include_dirs = [ "bodge" ] |
88 | 90 |
89 # Must be after ssl_config since we want our SSL headers to take | 91 # Must be after ssl_config since we want our SSL headers to take |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 # There is a broken header guard in /usr/include/nss/secmod.h: | 131 # There is a broken header guard in /usr/include/nss/secmod.h: |
130 # https://bugzilla.mozilla.org/show_bug.cgi?id=884072 | 132 # https://bugzilla.mozilla.org/show_bug.cgi?id=884072 |
131 "-Wno-header-guard", | 133 "-Wno-header-guard", |
132 ] | 134 ] |
133 } | 135 } |
134 | 136 |
135 if (is_debug) { | 137 if (is_debug) { |
136 defines += [ "DEBUG" ] | 138 defines += [ "DEBUG" ] |
137 } | 139 } |
138 } | 140 } |
OLD | NEW |