| 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 += [ |
| 47 "key_storage_linux.cc", |
| 48 "key_storage_linux.h", |
| 46 "libsecret_util_posix.cc", | 49 "libsecret_util_posix.cc", |
| 47 "libsecret_util_posix.h", | 50 "libsecret_util_posix.h", |
| 51 "os_crypt_linux.cc", |
| 48 ] | 52 ] |
| 49 configs += [ "//build/config/linux:glib" ] | 53 configs += [ "//build/config/linux:glib" ] |
| 50 deps += [ "//third_party/libsecret" ] | 54 deps += [ "//third_party/libsecret" ] |
| 51 defines = [ "USE_LIBSECRET" ] | 55 defines = [ "USE_LIBSECRET" ] |
| 52 } | 56 } |
| 53 } | 57 } |
| 54 | 58 |
| 55 source_set("unit_tests") { | 59 source_set("unit_tests") { |
| 56 testonly = true | 60 testonly = true |
| 57 sources = [ | 61 sources = [ |
| 58 "ie7_password_win_unittest.cc", | 62 "ie7_password_win_unittest.cc", |
| 59 "keychain_password_mac_unittest.mm", | 63 "keychain_password_mac_unittest.mm", |
| 60 "os_crypt_unittest.cc", | 64 "os_crypt_unittest.cc", |
| 61 ] | 65 ] |
| 62 deps = [ | 66 deps = [ |
| 63 ":os_crypt", | 67 ":os_crypt", |
| 64 "//base", | 68 "//base", |
| 65 "//crypto", | 69 "//crypto", |
| 66 "//testing/gtest", | 70 "//testing/gtest", |
| 67 ] | 71 ] |
| 72 |
| 73 if (is_desktop_linux) { |
| 74 sources += [ "os_crypt_util_linux_unittest.cc" ] |
| 75 deps += [ "//third_party/libsecret" ] |
| 76 defines = [ "USE_LIBSECRET" ] |
| 77 } |
| 68 } | 78 } |
| OLD | NEW |