Chromium Code Reviews| 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 source_set("os_crypt") { | 5 source_set("os_crypt") { |
| 6 sources = [ | 6 sources = [ |
| 7 "ie7_password_win.cc", | 7 "ie7_password_win.cc", |
| 8 "ie7_password_win.h", | 8 "ie7_password_win.h", |
| 9 "keychain_password_mac.h", | 9 "keychain_password_mac.h", |
| 10 "keychain_password_mac.mm", | 10 "keychain_password_mac.mm", |
| (...skipping 24 matching lines...) Expand all Loading... | |
| 35 "os_crypt_mac.mm", | 35 "os_crypt_mac.mm", |
| 36 ] | 36 ] |
| 37 set_sources_assignment_filter(sources_assignment_filter) | 37 set_sources_assignment_filter(sources_assignment_filter) |
| 38 } | 38 } |
| 39 | 39 |
| 40 if (is_win) { | 40 if (is_win) { |
| 41 libs = [ "crypt32.lib" ] | 41 libs = [ "crypt32.lib" ] |
| 42 } | 42 } |
| 43 | 43 |
| 44 if (is_desktop_linux) { | 44 if (is_desktop_linux) { |
| 45 sources -= [ "os_crypt_posix.cc" ] | |
| 45 sources += [ | 46 sources += [ |
| 46 "libsecret_util_posix.cc", | 47 "key_storage_libsecret.cc", |
| 47 "libsecret_util_posix.h", | 48 "key_storage_libsecret.h", |
| 49 "key_storage_linux.cc", | |
| 50 "key_storage_linux.h", | |
| 51 "key_storage_mock.cc", | |
| 52 "key_storage_mock.h", | |
| 53 "libsecret_util_linux.cc", | |
| 54 "libsecret_util_linux.h", | |
| 55 "os_crypt_linux.cc", | |
| 48 ] | 56 ] |
| 49 configs += [ "//build/config/linux:glib" ] | 57 configs += [ "//build/config/linux:glib" ] |
| 50 deps += [ "//third_party/libsecret" ] | 58 deps += [ "//third_party/libsecret" ] |
| 51 defines = [ "USE_LIBSECRET" ] | 59 defines = [ "USE_LIBSECRET" ] |
| 52 } | 60 } |
| 53 } | 61 } |
| 54 | 62 |
| 55 source_set("unit_tests") { | 63 source_set("unit_tests") { |
| 56 testonly = true | 64 testonly = true |
| 57 sources = [ | 65 sources = [ |
| 58 "ie7_password_win_unittest.cc", | 66 "ie7_password_win_unittest.cc", |
| 59 "keychain_password_mac_unittest.mm", | 67 "keychain_password_mac_unittest.mm", |
| 60 "os_crypt_unittest.cc", | 68 "os_crypt_unittest.cc", |
| 61 ] | 69 ] |
| 62 deps = [ | 70 deps = [ |
| 63 ":os_crypt", | 71 ":os_crypt", |
| 64 "//base", | 72 "//base", |
| 65 "//crypto", | 73 "//crypto", |
| 66 "//testing/gtest", | 74 "//testing/gtest", |
| 67 ] | 75 ] |
| 76 | |
| 77 if (is_desktop_linux) { | |
| 78 sources += [ "os_crypt_util_linux_unittest.cc" ] | |
| 79 deps += [ "//third_party/libsecret" ] | |
|
Lei Zhang
2016/05/18 22:38:15
I can't remember if this is strictly necessary wit
cfroussios
2016/05/19 21:18:17
We include libsecret_util_linux.h, which brings th
| |
| 80 defines = [ "USE_LIBSECRET" ] | |
| 81 } | |
| 68 } | 82 } |
| OLD | NEW |