Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / content / public / browser / BUILD.gn
index 378eed5..39bddc4 100644 (file)
@@ -5,17 +5,17 @@
 import("//content/browser/browser.gni")
 import("//build/config/ui.gni")
 
+# See //content/BUILD.gn for how this works.
 group("browser") {
   if (is_component_build) {
-    deps = [ "//content" ]
+    public_deps = [ "//content" ]
   } else {
-    deps = [ ":sources" ]
+    public_deps = [ ":browser_sources" ]
   }
-  forward_dependent_configs_from = deps
 }
 
-source_set("sources") {
-  visibility = [ "//content", ":browser" ]
+source_set("browser_sources") {
+  visibility = [ "//content/*" ]
 
   if (is_ios) {
     # iOS doesn't get the normal file list and only takes these whitelisted
@@ -40,11 +40,22 @@ source_set("sources") {
 
   configs += [ "//content:content_implementation" ]
 
+  public_deps = [
+    # We expose skia headers in the public API.
+    "//skia",
+  ]
   deps = [
     "//content/browser",
-    "//skia",
+    "//content/public/common:common_sources",
+    "//net",
+    "//ui/accessibility",
+    "//ui/base",
+    "//ui/events",
   ]
 
-  # We expose skia headers in the public API.
-  forward_dependent_configs_from = [ "//skia" ]
+  allow_circular_includes_from = [
+    # This target is a pair with content/browser. They always go together and
+    # include headers from each other.
+    "//content/browser",
+  ]
 }