OLD | NEW |
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 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 { | 5 { |
6 'conditions': [ | 6 'conditions': [ |
7 ['sysroot!=""', { | 7 ['sysroot!=""', { |
8 'variables': { | 8 'variables': { |
9 'pkg-config': './pkg-config-wrapper "<(sysroot)"', | 9 'pkg-config': './pkg-config-wrapper "<(sysroot)"', |
10 }, | 10 }, |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 'conditions': [ | 74 'conditions': [ |
75 ['_toolset=="target"', { | 75 ['_toolset=="target"', { |
76 'conditions': [ | 76 'conditions': [ |
77 ['use_system_ssl==0', { | 77 ['use_system_ssl==0', { |
78 'dependencies': [ | 78 'dependencies': [ |
79 '../../net/third_party/nss/nss.gyp:ssl', | 79 '../../net/third_party/nss/nss.gyp:ssl', |
80 '../../third_party/zlib/zlib.gyp:zlib', | 80 '../../third_party/zlib/zlib.gyp:zlib', |
81 ], | 81 ], |
82 'direct_dependent_settings': { | 82 'direct_dependent_settings': { |
83 'cflags': [ | 83 'cflags': [ |
84 '-Inet/third_party/nss/ssl', | 84 # We need for our local copies of the libssl headers to come |
| 85 # first, otherwise the code will build, but will fallback to |
| 86 # the set of features advertised in the system headers. |
| 87 # Unfortunately, there's no include path that we can filter |
| 88 # out of $(pkg-config --cflags nss) and GYP include paths |
| 89 # come after cflags on the command line. So we have these |
| 90 # bodges: |
| 91 '-I../net/third_party/nss/ssl', # for scons |
| 92 '-Inet/third_party/nss/ssl', # for make |
85 '<!@(<(pkg-config) --cflags nss)', | 93 '<!@(<(pkg-config) --cflags nss)', |
86 ], | 94 ], |
87 }, | 95 }, |
88 'link_settings': { | 96 'link_settings': { |
89 'ldflags': [ | 97 'ldflags': [ |
90 '<!@(<(pkg-config) --libs-only-L --libs-only-other nss)', | 98 '<!@(<(pkg-config) --libs-only-L --libs-only-other nss)', |
91 ], | 99 ], |
92 'libraries': [ | 100 'libraries': [ |
93 '<!@(<(pkg-config) --libs-only-l nss | sed -e "s/-lssl3//")', | 101 '<!@(<(pkg-config) --libs-only-l nss | sed -e "s/-lssl3//")', |
94 ], | 102 ], |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 # }, | 272 # }, |
265 # }, | 273 # }, |
266 ], | 274 ], |
267 } | 275 } |
268 | 276 |
269 # Local Variables: | 277 # Local Variables: |
270 # tab-width:2 | 278 # tab-width:2 |
271 # indent-tabs-mode:nil | 279 # indent-tabs-mode:nil |
272 # End: | 280 # End: |
273 # vim: set expandtab tabstop=2 shiftwidth=2: | 281 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |