Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / chromecast / browser / BUILD.gn
blob4022d195efd8c5c0f7b0af79f89b5c0ce1bcc866
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_simple.cc",
49     "service/cast_service_simple.h",
50     "url_request_context_factory.cc",
51     "url_request_context_factory.h",
52   ]
54   if (chromecast_branding == "public") {
55     sources += [
56       "cast_content_browser_client_simple.cc",
57       "cast_network_delegate_simple.cc",
58       "devtools/remote_debugging_server_simple.cc",
59       "pref_service_helper_simple.cc",
60     ]
61   }
63   deps = [
64     "//base",
65     "//base:prefs",
66     "//base:i18n",
67     "//cc",
68     "//chromecast/app:chromecast_settings",
69     "//chromecast/app:resources",
70     "//chromecast/base",
71     "//chromecast/base:cast_sys_info",
72     "//chromecast/base:cast_version",
73     "//chromecast/common",
74     "//chromecast/graphics",
75     "//chromecast/media",
76     "//chromecast/net",
77     "//chromecast/service",
78     "//components/crash/app",
79     "//components/crash/browser",
80     "//components/devtools_http_handler:devtools_http_handler",
81     "//components/metrics",
82     "//components/metrics:gpu",
83     "//components/metrics:net",
84     "//components/metrics:profiler",
85     "//components/network_hints/browser",
86     "//content",
87     "//content/public/browser",
88     "//content/public/common",
89     "//content/public/utility",
90     "//media",
91     "//ipc",
92     "//net",
93     "//ui/aura",
94     "//ui/base",
95     "//ui/compositor",
96     "//ui/gl",
97   ]
99   if (!is_android) {
100     sources += [
101       "metrics/external_metrics.cc",
102       "metrics/external_metrics.h",
103     ]
105     public_deps = [
106       "//chromecast/browser/media",
107     ]
109     deps += [ "//components/metrics:serialization" ]
110   }
113 source_set("test_support") {
114   testonly = true
116   sources = [
117     "test/chromecast_browser_test.cc",
118     "test/chromecast_browser_test.h",
119     "test/chromecast_browser_test_runner.cc",
120   ]
122   public_deps = [
123     ":browser",
124     "//chromecast:cast_shell_common",
125   ]
127   deps = [
128     "//base",
129     "//chromecast/app",
130     "//chromecast/base",
131     "//content/public/browser",
132     "//content/public/common",
133     "//content/test:test_support",
134     "//testing/gtest",
135   ]
138 config("browser_test_config") {
139   defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
142 test("cast_shell_browser_test") {
143   sources = [
144     "test/chromecast_shell_browser_test.cc",
145   ]
147   configs += [ ":browser_test_config" ]
149   deps = [
150     ":test_support",
151     "//base",
152     "//testing/gtest",
153     "//url",
154   ]