| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 'variables': { | 6 'variables': { |
| 7 # If any of the linux_link_FOO below are set to 1, then the corresponding | 7 # If any of the linux_link_FOO below are set to 1, then the corresponding |
| 8 # target will be linked against the FOO library (either dynamically or | 8 # target will be linked against the FOO library (either dynamically or |
| 9 # statically, depending on the pkg-config files), as opposed to loading the | 9 # statically, depending on the pkg-config files), as opposed to loading the |
| 10 # FOO library dynamically with dlopen. | 10 # FOO library dynamically with dlopen. |
| (...skipping 1224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1235 'libraries': [ | 1235 'libraries': [ |
| 1236 '<!@(<(pkg-config) --libs-only-l pangocairo)', | 1236 '<!@(<(pkg-config) --libs-only-l pangocairo)', |
| 1237 ], | 1237 ], |
| 1238 }, | 1238 }, |
| 1239 }], | 1239 }], |
| 1240 ], | 1240 ], |
| 1241 }], | 1241 }], |
| 1242 ], | 1242 ], |
| 1243 }, | 1243 }, |
| 1244 { | 1244 { |
| 1245 'target_name': 'ssl', | 1245 'target_name': 'nss', |
| 1246 'type': 'none', | 1246 'type': 'none', |
| 1247 'conditions': [ | 1247 'conditions': [ |
| 1248 ['_toolset=="target"', { | 1248 # Link in the system NSS if it is used for the platform certificate |
| 1249 'dependencies': [ | 1249 # library (use_nss_certs==1). |
| 1250 '../../third_party/boringssl/boringssl.gyp:boringssl', | 1250 ['_toolset=="target" and use_nss_certs==1', { |
| 1251 ], | 1251 'direct_dependent_settings': { |
| 1252 'cflags': [ |
| 1253 '<!@(<(pkg-config) --cflags nss)', |
| 1254 ], |
| 1255 }, |
| 1256 'link_settings': { |
| 1257 'ldflags': [ |
| 1258 '<!@(<(pkg-config) --libs-only-L --libs-only-other nss)', |
| 1259 ], |
| 1260 'libraries': [ |
| 1261 '<!@(<(pkg-config) --libs-only-l nss | sed -e "s/-lssl3//")', |
| 1262 ], |
| 1263 }, |
| 1252 'conditions': [ | 1264 'conditions': [ |
| 1253 # Link in the system NSS if it is used for the platform certificate | 1265 ['clang==1', { |
| 1254 # library (use_nss_certs==1). | |
| 1255 ['use_nss_certs==1', { | |
| 1256 'direct_dependent_settings': { | 1266 'direct_dependent_settings': { |
| 1257 'cflags': [ | 1267 'cflags': [ |
| 1258 '<!@(<(pkg-config) --cflags nss)', | 1268 # There is a broken header guard in /usr/include/nss/secmod.h: |
| 1269 # https://bugzilla.mozilla.org/show_bug.cgi?id=884072 |
| 1270 '-Wno-header-guard', |
| 1259 ], | 1271 ], |
| 1260 }, | 1272 }, |
| 1261 'link_settings': { | |
| 1262 'ldflags': [ | |
| 1263 '<!@(<(pkg-config) --libs-only-L --libs-only-other nss)', | |
| 1264 ], | |
| 1265 'libraries': [ | |
| 1266 '<!@(<(pkg-config) --libs-only-l nss | sed -e "s/-lssl3//")', | |
| 1267 ], | |
| 1268 }, | |
| 1269 'conditions': [ | |
| 1270 ['clang==1', { | |
| 1271 'direct_dependent_settings': { | |
| 1272 'cflags': [ | |
| 1273 # There is a broken header guard in /usr/include/nss/secmo
d.h: | |
| 1274 # https://bugzilla.mozilla.org/show_bug.cgi?id=884072 | |
| 1275 '-Wno-header-guard', | |
| 1276 ], | |
| 1277 }, | |
| 1278 }], | |
| 1279 ], | |
| 1280 }], | 1273 }], |
| 1281 ] | 1274 ], |
| 1282 }], | 1275 }], |
| 1283 ], | 1276 ] |
| 1284 }, | 1277 }, |
| 1285 { | 1278 { |
| 1286 'target_name': 'libffi', | 1279 'target_name': 'libffi', |
| 1287 'type': 'none', | 1280 'type': 'none', |
| 1288 'conditions': [ | 1281 'conditions': [ |
| 1289 ['_toolset=="target"', { | 1282 ['_toolset=="target"', { |
| 1290 'direct_dependent_settings': { | 1283 'direct_dependent_settings': { |
| 1291 'cflags': [ | 1284 'cflags': [ |
| 1292 '<!@(<(pkg-config) --cflags libffi)', | 1285 '<!@(<(pkg-config) --cflags libffi)', |
| 1293 ], | 1286 ], |
| 1294 }, | 1287 }, |
| 1295 'link_settings': { | 1288 'link_settings': { |
| 1296 'ldflags': [ | 1289 'ldflags': [ |
| 1297 '<!@(<(pkg-config) --libs-only-L --libs-only-other libffi)', | 1290 '<!@(<(pkg-config) --libs-only-L --libs-only-other libffi)', |
| 1298 ], | 1291 ], |
| 1299 'libraries': [ | 1292 'libraries': [ |
| 1300 '<!@(<(pkg-config) --libs-only-l libffi)', | 1293 '<!@(<(pkg-config) --libs-only-l libffi)', |
| 1301 ], | 1294 ], |
| 1302 }, | 1295 }, |
| 1303 }], | 1296 }], |
| 1304 ], | 1297 ], |
| 1305 }, | 1298 }, |
| 1306 ], | 1299 ], |
| 1307 } | 1300 } |
| OLD | NEW |