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")
13 # TODO(slan): This most likely needs to be moved into a .gni file.
14 use_chromecast_webui = true
17 # TODO(slan): This target is being used far too broadly. We should reduce the
18 # uses of this config to targets that actually need it. (b/23814594)
23 defines += [ "PLAYREADY_CDM_AVAILABLE" ]
27 component("chromecast") {
30 "//chromecast/base/metrics",
36 group("chromecast_unittests") {
40 # TODO(slan): Get this target building and comment it in.
41 # "//chromecast/app:cast_shell_unittests",
42 "//chromecast/base:cast_base_unittests",
43 "//chromecast/crypto:cast_crypto_unittests",
44 "//chromecast/crash:cast_crash_unittests",
45 "//chromecast/media:cast_media_unittests",
49 source_set("cast_shell_common") {
51 # TODO(slan): add ":cast_locales_pak" (b/22959691)
54 "//chromecast/browser",
55 "//chromecast/common",
56 "//chromecast/common/media",
57 "//chromecast/renderer",
61 source_set("cast_shell_media") {
63 "//chromecast/browser/media",
64 "//chromecast/common/media",
65 "//chromecast/renderer/media",
69 executable("cast_shell") {
77 "//build/config/sanitizers:deps",
79 "//content/public/app:both",
82 if (chromecast_branding != "public") {
83 deps += [ "//chromecast/internal:cast_shell_internal" ]
86 if (ozone_platform_egltest) {
87 deps += [ "//ui/ozone/platform/egltest:eglplatform_shim_x11" ]
91 repack("cast_shell_pak") {
93 "$root_gen_dir/blink/public/resources/blink_image_resources_100_percent.pak",
94 "$root_gen_dir/blink/public/resources/blink_resources.pak",
95 "$root_gen_dir/chromecast/app/shell_resources.pak",
96 "$root_gen_dir/content/app/resources/content_resources_100_percent.pak",
97 "$root_gen_dir/content/app/strings/content_strings_en-US.pak",
98 "$root_gen_dir/content/content_resources.pak",
99 "$root_gen_dir/net/net_resources.pak",
100 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak",
101 "$root_gen_dir/ui/resources/webui_resources.pak",
102 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak",
103 "$root_gen_dir/ui/strings/ui_strings_en-US.pak",
106 output = "$root_out_dir/assets/cast_shell.pak"
109 "//chromecast/app:resources",
110 "//content:resources",
111 "//content/app/resources",
112 "//content/app/strings",
113 "//net:net_resources",
114 "//third_party/WebKit/public:resources",
115 "//third_party/WebKit/public:image_resources_grit",
120 if (chromecast_branding != "public") {
122 [ "$root_gen_dir/chromecast/internal/shell/app/sound_resources.pak" ]
124 deps += [ "//chromecast/internal/shell/app:chromecast_sound_resources" ]
126 if (use_chromecast_webui) {
128 "$root_gen_dir/chromecast/internal/webui/app_resources.pak",
129 "$root_gen_dir/chromecast/internal/webui/cast_webui_resources.pak",
133 "//chromecast/internal/webui:chromecast_app_resources",
134 "//chromecast/internal/webui:chromecast_webui_resources",