Make content_shell link in the GN build.

It doesn't run yet. This disables WebRTC since that's not done yet.

Libvpx isn't done either. This patch exports the disable flag for this from media to dependent targets like the GYP build does. It adds one extra check for this flag in Pepper. I assume everybody that compiles without libvpx also disables plugins so this has never come up before.

Disable some warnings in Mesa.

The resulting binary does not yet run.

[email protected]

Review URL: https://codereview.chromium.org/419913003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285962 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/BUILD.gn b/content/BUILD.gn
index 973a334..a49a887 100644
--- a/content/BUILD.gn
+++ b/content/BUILD.gn
@@ -9,16 +9,14 @@
   defines = [ "CONTENT_IMPLEMENTATION" ]
 }
 
-content_components = [
-  "//content/app",
-  "//content/browser",
-  "//content/child",
+content_shared_components = [
   "//content/gpu",
   "//content/plugin",
   "//content/ppapi_plugin",
   "//content/public/app",
   "//content/public/browser",
   "//content/public/child",
+  "//content/public/common",
   "//content/public/plugin",
   "//content/public/renderer",
   "//content/renderer",
@@ -27,11 +25,13 @@
 
 if (is_component_build) {
   shared_library("content") {
-    deps = content_components
+    deps = content_shared_components + [
+      "//content/app",
+    ]
   }
 } else {
   group("content") {
-    deps = content_components
+    deps = content_shared_components
   }
 }