| 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 }, { |
| 11 'pkg-config': 'pkg-config' | 11 'pkg-config': 'pkg-config' |
| 12 }] | 12 }] |
| 13 ], | 13 ], |
| 14 |
| 15 'linux_link_libpci%': 0, |
| 14 }, | 16 }, |
| 15 'conditions': [ | 17 'conditions': [ |
| 16 [ 'os_posix==1 and OS!="mac"', { | 18 [ 'os_posix==1 and OS!="mac"', { |
| 17 'variables': { | 19 'variables': { |
| 18 # We use our own copy of libssl3, although we still need to link against | 20 # We use our own copy of libssl3, although we still need to link against |
| 19 # the rest of NSS. | 21 # the rest of NSS. |
| 20 'use_system_ssl%': 0, | 22 'use_system_ssl%': 0, |
| 21 }, | 23 }, |
| 22 }, { | 24 }, { |
| 23 'variables': { | 25 'variables': { |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 'libraries': [ | 270 'libraries': [ |
| 269 '-ldl', | 271 '-ldl', |
| 270 ], | 272 ], |
| 271 }], | 273 }], |
| 272 ], | 274 ], |
| 273 }, | 275 }, |
| 274 }], | 276 }], |
| 275 ], | 277 ], |
| 276 }, | 278 }, |
| 277 { | 279 { |
| 280 'target_name': 'libpci', |
| 281 'type': 'static_library', |
| 282 'cflags': [ |
| 283 '<!@(<(pkg-config) --cflags libpci)', |
| 284 ], |
| 285 'include_dirs': [ |
| 286 '../..', |
| 287 ], |
| 288 'direct_dependent_settings': { |
| 289 'include_dirs': [ |
| 290 '<(SHARED_INTERMEDIATE_DIR)', |
| 291 ], |
| 292 'conditions': [ |
| 293 ['linux_link_libpci==1', { |
| 294 'link_settings': { |
| 295 'ldflags': [ |
| 296 '<!@(<(pkg-config) --libs-only-L --libs-only-other libpci)', |
| 297 ], |
| 298 'libraries': [ |
| 299 '<!@(<(pkg-config) --libs-only-l libpci)', |
| 300 ], |
| 301 } |
| 302 }], |
| 303 ], |
| 304 }, |
| 305 'hard_dependency': 1, |
| 306 'actions': [ |
| 307 { |
| 308 'variables': { |
| 309 'output_h': '<(SHARED_INTERMEDIATE_DIR)/library_loaders/libpci.h', |
| 310 'output_cc': '<(INTERMEDIATE_DIR)/libpci_loader.cc', |
| 311 'generator': '../../tools/generate_library_loader/generate_library_l
oader.py', |
| 312 }, |
| 313 'action_name': 'generate_libpci_loader', |
| 314 'inputs': [ |
| 315 '<(generator)', |
| 316 ], |
| 317 'outputs': [ |
| 318 '<(output_h)', |
| 319 '<(output_cc)', |
| 320 ], |
| 321 'action': ['python', |
| 322 '<(generator)', |
| 323 '--name', 'LibPciLoader', |
| 324 '--output-h', '<(output_h)', |
| 325 '--output-cc', '<(output_cc)', |
| 326 '--header', '<pci/pci.h>', |
| 327 # TODO(phajdan.jr): Report problem to pciutils project |
| 328 # and get it fixed so that we don't need --use-extern-c. |
| 329 '--use-extern-c', |
| 330 '--link-directly=<(linux_link_libpci)', |
| 331 'pci_alloc', |
| 332 'pci_init', |
| 333 'pci_cleanup', |
| 334 'pci_scan_bus', |
| 335 'pci_fill_info', |
| 336 'pci_lookup_name', |
| 337 ], |
| 338 'message': 'Generating libpci library loader.', |
| 339 'process_outputs_as_sources': 1, |
| 340 }, |
| 341 ], |
| 342 }, |
| 343 { |
| 278 'target_name': 'x11', | 344 'target_name': 'x11', |
| 279 'type': 'none', | 345 'type': 'none', |
| 280 'toolsets': ['host', 'target'], | 346 'toolsets': ['host', 'target'], |
| 281 'conditions': [ | 347 'conditions': [ |
| 282 ['_toolset=="target"', { | 348 ['_toolset=="target"', { |
| 283 'direct_dependent_settings': { | 349 'direct_dependent_settings': { |
| 284 'cflags': [ | 350 'cflags': [ |
| 285 '<!@(<(pkg-config) --cflags x11)', | 351 '<!@(<(pkg-config) --cflags x11)', |
| 286 ], | 352 ], |
| 287 }, | 353 }, |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 607 ], | 673 ], |
| 608 'libraries': [ | 674 'libraries': [ |
| 609 '<!@(<(pkg-config) --libs-only-l libudev)', | 675 '<!@(<(pkg-config) --libs-only-l libudev)', |
| 610 ], | 676 ], |
| 611 }, | 677 }, |
| 612 }], | 678 }], |
| 613 ], | 679 ], |
| 614 }, | 680 }, |
| 615 ], | 681 ], |
| 616 } | 682 } |
| OLD | NEW |