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': '<(chroot_cmd) ./pkg-config-wrapper "<(sysroot)" "<(target
_arch)" "<(system_libdir)"', | 9 'pkg-config': '<(chroot_cmd) ./pkg-config-wrapper "<(sysroot)" "<(target
_arch)" "<(system_libdir)"', |
10 }, { | 10 }, { |
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
459 ], | 459 ], |
460 'libraries': [ | 460 'libraries': [ |
461 '<!@(<(pkg-config) --libs-only-l libudev)', | 461 '<!@(<(pkg-config) --libs-only-l libudev)', |
462 ], | 462 ], |
463 }, | 463 }, |
464 }], | 464 }], |
465 ], | 465 ], |
466 }, | 466 }, |
467 ], | 467 ], |
468 }], | 468 }], |
| 469 ['use_libpci==1', { |
| 470 'targets': [ |
| 471 { |
| 472 'target_name': 'libpci', |
| 473 'type': 'static_library', |
| 474 'cflags': [ |
| 475 '<!@(<(pkg-config) --cflags libpci)', |
| 476 ], |
| 477 'direct_dependent_settings': { |
| 478 'include_dirs': [ |
| 479 '<(SHARED_INTERMEDIATE_DIR)', |
| 480 ], |
| 481 'conditions': [ |
| 482 ['linux_link_libpci==1', { |
| 483 'link_settings': { |
| 484 'ldflags': [ |
| 485 '<!@(<(pkg-config) --libs-only-L --libs-only-other libpci)', |
| 486 ], |
| 487 'libraries': [ |
| 488 '<!@(<(pkg-config) --libs-only-l libpci)', |
| 489 ], |
| 490 } |
| 491 }], |
| 492 ], |
| 493 }, |
| 494 'include_dirs': [ |
| 495 '../..', |
| 496 ], |
| 497 'hard_dependency': 1, |
| 498 'actions': [ |
| 499 { |
| 500 'variables': { |
| 501 'output_h': '<(SHARED_INTERMEDIATE_DIR)/library_loaders/libpci.h
', |
| 502 'output_cc': '<(INTERMEDIATE_DIR)/libpci_loader.cc', |
| 503 'generator': '../../tools/generate_library_loader/generate_libra
ry_loader.py', |
| 504 }, |
| 505 'action_name': 'generate_libpci_loader', |
| 506 'inputs': [ |
| 507 '<(generator)', |
| 508 ], |
| 509 'outputs': [ |
| 510 '<(output_h)', |
| 511 '<(output_cc)', |
| 512 ], |
| 513 'action': ['python', |
| 514 '<(generator)', |
| 515 '--name', 'LibPciLoader', |
| 516 '--output-h', '<(output_h)', |
| 517 '--output-cc', '<(output_cc)', |
| 518 '--header', '<pci/pci.h>', |
| 519 # TODO(phajdan.jr): Report problem to pciutils project |
| 520 # and get it fixed so that we don't need --use-extern-c
. |
| 521 '--use-extern-c', |
| 522 '--link-directly=<(linux_link_libpci)', |
| 523 'pci_alloc', |
| 524 'pci_init', |
| 525 'pci_cleanup', |
| 526 'pci_scan_bus', |
| 527 'pci_fill_info', |
| 528 'pci_lookup_name', |
| 529 ], |
| 530 'message': 'Generating libpci library loader', |
| 531 'process_outputs_as_sources': 1, |
| 532 }, |
| 533 ], |
| 534 }, |
| 535 ], |
| 536 }], |
469 ], # conditions | 537 ], # conditions |
470 'targets': [ | 538 'targets': [ |
471 { | 539 { |
472 'target_name': 'dbus', | 540 'target_name': 'dbus', |
473 'type': 'none', | 541 'type': 'none', |
474 'direct_dependent_settings': { | 542 'direct_dependent_settings': { |
475 'cflags': [ | 543 'cflags': [ |
476 '<!@(<(pkg-config) --cflags dbus-1)', | 544 '<!@(<(pkg-config) --cflags dbus-1)', |
477 ], | 545 ], |
478 }, | 546 }, |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
834 { | 902 { |
835 'target_name': 'libcap', | 903 'target_name': 'libcap', |
836 'type': 'none', | 904 'type': 'none', |
837 'link_settings': { | 905 'link_settings': { |
838 'libraries': [ | 906 'libraries': [ |
839 '-lcap', | 907 '-lcap', |
840 ], | 908 ], |
841 }, | 909 }, |
842 }, | 910 }, |
843 { | 911 { |
844 'target_name': 'libpci', | |
845 'type': 'static_library', | |
846 'cflags': [ | |
847 '<!@(<(pkg-config) --cflags libpci)', | |
848 ], | |
849 'direct_dependent_settings': { | |
850 'include_dirs': [ | |
851 '<(SHARED_INTERMEDIATE_DIR)', | |
852 ], | |
853 'conditions': [ | |
854 ['linux_link_libpci==1', { | |
855 'link_settings': { | |
856 'ldflags': [ | |
857 '<!@(<(pkg-config) --libs-only-L --libs-only-other libpci)', | |
858 ], | |
859 'libraries': [ | |
860 '<!@(<(pkg-config) --libs-only-l libpci)', | |
861 ], | |
862 } | |
863 }], | |
864 ], | |
865 }, | |
866 'include_dirs': [ | |
867 '../..', | |
868 ], | |
869 'hard_dependency': 1, | |
870 'actions': [ | |
871 { | |
872 'variables': { | |
873 'output_h': '<(SHARED_INTERMEDIATE_DIR)/library_loaders/libpci.h', | |
874 'output_cc': '<(INTERMEDIATE_DIR)/libpci_loader.cc', | |
875 'generator': '../../tools/generate_library_loader/generate_library_l
oader.py', | |
876 }, | |
877 'action_name': 'generate_libpci_loader', | |
878 'inputs': [ | |
879 '<(generator)', | |
880 ], | |
881 'outputs': [ | |
882 '<(output_h)', | |
883 '<(output_cc)', | |
884 ], | |
885 'action': ['python', | |
886 '<(generator)', | |
887 '--name', 'LibPciLoader', | |
888 '--output-h', '<(output_h)', | |
889 '--output-cc', '<(output_cc)', | |
890 '--header', '<pci/pci.h>', | |
891 # TODO(phajdan.jr): Report problem to pciutils project | |
892 # and get it fixed so that we don't need --use-extern-c. | |
893 '--use-extern-c', | |
894 '--link-directly=<(linux_link_libpci)', | |
895 'pci_alloc', | |
896 'pci_init', | |
897 'pci_cleanup', | |
898 'pci_scan_bus', | |
899 'pci_fill_info', | |
900 'pci_lookup_name', | |
901 ], | |
902 'message': 'Generating libpci library loader', | |
903 'process_outputs_as_sources': 1, | |
904 }, | |
905 ], | |
906 }, | |
907 { | |
908 'target_name': 'libresolv', | 912 'target_name': 'libresolv', |
909 'type': 'none', | 913 'type': 'none', |
910 'link_settings': { | 914 'link_settings': { |
911 'libraries': [ | 915 'libraries': [ |
912 '-lresolv', | 916 '-lresolv', |
913 ], | 917 ], |
914 }, | 918 }, |
915 }, | 919 }, |
916 { | 920 { |
917 # GN version: //third_party/speech-dispatcher | 921 # GN version: //third_party/speech-dispatcher |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1071 '-Wno-header-guard', | 1075 '-Wno-header-guard', |
1072 ], | 1076 ], |
1073 }, | 1077 }, |
1074 }], | 1078 }], |
1075 ] | 1079 ] |
1076 }], | 1080 }], |
1077 ], | 1081 ], |
1078 }, | 1082 }, |
1079 ], | 1083 ], |
1080 } | 1084 } |
OLD | NEW |