electron/patches/common/chromium/statically_build_power_save_blocker.patch
2018-10-09 14:38:00 -07:00

30 lines
1 KiB
Diff

From a99c5f94fd02a391cde00aedfd613937cb72d558 Mon Sep 17 00:00:00 2001
From: Aleksei Kuzmin <alkuzmin@microsoft.com>
Date: Thu, 20 Sep 2018 17:47:22 -0700
Subject: statically_build_power_save_blocker.patch
diff --git a/services/device/wake_lock/power_save_blocker/BUILD.gn b/services/device/wake_lock/power_save_blocker/BUILD.gn
index dfce90f6b791..a2f7f776f4d8 100644
--- a/services/device/wake_lock/power_save_blocker/BUILD.gn
+++ b/services/device/wake_lock/power_save_blocker/BUILD.gn
@@ -9,7 +9,7 @@ if (is_android) {
import("//build/config/android/rules.gni")
}
-source_set("power_save_blocker") {
+static_library("power_save_blocker") {
visibility = [
# //remoting runs in a separate process which is outside of the context of
# the ServiceManager-based world. Instead of embedding a Service Manager
@@ -18,6 +18,7 @@ source_set("power_save_blocker") {
"//remoting/host:*",
"//remoting/host/win:*",
"//services/device/wake_lock:*",
+ "//electron:*",
]
sources = [
--
2.17.0