Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(582)

Side by Side Diff: build/linux/system.gyp

Issue 11647041: Revert "Linux: add library loader for GNOME keyring." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/password_manager/native_backend_gnome_x.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 602 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 'link_settings': { 613 'link_settings': {
614 'libraries': [ 614 'libraries': [
615 '-lselinux', 615 '-lselinux',
616 ], 616 ],
617 }, 617 },
618 }], 618 }],
619 ], 619 ],
620 }, 620 },
621 { 621 {
622 'target_name': 'gnome_keyring', 622 'target_name': 'gnome_keyring',
623 'type': 'static_library', 623 'type': 'none',
624 'conditions': [ 624 'conditions': [
625 ['use_gnome_keyring==1', { 625 ['use_gnome_keyring==1', {
626 'dependencies': [
627 '../../base/base.gyp:base',
628 ],
629 'cflags': [
630 '<!@(<(pkg-config) --cflags gnome-keyring-1)',
631 ],
632 'direct_dependent_settings': { 626 'direct_dependent_settings': {
633 'cflags': [ 627 'cflags': [
634 '<!@(<(pkg-config) --cflags gnome-keyring-1)', 628 '<!@(<(pkg-config) --cflags gnome-keyring-1)',
635 ], 629 ],
636 'defines': [ 630 'defines': [
637 'USE_GNOME_KEYRING', 631 'USE_GNOME_KEYRING',
638 ], 632 ],
639 'include_dirs': [ 633 'conditions': [
640 '<(SHARED_INTERMEDIATE_DIR)', 634 ['linux_link_gnome_keyring==0', {
635 'defines': ['DLOPEN_GNOME_KEYRING'],
636 }],
641 ], 637 ],
642 }, 638 },
643 'link_settings': { 639 'conditions': [
644 'conditions': [ 640 ['linux_link_gnome_keyring!=0', {
645 ['linux_link_gnome_keyring==1', { 641 'link_settings': {
646 'ldflags': [ 642 'ldflags': [
647 '<!@(<(pkg-config) --libs-only-L --libs-only-other gnome-keyri ng-1)', 643 '<!@(<(pkg-config) --libs-only-L --libs-only-other gnome-keyri ng-1)',
648 ], 644 ],
649 'libraries': [ 645 'libraries': [
650 '<!@(<(pkg-config) --libs-only-l gnome-keyring-1)', 646 '<!@(<(pkg-config) --libs-only-l gnome-keyring-1)',
651 ], 647 ],
652 }, { # linux_link_gnome_keyring==0
653 'libraries': [
654 '-ldl',
655 ],
656 }],
657 ],
658 },
659 'hard_dependency': 1,
660 'actions': [
661 {
662 'variables': {
663 'output_h': '<(SHARED_INTERMEDIATE_DIR)/library_loaders/libgnome -keyring.h',
664 'output_cc': '<(INTERMEDIATE_DIR)/libgnome_keyring_loader.cc',
665 'generator': '../../tools/generate_library_loader/generate_libra ry_loader.py',
666 }, 648 },
667 'action_name': 'generate_libgnome_keyring_loader', 649 }, {
668 'inputs': [ 650 'conditions': [
669 '<(generator)', 651 ['OS=="linux"', {
652 'link_settings': {
653 'libraries': [
654 '-ldl',
655 ],
656 },
657 }],
670 ], 658 ],
671 'outputs': [ 659 }],
672 '<(output_h)',
673 '<(output_cc)',
674 ],
675 'action': ['python',
676 '<(generator)',
677 '--name', 'LibGnomeKeyringLoader',
678 '--output-h', '<(output_h)',
679 '--output-cc', '<(output_cc)',
680 '--header', '<gnome-keyring.h>',
681 '--link-directly=<(linux_link_gnome_keyring)',
682 'gnome_keyring_is_available',
683 'gnome_keyring_store_password',
684 'gnome_keyring_delete_password',
685 'gnome_keyring_find_itemsv',
686 'gnome_keyring_result_to_message',
687 ],
688 'message': 'Generating libgnome-keyring library loader.',
689 'process_outputs_as_sources': 1,
690 },
691 ], 660 ],
692 }], 661 }],
693 ], 662 ],
694 }, 663 },
695 { 664 {
696 # The unit tests use a few convenience functions from the GNOME 665 # The unit tests use a few convenience functions from the GNOME
697 # Keyring library directly. We ignore linux_link_gnome_keyring and 666 # Keyring library directly. We ignore linux_link_gnome_keyring and
698 # link directly in this version of the target to allow this. 667 # link directly in this version of the target to allow this.
699 # *** Do not use this target in the main binary! *** 668 # *** Do not use this target in the main binary! ***
700 'target_name': 'gnome_keyring_direct', 669 'target_name': 'gnome_keyring_direct',
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
873 ], 842 ],
874 'libraries': [ 843 'libraries': [
875 '<!@(<(pkg-config) --libs-only-l libudev)', 844 '<!@(<(pkg-config) --libs-only-l libudev)',
876 ], 845 ],
877 }, 846 },
878 }], 847 }],
879 ], 848 ],
880 }, 849 },
881 ], 850 ],
882 } 851 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/password_manager/native_backend_gnome_x.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698