summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rw-r--r--build/linux/system.gyp35
1 files changed, 34 insertions, 1 deletions
diff --git a/build/linux/system.gyp b/build/linux/system.gyp
index 6e8a8be..8d82eab 100644
--- a/build/linux/system.gyp
+++ b/build/linux/system.gyp
@@ -340,7 +340,7 @@
}]]
},
{
- 'target_name': 'gnome-keyring',
+ 'target_name': 'gnome_keyring',
'type': 'settings',
'conditions': [
['use_gnome_keyring==1', {
@@ -379,6 +379,39 @@
],
},
{
+ # 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.
+ # *** Do not use this target in the main binary! ***
+ 'target_name': 'gnome_keyring_direct',
+ 'type': 'settings',
+ 'conditions': [
+ ['use_gnome_keyring==1', {
+ 'direct_dependent_settings': {
+ 'cflags': [
+ '<!@(<(pkg-config) --cflags gnome-keyring-1)',
+ ],
+ 'defines': [
+ 'USE_GNOME_KEYRING',
+ ],
+ 'conditions': [
+ ['linux_link_gnome_keyring==0', {
+ 'defines': ['DLOPEN_GNOME_KEYRING'],
+ }],
+ ],
+ },
+ 'link_settings': {
+ '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': {