Deprecate DLOPEN_GNOME_KEYRING flag
GnomeKeyringLoader will be moved into a separate utility. This change makes GnomeKeyringLoader simpler to build on and easier to move. Currently, GnomeKeyringLoader compiles different code, depending on whether keyring is statically linked. Now it will only do dynamic loading. The only place that requires static linking is tests, and they don't need GnomeKeyringLoader to do it for them. BUG=602624 Review-Url: https://codereview.chromium.org/2191873002 Cr-Original-Commit-Position: refs/heads/master@{#408924} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: da4e6a834587d15f7696c5a396099fafa719ddf1
This commit is contained in:
Родитель
94ae8edf48
Коммит
38855e64d5
|
@ -1416,8 +1416,6 @@
|
|||
# Default of 'use_allocator' is set to 'none' if OS=='android' later.
|
||||
'use_allocator%': 'tcmalloc',
|
||||
|
||||
# Set to 1 to link against libgnome-keyring instead of using dlopen().
|
||||
'linux_link_gnome_keyring%': 0,
|
||||
# Set to 1 to link against gsettings APIs instead of using dlopen().
|
||||
'linux_link_gsettings%': 0,
|
||||
|
||||
|
|
|
@ -987,41 +987,14 @@
|
|||
'defines': [
|
||||
'USE_GNOME_KEYRING',
|
||||
],
|
||||
'conditions': [
|
||||
['linux_link_gnome_keyring==0', {
|
||||
'defines': ['DLOPEN_GNOME_KEYRING'],
|
||||
}],
|
||||
],
|
||||
},
|
||||
'conditions': [
|
||||
['linux_link_gnome_keyring!=0', {
|
||||
'link_settings': {
|
||||
'ldflags': [
|
||||
'<!@(<(pkg-config) --libs-only-L --libs-only-other gnome-keyring-1)',
|
||||
],
|
||||
'libraries': [
|
||||
'<!@(<(pkg-config) --libs-only-l gnome-keyring-1)',
|
||||
],
|
||||
},
|
||||
}, {
|
||||
'conditions': [
|
||||
['OS=="linux"', {
|
||||
'link_settings': {
|
||||
'libraries': [
|
||||
'-ldl',
|
||||
],
|
||||
},
|
||||
}],
|
||||
],
|
||||
}],
|
||||
],
|
||||
}],
|
||||
],
|
||||
},
|
||||
{
|
||||
# The unit tests use a few convenience functions from the GNOME
|
||||
# Keyring library directly. We ignore linux_link_gnome_keyring and
|
||||
# link directly in this version of the target to allow this.
|
||||
# Keyring library directly. We link directly in this version of
|
||||
# the target to allow this.
|
||||
# *** Do not use this target in the main binary! ***
|
||||
'target_name': 'gnome_keyring_direct',
|
||||
'type': 'none',
|
||||
|
@ -1034,11 +1007,6 @@
|
|||
'defines': [
|
||||
'USE_GNOME_KEYRING',
|
||||
],
|
||||
'conditions': [
|
||||
['linux_link_gnome_keyring==0', {
|
||||
'defines': ['DLOPEN_GNOME_KEYRING'],
|
||||
}],
|
||||
],
|
||||
},
|
||||
'link_settings': {
|
||||
'ldflags': [
|
||||
|
|
Загрузка…
Ссылка в новой задаче