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

Unified Diff: components/os_crypt/BUILD.gn

Issue 2150543002: OSCrypt supports encryption with KWallet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: components/os_crypt/BUILD.gn
diff --git a/components/os_crypt/BUILD.gn b/components/os_crypt/BUILD.gn
index ffb9d8b6bd0a88dc2fb1ccb7ec88d003f95616de..7ae69302e4737ea7399e7e3bffed6d4b92ca3994 100644
--- a/components/os_crypt/BUILD.gn
+++ b/components/os_crypt/BUILD.gn
@@ -66,6 +66,8 @@ static_library("os_crypt") {
}
if (use_dbus) {
sources += [
+ "key_storage_kwallet.cc",
+ "key_storage_kwallet.h",
"kwallet_dbus.cc",
"kwallet_dbus.h",
]
@@ -91,8 +93,13 @@ static_library("test_support") {
"os_crypt_mocker_linux.cc",
"os_crypt_mocker_linux.h",
]
- deps += [ "//third_party/libsecret" ]
- defines = [ "USE_LIBSECRET" ]
+ defines = []
+ if (use_glib) {
+ defines += [ "USE_LIBSECRET" ]
+ }
+ if (use_dbus) {
+ defines += [ "USE_KWALLET" ]
+ }
}
}
@@ -122,7 +129,10 @@ source_set("unit_tests") {
defines += [ "USE_LIBSECRET" ]
}
if (use_dbus) {
- sources += [ "kwallet_dbus_unittest.cc" ]
+ sources += [
+ "key_storage_kwallet_unittest.cc",
+ "kwallet_dbus_unittest.cc",
+ ]
deps += [ "//dbus:test_support" ]
defines += [ "USE_KWALLET" ]
}

Powered by Google App Engine
This is Rietveld 408576698