| 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 22 matching lines...) Expand all Loading... |
| 33 sources += [ | 33 sources += [ |
| 34 "keychain_password_mac.mm", | 34 "keychain_password_mac.mm", |
| 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 |
| 44 if (is_desktop_linux) { |
| 45 sources += [ |
| 46 "os_crypt_posix_util_libsecret.cc", |
| 47 "os_crypt_posix_util_libsecret.h", |
| 48 ] |
| 49 deps += [ "//third_party/libsecret" ] |
| 50 defines = [ "USE_LIBSECRET" ] |
| 51 } |
| 43 } | 52 } |
| 44 | 53 |
| 45 source_set("unit_tests") { | 54 source_set("unit_tests") { |
| 46 testonly = true | 55 testonly = true |
| 47 sources = [ | 56 sources = [ |
| 48 "ie7_password_win_unittest.cc", | 57 "ie7_password_win_unittest.cc", |
| 49 "keychain_password_mac_unittest.mm", | 58 "keychain_password_mac_unittest.mm", |
| 50 "os_crypt_unittest.cc", | 59 "os_crypt_unittest.cc", |
| 51 ] | 60 ] |
| 52 deps = [ | 61 deps = [ |
| 53 ":os_crypt", | 62 ":os_crypt", |
| 54 "//base", | 63 "//base", |
| 55 "//crypto", | 64 "//crypto", |
| 56 "//testing/gtest", | 65 "//testing/gtest", |
| 57 ] | 66 ] |
| 58 } | 67 } |
| OLD | NEW |