1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import("//chromecast/chromecast.gni")
6 import("//build/config/features.gni")
7 import("//build/config/ui.gni")
8 import("//testing/test.gni")
9 import("//tools/grit/repack.gni")
10 import("//ui/ozone/ozone.gni")
16 defines += [ "PLAYREADY_CDM_AVAILABLE" ]
20 component("chromecast") {
23 "//chromecast/base/metrics",
29 group("chromecast_unittests") {
33 # TODO(slan): Get this target building and comment it in.
34 # "//chromecast/app:cast_shell_unittests",
35 "//chromecast/base:cast_base_unittests",
36 "//chromecast/crash:cast_crash_unittests",
37 "//chromecast/media:cast_media_unittests",
41 source_set("cast_shell_common") {
43 # TODO(slan): add ":cast_locales_pak" (b/22959691)
46 "//chromecast/browser",
47 "//chromecast/common",
48 "//chromecast/common/media",
49 "//chromecast/renderer",
53 source_set("cast_shell_media") {
55 "//chromecast/browser/media",
56 "//chromecast/common/media",
57 "//chromecast/renderer/media",
61 executable("cast_shell") {
70 "//content/public/app:both",
73 if (ozone_platform_egltest) {
74 deps += [ "//ui/ozone/platform/egltest:eglplatform_shim_x11" ]
78 repack("cast_shell_pak") {
80 "$root_gen_dir/blink/public/resources/blink_image_resources_100_percent.pak",
81 "$root_gen_dir/blink/public/resources/blink_resources.pak",
82 "$root_gen_dir/chromecast/app/shell_resources.pak",
83 "$root_gen_dir/content/app/resources/content_resources_100_percent.pak",
84 "$root_gen_dir/content/app/strings/content_strings_en-US.pak",
85 "$root_gen_dir/content/content_resources.pak",
86 "$root_gen_dir/net/net_resources.pak",
87 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak",
88 "$root_gen_dir/ui/resources/webui_resources.pak",
89 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak",
90 "$root_gen_dir/ui/strings/ui_strings_en-US.pak",
93 if (chromecast_branding != "public" && use_chromecast_webui) {
95 # TODO(slan): Update these paths to be accurate for internal builds.
99 output = "$root_out_dir/assets/cast_shell.pak"
102 "//chromecast/app:resources",
103 "//content:resources",
104 "//content/app/resources",
105 "//content/app/strings",
106 "//net:net_resources",
107 "//third_party/WebKit/public:resources",
108 "//third_party/WebKit/public:image_resources_grit",
113 if (chromecast_branding != "public" && use_chromecast_webui) {
115 # TODO(slan): Update these paths to be accurate for internal builds.