Chromium Code Reviews| 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 }, |
| 11 }, { | 11 }, { |
| 12 'variables': { | 12 'variables': { |
| 13 'pkg-config': 'pkg-config' | 13 'pkg-config': 'pkg-config' |
| 14 }, | 14 }, |
| 15 }], | 15 }], |
| 16 [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd"', { | 16 [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd"', { |
| 17 'variables': { | 17 'variables': { |
| 18 # We use our own copy of libssl, although we still need to link against | 18 # We use our own copy of libssl3, although we still need to link against |
| 19 # the rest of NSS. | 19 # the rest of NSS. |
| 20 'use_system_ssl%': 0, | 20 'use_system_ssl%': 0, |
| 21 }, | 21 }, |
| 22 }, { # OS!="linux" | 22 }, { # OS!="linux" |
| 23 'variables': { | 23 'variables': { |
| 24 'use_system_ssl%': 1, | 24 'use_system_ssl%': 1, |
| 25 }, | 25 }, |
| 26 }], | 26 }], |
| 27 ], | 27 ], |
| 28 | 28 |
| (...skipping 45 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/ssl.gyp:ssl', | 79 '../../net/third_party/nss/ssl.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 # We need for our local copies of the libssl headers to come | 84 # We need for our local copies of the libssl3 headers to come |
| 85 # first, otherwise the code will build, but will fallback to | 85 # first, otherwise the code will build, but will fallback to |
| 86 # the set of features advertised in the system headers. | 86 # the set of features advertised in the system headers. |
| 87 # Unfortunately, there's no include path that we can filter | 87 # Unfortunately, there's no include path that we can filter |
| 88 # out of $(pkg-config --cflags nss) and GYP include paths | 88 # out of $(pkg-config --cflags nss) and GYP include paths |
| 89 # come after cflags on the command line. So we have these | 89 # come after cflags on the command line. So we have these |
| 90 # bodges: | 90 # bodges: |
| 91 '-I../net/third_party/nss/ssl', # for scons | 91 '-I../net/third_party/nss/ssl', # for scons |
| 92 '-Inet/third_party/nss/ssl', # for make | 92 '-Inet/third_party/nss/ssl', # for make |
| 93 '-IWebKit/chromium/net/third_party/nss/ssl', # for make in we bkit | 93 '-IWebKit/chromium/net/third_party/nss/ssl', # for make in we bkit |
| 94 '<!@(<(pkg-config) --cflags nss)', | 94 '<!@(<(pkg-config) --cflags nss)', |
| 95 ], | 95 ], |
| 96 }, | 96 }, |
| 97 'link_settings': { | 97 'link_settings': { |
| 98 'ldflags': [ | 98 'ldflags': [ |
| 99 '<!@(<(pkg-config) --libs-only-L --libs-only-other nss)', | 99 '<!@(<(pkg-config) --libs-only-L --libs-only-other nss)', |
| 100 ], | 100 ], |
| 101 'libraries': [ | 101 'libraries': [ |
| 102 '<!@(<(pkg-config) --libs-only-l nss | sed -e "s/-lssl3//")', | 102 '<!@(<(pkg-config) --libs-only-l nss | sed -e "s/-lssl3//")', |
| 103 ], | 103 ], |
| 104 }, | 104 }, |
| 105 }, { | 105 }, { |
| 106 'direct_dependent_settings': { | 106 'direct_dependent_settings': { |
| 107 'cflags': [ | 107 'cflags': [ |
| 108 '<!@(<(pkg-config) --cflags nss)', | 108 '<!@(<(pkg-config) --cflags nss)', |
| 109 ], | 109 ], |
| 110 'defines': [ | 110 'defines': [ |
| 111 'USE_SYSTEM_SSL', | 111 'USE_SYSTEM_SSL', |
| 112 ], | 112 ], |
| 113 }, | 113 }, |
| 114 'link_settings': { | 114 'link_settings': { |
| 115 'ldflags': [ | 115 'ldflags': [ |
| 116 '<!@(<(pkg-config) --libs-only-L --libs-only-other nss)', | 116 '<!@(<(pkg-config) --libs-only-L --libs-only-other nss)', |
| 117 ], | 117 ], |
| 118 'libraries': [ | 118 'libraries': [ |
| 119 '<!@(<(pkg-config) --libs-only-l nss)', | 119 '<!@(<(pkg-config) --libs-only-l nss)', |
| 120 ], | 120 ], |
| 121 }, | 121 }, |
| 122 }]] | 122 } |
| 123 ]] | |
| 123 }], | 124 }], |
| 124 ], | 125 ], |
| 125 }, | 126 }, |
| 126 { | 127 { |
| 127 'target_name': 'freetype2', | 128 'target_name': 'freetype2', |
| 128 'type': 'settings', | 129 'type': 'settings', |
| 129 'conditions': [ | 130 'conditions': [ |
| 130 ['_toolset=="target"', { | 131 ['_toolset=="target"', { |
| 131 'direct_dependent_settings': { | 132 'direct_dependent_settings': { |
| 132 'cflags': [ | 133 'cflags': [ |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 313 }, | 314 }, |
| 314 { | 315 { |
| 315 'target_name': 'libresolv', | 316 'target_name': 'libresolv', |
| 316 'type': 'settings', | 317 'type': 'settings', |
| 317 'link_settings': { | 318 'link_settings': { |
| 318 'libraries': [ | 319 'libraries': [ |
| 319 '-lresolv', | 320 '-lresolv', |
| 320 ], | 321 ], |
| 321 }, | 322 }, |
| 322 }, | 323 }, |
| 324 { | |
| 325 'target_name': 'openssl', | |
| 326 'type': 'settings', | |
| 327 'conditions': [ | |
| 328 ['use_openssl==1', { | |
| 329 'direct_dependent_settings': { | |
| 330 'defines': [ | |
| 331 'USE_OPENSSL', | |
|
wtc
2010/09/28 18:08:35
You should document that eventually USE_OPENSSL an
joth
2010/09/29 11:58:54
Done.
| |
| 332 ], | |
| 333 'include_dirs': [ | |
| 334 '<!@(<(pkg-config) --cflags openssl)', | |
| 335 ], | |
| 336 }, | |
| 337 'link_settings': { | |
| 338 'libraries': [ | |
| 339 '<!@(<(pkg-config) --libs-only-l openssl)', | |
| 340 ], | |
| 341 }, | |
| 342 },], | |
| 343 ], | |
| 344 }, | |
| 323 ], | 345 ], |
| 324 } | 346 } |
| 325 | 347 |
| 326 # Local Variables: | 348 # Local Variables: |
| 327 # tab-width:2 | 349 # tab-width:2 |
| 328 # indent-tabs-mode:nil | 350 # indent-tabs-mode:nil |
| 329 # End: | 351 # End: |
| 330 # vim: set expandtab tabstop=2 shiftwidth=2: | 352 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |