summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authormdm@chromium.org <mdm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-08 01:25:58 +0000
committermdm@chromium.org <mdm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-08 01:25:58 +0000
commitdfe3aeae31a0f719253fd39897be5c14d0a79885 (patch)
treea706e17c6722c0747b3a631af7ff22a4a6619f3c /build
parent81966946aa4e8861a5200f20b43f177ef70c3478 (diff)
downloadchromium_src-dfe3aeae31a0f719253fd39897be5c14d0a79885.zip
chromium_src-dfe3aeae31a0f719253fd39897be5c14d0a79885.tar.gz
chromium_src-dfe3aeae31a0f719253fd39897be5c14d0a79885.tar.bz2
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/2718001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49135 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r--build/common.gypi3
-rw-r--r--build/linux/system.gyp86
2 files changed, 52 insertions, 37 deletions
diff --git a/build/common.gypi b/build/common.gypi
index 3228d13..dd752ad 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -235,6 +235,9 @@
# (Note: this is ignored for official builds.)
'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.
'use_titlecase_in_grd_files%': 0,
diff --git a/build/linux/system.gyp b/build/linux/system.gyp
index dbd394b..db1c756 100644
--- a/build/linux/system.gyp
+++ b/build/linux/system.gyp
@@ -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)',
+ ],
+ },
+ },
],
}