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 'conditions': [ | 7 'conditions': [ |
8 ['sysroot!=""', { | 8 ['sysroot!=""', { |
9 'pkg-config': './pkg-config-wrapper "<(sysroot)" "<(target_arch)"', | 9 'pkg-config': './pkg-config-wrapper "<(sysroot)" "<(target_arch)"', |
10 }, { | 10 }, { |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 'libraries': [ | 268 'libraries': [ |
269 '-ldl', | 269 '-ldl', |
270 ], | 270 ], |
271 }], | 271 }], |
272 ], | 272 ], |
273 }, | 273 }, |
274 }], | 274 }], |
275 ], | 275 ], |
276 }, | 276 }, |
277 { | 277 { |
| 278 'target_name': 'libpci', |
| 279 'type': 'none', |
| 280 'direct_dependent_settings': { |
| 281 'cflags': [ |
| 282 '<!@(<(pkg-config) --cflags libpci)', |
| 283 ], |
| 284 'conditions': [ |
| 285 ['linux_link_libpci==0', { |
| 286 'defines': ['DLOPEN_LIBPCI'], |
| 287 }], |
| 288 ], |
| 289 }, |
| 290 'link_settings': { |
| 291 'conditions': [ |
| 292 ['linux_link_libpci==0 and OS=="linux"', { |
| 293 'libraries': [ |
| 294 '-ldl', |
| 295 ], |
| 296 }], |
| 297 ['linux_link_libpci==1', { |
| 298 'ldflags': [ |
| 299 '<!@(<(pkg-config) --libs-only-L --libs-only-other libpci)', |
| 300 ], |
| 301 'libraries': [ |
| 302 '<!@(<(pkg-config) --libs-only-l libpci)', |
| 303 ], |
| 304 }], |
| 305 ], |
| 306 }, |
| 307 }, |
| 308 { |
278 'target_name': 'x11', | 309 'target_name': 'x11', |
279 'type': 'none', | 310 'type': 'none', |
280 'toolsets': ['host', 'target'], | 311 'toolsets': ['host', 'target'], |
281 'conditions': [ | 312 'conditions': [ |
282 ['_toolset=="target"', { | 313 ['_toolset=="target"', { |
283 'direct_dependent_settings': { | 314 'direct_dependent_settings': { |
284 'cflags': [ | 315 'cflags': [ |
285 '<!@(<(pkg-config) --cflags x11)', | 316 '<!@(<(pkg-config) --cflags x11)', |
286 ], | 317 ], |
287 }, | 318 }, |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
607 ], | 638 ], |
608 'libraries': [ | 639 'libraries': [ |
609 '<!@(<(pkg-config) --libs-only-l libudev)', | 640 '<!@(<(pkg-config) --libs-only-l libudev)', |
610 ], | 641 ], |
611 }, | 642 }, |
612 }], | 643 }], |
613 ], | 644 ], |
614 }, | 645 }, |
615 ], | 646 ], |
616 } | 647 } |
OLD | NEW |