| OLD | NEW |
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 'dependencies': [ | 83 'dependencies': [ |
| 84 '../../third_party/openssl/openssl.gyp:openssl', | 84 '../../third_party/openssl/openssl.gyp:openssl', |
| 85 ], | 85 ], |
| 86 }], | 86 }], |
| 87 ['use_openssl==0 and use_system_ssl==0', { | 87 ['use_openssl==0 and use_system_ssl==0', { |
| 88 'dependencies': [ | 88 'dependencies': [ |
| 89 '../../net/third_party/nss/ssl.gyp:ssl', | 89 '../../net/third_party/nss/ssl.gyp:ssl', |
| 90 '../../third_party/zlib/zlib.gyp:zlib', | 90 '../../third_party/zlib/zlib.gyp:zlib', |
| 91 ], | 91 ], |
| 92 'direct_dependent_settings': { | 92 'direct_dependent_settings': { |
| 93 'include_dirs+': [ |
| 94 # We need for our local copies of the libssl3 headers to come |
| 95 # before other includes, as we are shadowing system headers. |
| 96 '<(DEPTH)/net/third_party/nss/ssl', |
| 97 ], |
| 93 'cflags': [ | 98 'cflags': [ |
| 94 # We need for our local copies of the libssl3 headers to come | |
| 95 # first, otherwise the code will build, but will fallback to | |
| 96 # the set of features advertised in the system headers. | |
| 97 # Unfortunately, there's no include path that we can filter | |
| 98 # out of $(pkg-config --cflags nss) and GYP include paths | |
| 99 # come after cflags on the command line. So we have these | |
| 100 # bodges: | |
| 101 '-Inet/third_party/nss/ssl', # for mak
e | |
| 102 '-ISource/WebKit/chromium/net/third_party/nss/ssl', # for mak
e in webkit | |
| 103 '<!@(<(pkg-config) --cflags nss)', | 99 '<!@(<(pkg-config) --cflags nss)', |
| 104 ], | 100 ], |
| 105 }, | 101 }, |
| 106 'link_settings': { | 102 'link_settings': { |
| 107 'ldflags': [ | 103 'ldflags': [ |
| 108 '<!@(<(pkg-config) --libs-only-L --libs-only-other nss)', | 104 '<!@(<(pkg-config) --libs-only-L --libs-only-other nss)', |
| 109 ], | 105 ], |
| 110 'libraries': [ | 106 'libraries': [ |
| 111 '<!@(<(pkg-config) --libs-only-l nss | sed -e "s/-lssl3//")', | 107 '<!@(<(pkg-config) --libs-only-l nss | sed -e "s/-lssl3//")', |
| 112 ], | 108 ], |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 482 ], | 478 ], |
| 483 'libraries': [ | 479 'libraries': [ |
| 484 '<!@(<(pkg-config) --libs-only-l wayland-client wayland-egl xkbcom
mon)', | 480 '<!@(<(pkg-config) --libs-only-l wayland-client wayland-egl xkbcom
mon)', |
| 485 ], | 481 ], |
| 486 }, | 482 }, |
| 487 }], | 483 }], |
| 488 ], | 484 ], |
| 489 }, | 485 }, |
| 490 ], | 486 ], |
| 491 } | 487 } |
| OLD | NEW |