Disable module deps in Android Framework builds

Module-related functionality is not required in dm/bench at this point.

Let's disable module deps flattening for now.  As an immediate benefit
we can reduce the deps visibility for some internal skjson targets.

Bug: skia:8061
Change-Id: I0e09208964ca94b519121207ba1b6225059ef573
Reviewed-on: https://skia-review.googlesource.com/133822
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Florin Malita <fmalita@chromium.org>
diff --git a/gn/gn_to_bp_utils.py b/gn/gn_to_bp_utils.py
index 78217a7..91fec4c 100644
--- a/gn/gn_to_bp_utils.py
+++ b/gn/gn_to_bp_utils.py
@@ -33,6 +33,8 @@
   # Grab the values from other targets that $name depends on (e.g. optional
   # Skia components, gms, tests, etc).
   for dep in js['targets'][name]['deps']:
+    if 'modules' in dep:
+      continue   # Modules require special handling -- skip for now.
     if 'third_party' in dep:
       continue   # We've handled all third-party DEPS as static or shared_libs.
     if 'none' in dep:
diff --git a/modules/skjson/BUILD.gn b/modules/skjson/BUILD.gn
index 9538c32..531f0e0 100644
--- a/modules/skjson/BUILD.gn
+++ b/modules/skjson/BUILD.gn
@@ -43,13 +43,10 @@
     ]
 
     deps = [
+      ":skjson",
       "../..:gpu_tool_utils",
       "../..:skia",
     ]
-
-    public_deps = [
-      ":skjson",
-    ]
   }
 }
 
@@ -66,13 +63,10 @@
     ]
 
     deps = [
+      ":skjson",
       "../..:skia",
       "../../third_party/rapidjson",
     ]
-
-    public_deps = [
-      ":skjson",
-    ]
   }
 }
 
@@ -86,11 +80,8 @@
     ]
 
     deps = [
-      "../..:skia",
-    ]
-
-    public_deps = [
       ":skjson",
+      "../..:skia",
     ]
   }
 }