This change contains several new targets required to successfully build the public cast_shell for x86. This code also contributes to other public build variants, but these have not been tested.

Keeping these changes current to TOT will keep the BUILD.gn files current as the code base changes. There are several known issues noted in the TODOs, some of which are listed below.

* //chromecast:chromecast_locales_pak needs to be built.

* //chromecast/app:cast_shell_unittests is not building.

* logic pieces for internal builds are not tested.

BUG=516899 (internal b/17615224)

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

Cr-Commit-Position: refs/heads/master@{#341928}
diff --git a/chromecast/renderer/BUILD.gn b/chromecast/renderer/BUILD.gn
new file mode 100644
index 0000000..cd7f240
--- /dev/null
+++ b/chromecast/renderer/BUILD.gn
@@ -0,0 +1,44 @@
+# Copyright 2015 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("//chromecast/chromecast.gni")
+
+source_set("renderer") {
+  sources = [
+    "cast_content_renderer_client.cc",
+    "cast_content_renderer_client.h",
+    "cast_media_load_deferrer.cc",
+    "cast_media_load_deferrer.h",
+    "cast_render_process_observer.cc",
+    "cast_render_process_observer.h",
+    "key_systems_cast.cc",
+    "key_systems_cast.h",
+  ]
+
+  if (chromecast_branding == "public") {
+    sources += [ "cast_content_renderer_client_simple.cc" ]
+  }
+
+  if (!is_android) {
+    public_deps = [
+      "//chromecast/renderer/media",
+    ]
+  }
+
+  deps = [
+    "//base",
+    "//chromecast/base",
+    "//chromecast/crash",
+    "//chromecast/common/media",
+    "//chromecast/media",
+    "//components/cdm/renderer",
+    "//components/network_hints/renderer",
+    "//content/public/common",
+    "//content/public/renderer",
+    "//crypto",
+    "//ipc",
+    "//media",
+    "//third_party/widevine/cdm:version_h",
+  ]
+}