Update CrOS OOBE throbber to MD throbber; delete old asset
[chromium-blink-merge.git] / chromecast / browser / BUILD.gn
blobcc4b29af80e8991db97d4a5b0c4dc571126b43d4
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("//testing/test.gni")
8 source_set("browser") {
9   sources = [
10     "cast_browser_context.cc",
11     "cast_browser_context.h",
12     "cast_browser_main_parts.cc",
13     "cast_browser_main_parts.h",
14     "cast_browser_process.cc",
15     "cast_browser_process.h",
16     "cast_content_browser_client.cc",
17     "cast_content_browser_client.h",
18     "cast_content_window.cc",
19     "cast_content_window.h",
20     "cast_download_manager_delegate.cc",
21     "cast_download_manager_delegate.h",
22     "cast_http_user_agent_settings.cc",
23     "cast_http_user_agent_settings.h",
24     "cast_net_log.cc",
25     "cast_net_log.h",
26     "cast_network_delegate.cc",
27     "cast_network_delegate.h",
28     "cast_permission_manager.cc",
29     "cast_permission_manager.h",
30     "cast_quota_permission_context.cc",
31     "cast_quota_permission_context.h",
32     "cast_resource_dispatcher_host_delegate.cc",
33     "cast_resource_dispatcher_host_delegate.h",
34     "devtools/cast_dev_tools_delegate.cc",
35     "devtools/cast_dev_tools_delegate.h",
36     "devtools/remote_debugging_server.cc",
37     "devtools/remote_debugging_server.h",
38     "geolocation/cast_access_token_store.cc",
39     "geolocation/cast_access_token_store.h",
40     "metrics/cast_metrics_prefs.cc",
41     "metrics/cast_metrics_prefs.h",
42     "metrics/cast_metrics_service_client.cc",
43     "metrics/cast_metrics_service_client.h",
44     "metrics/cast_stability_metrics_provider.cc",
45     "metrics/cast_stability_metrics_provider.h",
46     "pref_service_helper.cc",
47     "pref_service_helper.h",
48     "service/cast_service.cc",
49     "service/cast_service.h",
50     "service/cast_service_android.cc",
51     "service/cast_service_android.h",
52     "url_request_context_factory.cc",
53     "url_request_context_factory.h",
54   ]
56   if (chromecast_branding == "public") {
57     sources += [
58       "cast_content_browser_client_simple.cc",
59       "cast_network_delegate_simple.cc",
60       "devtools/remote_debugging_server_simple.cc",
61       "pref_service_helper_simple.cc",
62     ]
64     if (!is_android) {
65       sources += [
66         "service/cast_service_simple.cc",
67         "service/cast_service_simple.h",
68       ]
69     }
70   }
72   deps = [
73     "//base",
74     "//base:prefs",
75     "//base:i18n",
76     "//cc",
77     "//chromecast/app:chromecast_settings",
78     "//chromecast/app:resources",
79     "//chromecast/base",
80     "//chromecast/base:cast_sys_info",
81     "//chromecast/common",
82     "//chromecast/graphics",
83     "//chromecast/media",
84     "//chromecast/net",
85     "//chromecast/public",
86     "//components/crash/app",
87     "//components/crash/browser",
88     "//components/devtools_http_handler:devtools_http_handler",
89     "//components/metrics",
90     "//components/metrics:gpu",
91     "//components/metrics:net",
92     "//components/metrics:profiler",
93     "//components/network_hints/browser",
94     "//content",
95     "//content/public/browser",
96     "//content/public/common",
97     "//content/public/utility",
98     "//media",
99     "//ipc",
100     "//net",
101     "//ui/base",
102     "//ui/compositor",
103     "//ui/gl",
104   ]
106   if (!is_android) {
107     sources += [
108       "metrics/external_metrics.cc",
109       "metrics/external_metrics.h",
110     ]
112     public_deps = [
113       "//chromecast/browser/media",
114     ]
116     deps += [ "//components/metrics:serialization" ]
117   }
120 source_set("test_support") {
121   testonly = true
123   sources = [
124     "test/chromecast_browser_test.cc",
125     "test/chromecast_browser_test.h",
126     "test/chromecast_browser_test_runner.cc",
127   ]
129   public_deps = [
130     ":browser",
131     "//chromecast:cast_shell_common",
132   ]
134   deps = [
135     "//base",
136     "//chromecast/app",
137     "//chromecast/base",
138     "//content/public/browser",
139     "//content/public/common",
140     "//content/test:test_support",
141     "//testing/gtest",
142   ]
145 config("browser_test_config") {
146   defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
149 test("cast_shell_browser_test") {
150   sources = [
151     "test/chromecast_shell_browser_test.cc",
152   ]
154   configs += [ ":browser_test_config" ]
156   deps = [
157     ":test_support",
158     "//base",
159     "//testing/gtest",
160     "//url",
161   ]