Fix response bytes getters in URLFetcher.
[chromium-blink-merge.git] / chromecast / BUILD.gn
blobfeb33a5caf8218268b51b027753b00b9618dcf64
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")
12 config("config") {
13   defines = []
15   if (use_playready) {
16     defines += [ "PLAYREADY_CDM_AVAILABLE" ]
17   }
20 component("chromecast") {
21   deps = [
22     "//chromecast/base",
23     "//chromecast/base/metrics",
24     "//chromecast/crash",
25     "//chromecast/media",
26   ]
29 group("chromecast_unittests") {
30   testonly = true
32   deps = [
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",
38   ]
41 source_set("cast_shell_common") {
42   deps = [
43     # TODO(slan): add ":cast_locales_pak" (b/22959691)
44     ":cast_shell_pak",
45     "//chromecast/app",
46     "//chromecast/browser",
47     "//chromecast/common",
48     "//chromecast/common/media",
49     "//chromecast/renderer",
50   ]
53 source_set("cast_shell_media") {
54   deps = [
55     "//chromecast/browser/media",
56     "//chromecast/common/media",
57     "//chromecast/renderer/media",
58   ]
61 executable("cast_shell") {
62   sources = [
63     "app/cast_main.cc",
64   ]
66   deps = [
67     ":cast_shell_common",
68     ":cast_shell_media",
69     "//chromecast/app",
70     "//content/public/app:both",
71   ]
73   if (ozone_platform_egltest) {
74     deps += [ "//ui/ozone/platform/egltest:eglplatform_shim_x11" ]
75   }
78 repack("cast_shell_pak") {
79   sources = [
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",
91   ]
93   if (chromecast_branding != "public" && use_chromecast_webui) {
94     sources += [
95       # TODO(slan): Update these paths to be accurate for internal builds.
96     ]
97   }
99   output = "$root_out_dir/assets/cast_shell.pak"
101   deps = [
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",
109     "//ui/resources",
110     "//ui/strings",
111   ]
113   if (chromecast_branding != "public" && use_chromecast_webui) {
114     deps += [
115       # TODO(slan): Update these paths to be accurate for internal builds.
116     ]
117   }