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 659002397184ad5017686585c0a5ad641e3312c5..85fdf6513403e7a713444213883fe3e0c101af42 100644
--- a/build/config/linux/gtk/BUILD.gn
+++ b/build/config/linux/gtk/BUILD.gn
@@ -33,6 +33,7 @@ pkg_config("gtk_internal_config") {
group("gtk") {
visibility = [
+ "//electron:*",
# This is the only target that can depend on GTK. Do not add more targets
# to this list.
"//ui/gtk:gtk_stubs",
@@ -64,6 +65,9 @@ pkg_config("gtkprint_internal_config") {
}
group("gtkprint") {
- visibility = [ "//ui/gtk:*" ]
+ visibility = [
+ "//ui/gtk:*",
+ ]
public_configs = [ ":gtkprint_internal_config" ]