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

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, 6 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
« no previous file with comments | « components/os_crypt.gypi ('k') | components/os_crypt/key_storage_libsecret.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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("test_support") { 63 source_set("test_support") {
58 testonly = true 64 testonly = true
59 sources = [ 65 sources = [
60 "os_crypt_mocker.cc", 66 "os_crypt_mocker.cc",
61 "os_crypt_mocker.h", 67 "os_crypt_mocker.h",
62 ] 68 ]
63 deps = [ 69 deps = [
64 ":os_crypt", 70 ":os_crypt",
65 "//base", 71 "//base",
72 "//testing/gtest",
66 ] 73 ]
67 if (is_desktop_linux && use_glib) { 74 if (is_desktop_linux && use_glib) {
75 sources += [
76 "os_crypt_mocker_linux.cc",
77 "os_crypt_mocker_linux.h",
78 ]
68 deps += [ "//third_party/libsecret" ] 79 deps += [ "//third_party/libsecret" ]
69 defines = [ "USE_LIBSECRET" ] 80 defines = [ "USE_LIBSECRET" ]
70 } 81 }
71 } 82 }
72 83
73 source_set("unit_tests") { 84 source_set("unit_tests") {
74 testonly = true 85 testonly = true
75 sources = [ 86 sources = [
76 "ie7_password_win_unittest.cc", 87 "ie7_password_win_unittest.cc",
77 "keychain_password_mac_unittest.mm", 88 "keychain_password_mac_unittest.mm",
78 "os_crypt_unittest.cc", 89 "os_crypt_unittest.cc",
79 ] 90 ]
80 deps = [ 91 deps = [
81 ":os_crypt", 92 ":os_crypt",
82 ":test_support", 93 ":test_support",
83 "//base", 94 "//base",
84 "//crypto", 95 "//crypto",
85 "//testing/gtest", 96 "//testing/gtest",
86 ] 97 ]
87 98
88 if (is_desktop_linux && use_glib) { 99 if (is_desktop_linux && use_glib) {
100 sources += [
101 "os_crypt_linux_unittest.cc",
102 "os_crypt_util_linux_unittest.cc",
103 ]
89 deps += [ "//third_party/libsecret" ] 104 deps += [ "//third_party/libsecret" ]
90 defines = [ "USE_LIBSECRET" ] 105 defines = [ "USE_LIBSECRET" ]
91 } 106 }
92 } 107 }
OLDNEW
« no previous file with comments | « components/os_crypt.gypi ('k') | components/os_crypt/key_storage_libsecret.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698