Commit 556c5d74 authored by mdm@chromium.org's avatar mdm@chromium.org

Reland r49135: Linux: enable compiling GNOME Keyring and KWallet integration. It's still unused.

BUG=12351,25404
TEST=GNOME Keyring and KWallet get compiled, but add no new library dependencies

Review URL: http://codereview.chromium.org/2774002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49370 0039d316-1c4b-4281-b951-d872f2087c98
parent 8a1ace21
...@@ -239,6 +239,9 @@ ...@@ -239,6 +239,9 @@
# (Note: this is ignored for official builds.) # (Note: this is ignored for official builds.)
'linux_use_seccomp_sandbox%': 0, 'linux_use_seccomp_sandbox%': 0,
# Set to 1 to link against libgnome-keyring instead of using dlopen().
'linux_link_gnome_keyring%': 0,
# Set to select the Title Case versions of strings in GRD files. # Set to select the Title Case versions of strings in GRD files.
'use_titlecase_in_grd_files%': 0, 'use_titlecase_in_grd_files%': 0,
......
...@@ -255,43 +255,55 @@ ...@@ -255,43 +255,55 @@
}, },
}]] }]]
}, },
# TODO(evanm): temporarily disabled while we figure out whether to depend {
# on gnome-keyring etc. 'target_name': 'gnome-keyring',
# http://code.google.com/p/chromium/issues/detail?id=12351 'type': 'settings',
# { 'direct_dependent_settings': {
# 'target_name': 'gnome-keyring', 'cflags': [
# 'type': 'settings', '<!@(<(pkg-config) --cflags gnome-keyring-1)',
# 'direct_dependent_settings': { ],
# 'cflags': [ 'conditions': [
# '<!@(<(pkg-config) --cflags gnome-keyring-1)', ['linux_link_gnome_keyring==0', {
# ], 'defines': ['DLOPEN_GNOME_KEYRING'],
# }, }],
# 'link_settings': { ],
# 'ldflags': [ },
# '<!@(<(pkg-config) --libs-only-L --libs-only-other gnome-keyring-1)', 'conditions': [
# ], ['linux_link_gnome_keyring!=0', {
# 'libraries': [ 'link_settings': {
# '<!@(<(pkg-config) --libs-only-l gnome-keyring-1)', 'ldflags': [
# ], '<!@(<(pkg-config) --libs-only-L --libs-only-other gnome-keyring-1)',
# }, ],
# }, 'libraries': [
{ '<!@(<(pkg-config) --libs-only-l gnome-keyring-1)',
'target_name': 'dbus-glib', ],
'type': 'settings', },
'direct_dependent_settings': { }, {
'cflags': [ 'link_settings': {
'<!@(<(pkg-config) --cflags dbus-glib-1)', 'libraries': [
], '-ldl',
}, ],
'link_settings': { },
'ldflags': [ }],
'<!@(<(pkg-config) --libs-only-L --libs-only-other dbus-glib-1)', ],
], },
'libraries': [ {
'<!@(<(pkg-config) --libs-only-l dbus-glib-1)', 'target_name': 'dbus-glib',
], 'type': 'settings',
}, 'direct_dependent_settings': {
}, 'cflags': [
'<!@(<(pkg-config) --cflags dbus-glib-1)',
],
},
'link_settings': {
'ldflags': [
'<!@(<(pkg-config) --libs-only-L --libs-only-other dbus-glib-1)',
],
'libraries': [
'<!@(<(pkg-config) --libs-only-l dbus-glib-1)',
],
},
},
], ],
} }
......
...@@ -1798,12 +1798,10 @@ ...@@ -1798,12 +1798,10 @@
'browser/password_manager/password_store.h', 'browser/password_manager/password_store.h',
'browser/password_manager/password_store_default.cc', 'browser/password_manager/password_store_default.cc',
'browser/password_manager/password_store_default.h', 'browser/password_manager/password_store_default.h',
# Temporarily disabled while we figure some stuff out. 'browser/password_manager/password_store_gnome.h',
# http://code.google.com/p/chromium/issues/detail?id=12351 'browser/password_manager/password_store_gnome.cc',
# 'browser/password_manager/password_store_gnome.h', 'browser/password_manager/password_store_kwallet.h',
# 'browser/password_manager/password_store_gnome.cc', 'browser/password_manager/password_store_kwallet.cc',
# 'browser/password_manager/password_store_kwallet.h',
# 'browser/password_manager/password_store_kwallet.cc',
'browser/password_manager/password_store_mac_internal.h', 'browser/password_manager/password_store_mac_internal.h',
'browser/password_manager/password_store_mac.h', 'browser/password_manager/password_store_mac.h',
'browser/password_manager/password_store_mac.cc', 'browser/password_manager/password_store_mac.cc',
...@@ -1834,7 +1832,7 @@ ...@@ -1834,7 +1832,7 @@
'browser/pref_service.h', 'browser/pref_service.h',
'browser/pref_store.h', 'browser/pref_store.h',
'browser/pref_value_store.cc', 'browser/pref_value_store.cc',
'browser/pref_value_store.h', 'browser/pref_value_store.h',
'browser/printing/print_dialog_gtk.cc', 'browser/printing/print_dialog_gtk.cc',
'browser/printing/print_dialog_gtk.h', 'browser/printing/print_dialog_gtk.h',
'browser/printing/print_dialog_cloud.cc', 'browser/printing/print_dialog_cloud.cc',
...@@ -2655,6 +2653,10 @@ ...@@ -2655,6 +2653,10 @@
}], }],
['chromeos==1', { ['chromeos==1', {
'sources!': [ 'sources!': [
'browser/password_manager/password_store_gnome.h',
'browser/password_manager/password_store_gnome.cc',
'browser/password_manager/password_store_kwallet.h',
'browser/password_manager/password_store_kwallet.cc',
'browser/platform_util_linux.cc', 'browser/platform_util_linux.cc',
], ],
'link_settings': { 'link_settings': {
...@@ -2667,9 +2669,6 @@ ...@@ -2667,9 +2669,6 @@
'dependencies': [ 'dependencies': [
'../build/linux/system.gyp:dbus-glib', '../build/linux/system.gyp:dbus-glib',
'../build/linux/system.gyp:gconf', '../build/linux/system.gyp:gconf',
# Temporarily disabled while we figure some stuff out.
# http://code.google.com/p/chromium/issues/detail?id=12351
# '../build/linux/system.gyp:gnome-keyring',
'../build/linux/system.gyp:gtk', '../build/linux/system.gyp:gtk',
'../build/linux/system.gyp:gtkprint', '../build/linux/system.gyp:gtkprint',
'../build/linux/system.gyp:nss', '../build/linux/system.gyp:nss',
...@@ -2703,6 +2702,11 @@ ...@@ -2703,6 +2702,11 @@
'third_party/mozilla_security_manager/nsUsageArrayHelper.h', 'third_party/mozilla_security_manager/nsUsageArrayHelper.h',
], ],
'conditions': [ 'conditions': [
['chromeos==0', {
'dependencies': [
'../build/linux/system.gyp:gnome-keyring',
],
}],
['linux_breakpad==1', { ['linux_breakpad==1', {
'sources': [ 'sources': [
'app/breakpad_linux.cc', 'app/breakpad_linux.cc',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment