Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(297)

Side by Side Diff: components/os_crypt/BUILD.gn

Issue 1973483002: OSCrypt for POSIX uses libsecret to store a randomised encryption key. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Recommendations Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/ui.gni") 5 import("//build/config/ui.gni")
6 6
7 source_set("os_crypt") { 7 source_set("os_crypt") {
8 sources = [ 8 sources = [
9 "ie7_password_win.cc", 9 "ie7_password_win.cc",
10 "ie7_password_win.h", 10 "ie7_password_win.h",
(...skipping 26 matching lines...) Expand all
37 "os_crypt_mac.mm", 37 "os_crypt_mac.mm",
38 ] 38 ]
39 set_sources_assignment_filter(sources_assignment_filter) 39 set_sources_assignment_filter(sources_assignment_filter)
40 } 40 }
41 41
42 if (is_win) { 42 if (is_win) {
43 libs = [ "crypt32.lib" ] 43 libs = [ "crypt32.lib" ]
44 } 44 }
45 45
46 if (is_desktop_linux && use_glib) { 46 if (is_desktop_linux && use_glib) {
47 sources -= [ "os_crypt_posix.cc" ]
47 sources += [ 48 sources += [
48 "libsecret_util_posix.cc", 49 "key_storage_libsecret.cc",
49 "libsecret_util_posix.h", 50 "key_storage_libsecret.h",
51 "key_storage_linux.cc",
52 "key_storage_linux.h",
53 "libsecret_util_linux.cc",
54 "libsecret_util_linux.h",
55 "os_crypt_linux.cc",
50 ] 56 ]
51 configs += [ "//build/config/linux:glib" ] 57 configs += [ "//build/config/linux:glib" ]
52 deps += [ "//third_party/libsecret" ] 58 deps += [ "//third_party/libsecret" ]
53 defines = [ "USE_LIBSECRET" ] 59 defines = [ "USE_LIBSECRET" ]
54 } 60 }
55 } 61 }
56 62
57 source_set("unit_tests") { 63 source_set("unit_tests") {
58 testonly = true 64 testonly = true
59 sources = [ 65 sources = [
60 "ie7_password_win_unittest.cc", 66 "ie7_password_win_unittest.cc",
61 "keychain_password_mac_unittest.mm", 67 "keychain_password_mac_unittest.mm",
62 "os_crypt_unittest.cc", 68 "os_crypt_unittest.cc",
63 ] 69 ]
64 deps = [ 70 deps = [
65 ":os_crypt", 71 ":os_crypt",
66 "//base", 72 "//base",
67 "//crypto", 73 "//crypto",
68 "//testing/gtest", 74 "//testing/gtest",
69 ] 75 ]
76
77 if (is_desktop_linux) {
78 sources += [
79 "os_crypt_mocker_linux.cc",
80 "os_crypt_mocker_linux.h",
81 "os_crypt_util_linux_unittest.cc",
82 ]
83 deps += [ "//third_party/libsecret" ]
84 defines = [ "USE_LIBSECRET" ]
85 }
70 } 86 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698