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

Unified Diff: components/os_crypt/BUILD.gn

Issue 2244653002: gn: Use a separate flag for enabling libgnome-keyring support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Patch v2, drop unnecessary import Created 4 years, 4 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
« no previous file with comments | « chrome/test/BUILD.gn ('k') | components/os_crypt/features.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/os_crypt/BUILD.gn
diff --git a/components/os_crypt/BUILD.gn b/components/os_crypt/BUILD.gn
index 2c40d08413eb51be681300ccdc49a912c22cc7e1..be2ce6f67abb0e6312683d600be236a61a79f6d4 100644
--- a/components/os_crypt/BUILD.gn
+++ b/components/os_crypt/BUILD.gn
@@ -5,8 +5,9 @@
import("//build/config/features.gni")
import("//build/config/ui.gni")
import("//build/config/linux/pkg_config.gni")
+import("//components/os_crypt/features.gni")
-if (is_desktop_linux) {
+if (use_gnome_keyring) {
# Gnome-keyring is normally dynamically loaded. The gnome_keyring config
# will set this up.
pkg_config("gnome_keyring") {
@@ -76,19 +77,21 @@ static_library("os_crypt") {
]
defines = []
+ if (use_gnome_keyring) {
+ sources += [
+ "keyring_util_linux.cc",
+ "keyring_util_linux.h",
+ ]
+ configs += [ ":gnome_keyring" ]
+ }
if (use_glib) {
sources += [
"key_storage_libsecret.cc",
"key_storage_libsecret.h",
- "keyring_util_linux.cc",
- "keyring_util_linux.h",
"libsecret_util_linux.cc",
"libsecret_util_linux.h",
]
- configs += [
- "//build/config/linux:glib",
- ":gnome_keyring",
- ]
+ configs += [ "//build/config/linux:glib" ]
deps += [ "//third_party/libsecret" ]
defines += [ "USE_LIBSECRET" ]
}
« no previous file with comments | « chrome/test/BUILD.gn ('k') | components/os_crypt/features.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698