| 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") | 7 import("//build/config/linux/pkg_config.gni") |
| 8 import("//components/os_crypt/features.gni") | 8 import("//components/os_crypt/features.gni") |
| 9 | 9 |
| 10 if (use_gnome_keyring) { | 10 if (use_gnome_keyring) { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 "key_storage_linux.cc", | 74 "key_storage_linux.cc", |
| 75 "key_storage_linux.h", | 75 "key_storage_linux.h", |
| 76 "key_storage_util_linux.cc", | 76 "key_storage_util_linux.cc", |
| 77 "key_storage_util_linux.h", | 77 "key_storage_util_linux.h", |
| 78 "os_crypt_linux.cc", | 78 "os_crypt_linux.cc", |
| 79 ] | 79 ] |
| 80 defines = [] | 80 defines = [] |
| 81 | 81 |
| 82 if (use_gnome_keyring) { | 82 if (use_gnome_keyring) { |
| 83 sources += [ | 83 sources += [ |
| 84 "key_storage_keyring.cc", |
| 85 "key_storage_keyring.h", |
| 84 "keyring_util_linux.cc", | 86 "keyring_util_linux.cc", |
| 85 "keyring_util_linux.h", | 87 "keyring_util_linux.h", |
| 86 ] | 88 ] |
| 87 configs += [ ":gnome_keyring" ] | 89 configs += [ ":gnome_keyring" ] |
| 90 defines += [ "USE_KEYRING" ] |
| 88 } | 91 } |
| 89 if (use_glib) { | 92 if (use_glib) { |
| 90 sources += [ | 93 sources += [ |
| 91 "key_storage_libsecret.cc", | 94 "key_storage_libsecret.cc", |
| 92 "key_storage_libsecret.h", | 95 "key_storage_libsecret.h", |
| 93 "libsecret_util_linux.cc", | 96 "libsecret_util_linux.cc", |
| 94 "libsecret_util_linux.h", | 97 "libsecret_util_linux.h", |
| 95 ] | 98 ] |
| 96 configs += [ "//build/config/linux:glib" ] | 99 configs += [ "//build/config/linux:glib" ] |
| 97 deps += [ "//third_party/libsecret" ] | 100 deps += [ "//third_party/libsecret" ] |
| (...skipping 22 matching lines...) Expand all Loading... |
| 120 ":os_crypt", | 123 ":os_crypt", |
| 121 "//base", | 124 "//base", |
| 122 "//testing/gtest", | 125 "//testing/gtest", |
| 123 ] | 126 ] |
| 124 if (is_desktop_linux) { | 127 if (is_desktop_linux) { |
| 125 sources += [ | 128 sources += [ |
| 126 "os_crypt_mocker_linux.cc", | 129 "os_crypt_mocker_linux.cc", |
| 127 "os_crypt_mocker_linux.h", | 130 "os_crypt_mocker_linux.h", |
| 128 ] | 131 ] |
| 129 defines = [] | 132 defines = [] |
| 133 if (use_gnome_keyring) { |
| 134 defines += [ "USE_KEYRING" ] |
| 135 } |
| 130 if (use_glib) { | 136 if (use_glib) { |
| 131 defines += [ "USE_LIBSECRET" ] | 137 defines += [ "USE_LIBSECRET" ] |
| 132 } | 138 } |
| 133 if (use_dbus) { | 139 if (use_dbus) { |
| 134 defines += [ "USE_KWALLET" ] | 140 defines += [ "USE_KWALLET" ] |
| 135 } | 141 } |
| 136 } | 142 } |
| 137 } | 143 } |
| 138 | 144 |
| 139 source_set("unit_tests") { | 145 source_set("unit_tests") { |
| 140 testonly = true | 146 testonly = true |
| 141 sources = [ | 147 sources = [ |
| 142 "ie7_password_win_unittest.cc", | 148 "ie7_password_win_unittest.cc", |
| 143 "keychain_password_mac_unittest.mm", | 149 "keychain_password_mac_unittest.mm", |
| 144 "os_crypt_unittest.cc", | 150 "os_crypt_unittest.cc", |
| 145 ] | 151 ] |
| 146 deps = [ | 152 deps = [ |
| 147 ":os_crypt", | 153 ":os_crypt", |
| 148 ":test_support", | 154 ":test_support", |
| 149 "//base", | 155 "//base", |
| 150 "//crypto", | 156 "//crypto", |
| 151 "//testing/gmock", | 157 "//testing/gmock", |
| 152 "//testing/gtest", | 158 "//testing/gtest", |
| 153 ] | 159 ] |
| 154 | 160 |
| 155 if (is_desktop_linux) { | 161 if (is_desktop_linux) { |
| 156 sources += [ "os_crypt_linux_unittest.cc" ] | 162 sources += [ "os_crypt_linux_unittest.cc" ] |
| 157 defines = [] | 163 defines = [] |
| 158 | 164 |
| 165 if (use_gnome_keyring) { |
| 166 sources += [ "key_storage_keyring_unittest.cc" ] |
| 167 configs += [ ":gnome_keyring" ] |
| 168 deps += [ "//base/test:test_support" ] |
| 169 defines += [ "USE_KEYRING" ] |
| 170 } |
| 159 if (use_glib) { | 171 if (use_glib) { |
| 160 sources += [ "os_crypt_util_linux_unittest.cc" ] | 172 sources += [ "os_crypt_util_linux_unittest.cc" ] |
| 161 deps += [ "//third_party/libsecret" ] | 173 deps += [ "//third_party/libsecret" ] |
| 162 defines += [ "USE_LIBSECRET" ] | 174 defines += [ "USE_LIBSECRET" ] |
| 163 } | 175 } |
| 164 if (use_dbus) { | 176 if (use_dbus) { |
| 165 sources += [ | 177 sources += [ |
| 166 "key_storage_kwallet_unittest.cc", | 178 "key_storage_kwallet_unittest.cc", |
| 167 "kwallet_dbus_unittest.cc", | 179 "kwallet_dbus_unittest.cc", |
| 168 ] | 180 ] |
| 169 deps += [ "//dbus:test_support" ] | 181 deps += [ "//dbus:test_support" ] |
| 170 defines += [ "USE_KWALLET" ] | 182 defines += [ "USE_KWALLET" ] |
| 171 } | 183 } |
| 172 } | 184 } |
| 173 } | 185 } |
| OLD | NEW |