Courgette: Skip the relocs that live outside of the image.
[chromium-blink-merge.git] / chromecast / browser / BUILD.gn
blobc6236a4d32bfb8395987e7685b2da7fe363cd40a
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     "metrics/platform_metrics_providers.h",
47     "pref_service_helper.cc",
48     "pref_service_helper.h",
49     "service/cast_service.cc",
50     "service/cast_service.h",
51     "service/cast_service_android.cc",
52     "service/cast_service_android.h",
53     "url_request_context_factory.cc",
54     "url_request_context_factory.h",
55   ]
57   if (chromecast_branding == "public") {
58     sources += [
59       "cast_content_browser_client_simple.cc",
60       "cast_network_delegate_simple.cc",
61       "devtools/remote_debugging_server_simple.cc",
62       "pref_service_helper_simple.cc",
63     ]
65     if (!is_android) {
66       sources += [
67         "metrics/platform_metrics_providers_simple.cc",
68         "service/cast_service_simple.cc",
69         "service/cast_service_simple.h",
70       ]
71     }
72   }
74   deps = [
75     "//base",
76     "//base:prefs",
77     "//base:i18n",
78     "//cc",
79     "//chromecast/app:chromecast_settings",
80     "//chromecast/app:resources",
81     "//chromecast/base",
82     "//chromecast/base:cast_sys_info",
83     "//chromecast/common",
84     "//chromecast/graphics",
85     "//chromecast/media",
86     "//chromecast/net",
87     "//chromecast/public",
88     "//components/crash/app",
89     "//components/crash/browser",
90     "//components/devtools_http_handler:devtools_http_handler",
91     "//components/metrics",
92     "//components/metrics:gpu",
93     "//components/metrics:net",
94     "//components/metrics:profiler",
95     "//components/network_hints/browser",
96     "//content",
97     "//content/public/browser",
98     "//content/public/common",
99     "//content/public/utility",
100     "//media",
101     "//ipc",
102     "//net",
103     "//ui/base",
104     "//ui/compositor",
105     "//ui/gl",
106   ]
108   if (!is_android) {
109     sources += [
110       "metrics/external_metrics.cc",
111       "metrics/external_metrics.h",
112     ]
114     public_deps = [
115       "//chromecast/browser/media",
116     ]
118     deps += [ "//components/metrics:serialization" ]
119   }
122 source_set("test_support") {
123   testonly = true
125   sources = [
126     "test/chromecast_browser_test.cc",
127     "test/chromecast_browser_test.h",
128     "test/chromecast_browser_test_runner.cc",
129   ]
131   public_deps = [
132     ":browser",
133     "//chromecast:cast_shell_common",
134   ]
136   deps = [
137     "//base",
138     "//chromecast/app",
139     "//chromecast/base",
140     "//content/public/browser",
141     "//content/public/common",
142     "//content/test:test_support",
143     "//testing/gtest",
144   ]
147 config("browser_test_config") {
148   defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
151 test("cast_shell_browser_test") {
152   sources = [
153     "test/chromecast_shell_browser_test.cc",
154   ]
156   configs += [ ":browser_test_config" ]
158   deps = [
159     ":test_support",
160     "//base",
161     "//testing/gtest",
162     "//url",
163   ]