Index: build/linux/system.gyp |
=================================================================== |
--- build/linux/system.gyp (revision 49101) |
+++ build/linux/system.gyp (working copy) |
@@ -254,43 +254,55 @@ |
}, |
}]] |
}, |
-# TODO(evanm): temporarily disabled while we figure out whether to depend |
-# on gnome-keyring etc. |
-# http://code.google.com/p/chromium/issues/detail?id=12351 |
-# { |
-# 'target_name': 'gnome-keyring', |
-# 'type': 'settings', |
-# 'direct_dependent_settings': { |
-# 'cflags': [ |
-# '<!@(<(pkg-config) --cflags gnome-keyring-1)', |
-# ], |
-# }, |
-# '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': { |
- '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)', |
- ], |
- }, |
- }, |
+ { |
+ 'target_name': 'gnome-keyring', |
+ 'type': 'settings', |
+ 'direct_dependent_settings': { |
+ 'cflags': [ |
+ '<!@(<(pkg-config) --cflags gnome-keyring-1)', |
+ ], |
+ '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)', |
+ ], |
+ }, |
+ }, { |
+ 'link_settings': { |
+ 'libraries': [ |
+ '-ldl', |
+ ], |
+ }, |
+ }], |
+ ], |
+ }, |
+ { |
+ '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)', |
+ ], |
+ }, |
+ }, |
], |
} |