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 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 'link_settings': { | 486 'link_settings': { |
487 'libraries': [ | 487 'libraries': [ |
488 '-lselinux', | 488 '-lselinux', |
489 ], | 489 ], |
490 }, | 490 }, |
491 }], | 491 }], |
492 ], | 492 ], |
493 }, | 493 }, |
494 { | 494 { |
495 'target_name': 'gnome_keyring', | 495 'target_name': 'gnome_keyring', |
496 'type': 'none', | 496 'type': 'static_library', |
497 'conditions': [ | 497 'conditions': [ |
498 ['use_gnome_keyring==1', { | 498 ['use_gnome_keyring==1', { |
| 499 'dependencies': [ |
| 500 '../../base/base.gyp:base', |
| 501 ], |
| 502 'cflags': [ |
| 503 '<!@(<(pkg-config) --cflags gnome-keyring-1)', |
| 504 ], |
499 'direct_dependent_settings': { | 505 'direct_dependent_settings': { |
500 'cflags': [ | 506 'cflags': [ |
501 '<!@(<(pkg-config) --cflags gnome-keyring-1)', | 507 '<!@(<(pkg-config) --cflags gnome-keyring-1)', |
502 ], | 508 ], |
503 'defines': [ | 509 'defines': [ |
504 'USE_GNOME_KEYRING', | 510 'USE_GNOME_KEYRING', |
505 ], | 511 ], |
506 'conditions': [ | 512 'include_dirs': [ |
507 ['linux_link_gnome_keyring==0', { | 513 '<(SHARED_INTERMEDIATE_DIR)', |
508 'defines': ['DLOPEN_GNOME_KEYRING'], | |
509 }], | |
510 ], | 514 ], |
511 }, | 515 }, |
512 'conditions': [ | 516 'link_settings': { |
513 ['linux_link_gnome_keyring!=0', { | 517 'conditions': [ |
514 'link_settings': { | 518 ['linux_link_gnome_keyring==1', { |
515 'ldflags': [ | 519 'ldflags': [ |
516 '<!@(<(pkg-config) --libs-only-L --libs-only-other gnome-keyri
ng-1)', | 520 '<!@(<(pkg-config) --libs-only-L --libs-only-other gnome-keyri
ng-1)', |
517 ], | 521 ], |
518 'libraries': [ | 522 'libraries': [ |
519 '<!@(<(pkg-config) --libs-only-l gnome-keyring-1)', | 523 '<!@(<(pkg-config) --libs-only-l gnome-keyring-1)', |
520 ], | 524 ], |
| 525 }, { # linux_link_gnome_keyring==0 |
| 526 'libraries': [ |
| 527 '-ldl', |
| 528 ], |
| 529 }], |
| 530 ], |
| 531 }, |
| 532 'hard_dependency': 1, |
| 533 'actions': [ |
| 534 { |
| 535 'variables': { |
| 536 'output_h': '<(SHARED_INTERMEDIATE_DIR)/library_loaders/libgnome
-keyring.h', |
| 537 'output_cc': '<(INTERMEDIATE_DIR)/libgnome_keyring_loader.cc', |
| 538 'generator': '../../tools/generate_library_loader/generate_libra
ry_loader.py', |
521 }, | 539 }, |
522 }, { | 540 'action_name': 'generate_libgnome_keyring_loader', |
523 'conditions': [ | 541 'inputs': [ |
524 ['OS=="linux"', { | 542 '<(generator)', |
525 'link_settings': { | |
526 'libraries': [ | |
527 '-ldl', | |
528 ], | |
529 }, | |
530 }], | |
531 ], | 543 ], |
532 }], | 544 'outputs': [ |
| 545 '<(output_h)', |
| 546 '<(output_cc)', |
| 547 ], |
| 548 'action': ['python', |
| 549 '<(generator)', |
| 550 '--name', 'LibGnomeKeyringLoader', |
| 551 '--output-h', '<(output_h)', |
| 552 '--output-cc', '<(output_cc)', |
| 553 '--header', '<gnome-keyring.h>', |
| 554 '--link-directly=<(linux_link_gnome_keyring)', |
| 555 'gnome_keyring_is_available', |
| 556 'gnome_keyring_store_password', |
| 557 'gnome_keyring_delete_password', |
| 558 'gnome_keyring_find_itemsv', |
| 559 'gnome_keyring_result_to_message', |
| 560 ], |
| 561 'message': 'Generating libgnome-keyring library loader.', |
| 562 'process_outputs_as_sources': 1, |
| 563 }, |
533 ], | 564 ], |
534 }], | 565 }], |
535 ], | 566 ], |
536 }, | 567 }, |
537 { | 568 { |
538 # The unit tests use a few convenience functions from the GNOME | 569 # The unit tests use a few convenience functions from the GNOME |
539 # Keyring library directly. We ignore linux_link_gnome_keyring and | 570 # Keyring library directly. We ignore linux_link_gnome_keyring and |
540 # link directly in this version of the target to allow this. | 571 # link directly in this version of the target to allow this. |
541 # *** Do not use this target in the main binary! *** | 572 # *** Do not use this target in the main binary! *** |
542 'target_name': 'gnome_keyring_direct', | 573 'target_name': 'gnome_keyring_direct', |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
715 ], | 746 ], |
716 'libraries': [ | 747 'libraries': [ |
717 '<!@(<(pkg-config) --libs-only-l libudev)', | 748 '<!@(<(pkg-config) --libs-only-l libudev)', |
718 ], | 749 ], |
719 }, | 750 }, |
720 }], | 751 }], |
721 ], | 752 ], |
722 }, | 753 }, |
723 ], | 754 ], |
724 } | 755 } |
OLD | NEW |