16f459228b
Co-authored-by: Samuel Attard <sattard@salesforce.com> Co-authored-by: VerteDinde <vertedinde@electronjs.org> Co-authored-by: Keeley Hammond <khammond@slack-corp.com> Co-authored-by: Jeremy Rose <jeremya@chromium.org>
32 lines
1.2 KiB
Diff
32 lines
1.2 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Jeremy Apthorp <nornagon@nornagon.net>
|
|
Date: Thu, 20 Sep 2018 17:48:38 -0700
|
|
Subject: gtk_visibility.patch
|
|
|
|
Allow electron to depend on GTK in the GN build.
|
|
|
|
diff --git a/build/config/linux/gtk/BUILD.gn b/build/config/linux/gtk/BUILD.gn
|
|
index 355067ea178bee1466f9df5a3ed146e9f09f0768..1b385d12692deece9e10722fc70215e8c645f6af 100644
|
|
--- a/build/config/linux/gtk/BUILD.gn
|
|
+++ b/build/config/linux/gtk/BUILD.gn
|
|
@@ -27,6 +27,7 @@ pkg_config("gtk_internal_config") {
|
|
|
|
group("gtk") {
|
|
visibility = [
|
|
+ "//electron:*",
|
|
# These are allow-listed for WebRTC builds. Nothing in else should depend
|
|
# on GTK.
|
|
"//examples:peerconnection_client",
|
|
diff --git a/ui/ozone/platform/x11/BUILD.gn b/ui/ozone/platform/x11/BUILD.gn
|
|
index 898f285e72b094f667a00a65c054daf71ede13a5..ba537d81ecd5c8d1e4580ab54692a5bdeebb6d26 100644
|
|
--- a/ui/ozone/platform/x11/BUILD.gn
|
|
+++ b/ui/ozone/platform/x11/BUILD.gn
|
|
@@ -6,7 +6,7 @@ import("//build/config/chromeos/ui_mode.gni")
|
|
import("//gpu/vulkan/features.gni")
|
|
import("//ui/base/ui_features.gni")
|
|
|
|
-visibility = [ "//ui/ozone/*" ]
|
|
+visibility = [ "//ui/ozone/*", "//electron:*" ]
|
|
|
|
assert(is_linux || is_chromeos)
|
|
|