| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
| 6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
| 7 import("//build/config/linux/pkg_config.gni") |
| 8 |
| 9 if (is_desktop_linux) { |
| 10 # Gnome-keyring is normally dynamically loaded. The gnome_keyring config |
| 11 # will set this up. |
| 12 pkg_config("gnome_keyring") { |
| 13 packages = [ "gnome-keyring-1" ] |
| 14 defines = [ "USE_GNOME_KEYRING" ] |
| 15 ignore_libs = true |
| 16 } |
| 17 |
| 18 # If you want to link gnome-keyring directly (use only for unit tests) |
| 19 # ADDITIONALLY add this config on top of ":gnome_keyring". pkg-config is a |
| 20 # bit slow, so prefer not to run it again. In practice, gnome-keyring's libs |
| 21 # are just itself and common gnome ones we link already, so we can get away |
| 22 # with additionally just coding the library name here. |
| 23 # TODO(cfroussios): This is only used by |
| 24 # chrome/browser/password_manager/native_backend_gnome_x_unittest.cc |
| 25 # We should deprecate both. |
| 26 config("gnome_keyring_direct") { |
| 27 libs = [ "gnome-keyring" ] |
| 28 } |
| 29 } |
| 7 | 30 |
| 8 static_library("os_crypt") { | 31 static_library("os_crypt") { |
| 9 sources = [ | 32 sources = [ |
| 10 "ie7_password_win.cc", | 33 "ie7_password_win.cc", |
| 11 "ie7_password_win.h", | 34 "ie7_password_win.h", |
| 12 "keychain_password_mac.h", | 35 "keychain_password_mac.h", |
| 13 "keychain_password_mac.mm", | 36 "keychain_password_mac.mm", |
| 14 "os_crypt.h", | 37 "os_crypt.h", |
| 15 "os_crypt_mac.mm", | 38 "os_crypt_mac.mm", |
| 16 "os_crypt_posix.cc", | 39 "os_crypt_posix.cc", |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 "key_storage_linux.cc", | 73 "key_storage_linux.cc", |
| 51 "key_storage_linux.h", | 74 "key_storage_linux.h", |
| 52 "os_crypt_linux.cc", | 75 "os_crypt_linux.cc", |
| 53 ] | 76 ] |
| 54 defines = [] | 77 defines = [] |
| 55 | 78 |
| 56 if (use_glib) { | 79 if (use_glib) { |
| 57 sources += [ | 80 sources += [ |
| 58 "key_storage_libsecret.cc", | 81 "key_storage_libsecret.cc", |
| 59 "key_storage_libsecret.h", | 82 "key_storage_libsecret.h", |
| 83 "keyring_util_linux.cc", |
| 84 "keyring_util_linux.h", |
| 60 "libsecret_util_linux.cc", | 85 "libsecret_util_linux.cc", |
| 61 "libsecret_util_linux.h", | 86 "libsecret_util_linux.h", |
| 62 ] | 87 ] |
| 63 configs += [ "//build/config/linux:glib" ] | 88 configs += [ |
| 89 "//build/config/linux:glib", |
| 90 ":gnome_keyring", |
| 91 ] |
| 64 deps += [ "//third_party/libsecret" ] | 92 deps += [ "//third_party/libsecret" ] |
| 65 defines += [ "USE_LIBSECRET" ] | 93 defines += [ "USE_LIBSECRET" ] |
| 66 } | 94 } |
| 67 if (use_dbus) { | 95 if (use_dbus) { |
| 68 sources += [ | 96 sources += [ |
| 69 "key_storage_kwallet.cc", | 97 "key_storage_kwallet.cc", |
| 70 "key_storage_kwallet.h", | 98 "key_storage_kwallet.h", |
| 71 "kwallet_dbus.cc", | 99 "kwallet_dbus.cc", |
| 72 "kwallet_dbus.h", | 100 "kwallet_dbus.h", |
| 73 ] | 101 ] |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 if (use_dbus) { | 159 if (use_dbus) { |
| 132 sources += [ | 160 sources += [ |
| 133 "key_storage_kwallet_unittest.cc", | 161 "key_storage_kwallet_unittest.cc", |
| 134 "kwallet_dbus_unittest.cc", | 162 "kwallet_dbus_unittest.cc", |
| 135 ] | 163 ] |
| 136 deps += [ "//dbus:test_support" ] | 164 deps += [ "//dbus:test_support" ] |
| 137 defines += [ "USE_KWALLET" ] | 165 defines += [ "USE_KWALLET" ] |
| 138 } | 166 } |
| 139 } | 167 } |
| 140 } | 168 } |
| OLD | NEW |