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 if (is_linux) { | 5 if (is_linux) { |
6 import("//build/config/linux/pkg_config.gni") | 6 import("//build/config/linux/pkg_config.gni") |
7 | 7 |
8 pkg_config("ssl_pkg_config") { | 8 pkg_config("ssl_pkg_config") { |
9 packages = [ "nss" ] | 9 packages = [ "nss" ] |
10 extra_args = [ "-v", "-lssl3" ] | 10 extra_args = [ "-v", "-lssl3" ] |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 "sslt.h", | 61 "sslt.h", |
62 "ssltrace.c", | 62 "ssltrace.c", |
63 "sslver.c", | 63 "sslver.c", |
64 "unix_err.c", | 64 "unix_err.c", |
65 "unix_err.h", | 65 "unix_err.h", |
66 "win32err.c", | 66 "win32err.c", |
67 "win32err.h", | 67 "win32err.h", |
68 "bodge/secitem_array.c", | 68 "bodge/secitem_array.c", |
69 ] | 69 ] |
70 | 70 |
71 direct_dependent_settings = [ ":ssl_config" ] | 71 direct_dependent_configs = [ ":ssl_config" ] |
72 | 72 |
73 cflags = [] | 73 cflags = [] |
74 defines = [ | 74 defines = [ |
75 "NO_PKCS11_BYPASS", | 75 "NO_PKCS11_BYPASS", |
76 "NSS_ENABLE_ECC", | 76 "NSS_ENABLE_ECC", |
77 "USE_UTIL_DIRECTLY", | 77 "USE_UTIL_DIRECTLY", |
78 ] | 78 ] |
79 | 79 |
80 configs -= [ "//build/config/compiler:chromium_code" ] | 80 configs -= [ "//build/config/compiler:chromium_code" ] |
81 configs += [ "//build/config/compiler:no_chromium_code" ] | 81 configs += [ "//build/config/compiler:no_chromium_code" ] |
82 | 82 |
83 if (is_win) { | 83 if (is_win) { |
84 cflags += [ "/wd4267" ] # Disable warning: Conversion from size_t to 'type'
. | 84 cflags += [ "/wd4267" ] # Disable warning: Conversion from size_t to 'type'
. |
85 | 85 |
86 sources -= [ | 86 sources -= [ |
87 "unix_err.c", | 87 "unix_err.c", |
88 "unix_err.h", | 88 "unix_err.h", |
89 ] | 89 ] |
90 sources += [ "exports_win.def" ] | 90 sources += [ "exports_win.def" ] |
91 } else if (is_linux) { | 91 } else if (is_linux) { |
92 #visibility hidden thing. | 92 #visibility hidden thing. |
93 libs = [ "dl" ] | 93 libs = [ "dl" ] |
94 | 94 |
95 include_dirs = [ "bodge" ] | 95 include_dirs = [ "bodge" ] |
96 | 96 |
97 direct_dependent_configs = [ ":ssl_pkg_config" ] | 97 # Must be after ssl_config since we want our SSL headers to take |
| 98 # precedence. |
| 99 direct_dependent_configs += [ ":ssl_pkg_config" ] |
98 } else if (is_mac) { | 100 } else if (is_mac) { |
99 libs = [ "Security.framework" ] | 101 libs = [ "Security.framework" ] |
100 } | 102 } |
101 | 103 |
102 if (is_posix) { | 104 if (is_posix) { |
103 sources -= [ | 105 sources -= [ |
104 "win32err.c", | 106 "win32err.c", |
105 "win32err.h", | 107 "win32err.h", |
106 ] | 108 ] |
107 } | 109 } |
(...skipping 30 matching lines...) Expand all Loading... |
138 # There is a broken header guard in /usr/include/nss/secmod.h: | 140 # There is a broken header guard in /usr/include/nss/secmod.h: |
139 # https://bugzilla.mozilla.org/show_bug.cgi?id=884072 | 141 # https://bugzilla.mozilla.org/show_bug.cgi?id=884072 |
140 "-Wno-header-guard", | 142 "-Wno-header-guard", |
141 ] | 143 ] |
142 } | 144 } |
143 | 145 |
144 if (is_debug) { | 146 if (is_debug) { |
145 defines += [ "DEBUG" ] | 147 defines += [ "DEBUG" ] |
146 } | 148 } |
147 } | 149 } |
OLD | NEW |