Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / content / public / common / BUILD.gn
index 0906507..a1244a2 100644 (file)
@@ -2,9 +2,21 @@
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
 
+import("//build/config/features.gni")
 import("//content/common/common.gni")
 
-source_set("common") {
+# See //content/BUILD.gn for how this works.
+group("common") {
+  if (is_component_build) {
+    public_deps = [ "//content" ]
+  } else {
+    public_deps = [ ":common_sources" ]
+  }
+}
+
+source_set("common_sources") {
+  visibility = [ "//content/*" ]
+
   sources = rebase_path(content_common_gypi_values.public_common_sources,
                         ".", "//content")
 
@@ -12,10 +24,22 @@ source_set("common") {
     "//content:content_implementation",
   ]
 
-  deps = [
+  public_deps = [
     "//content/common",
+  ]
+  deps = [
+    "//net",
     "//skia",
     "//third_party/WebKit/public:blink_headers",
     "//third_party/icu",
+    "//ui/base",
+    "//ui/gfx",
   ]
+
+  if (!enable_plugins) {
+    sources -= [
+      "pepper_plugin_info.cc",
+      "pepper_plugin_info.h",
+    ]
+  }
 }