OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 import("//content/browser/browser.gni") | 7 import("//content/browser/browser.gni") |
8 import("//media/media_options.gni") | 8 import("//media/media_options.gni") |
9 import("//mojo/public/mojo_application_manifest.gni") | 9 import("//mojo/public/mojo_application_manifest.gni") |
10 | 10 |
11 source_set("browser") { | 11 source_set("browser") { |
12 # Only the public target should depend on this. All other targets (even | 12 # Only the public target should depend on this. All other targets (even |
13 # internal content ones) should depend on the public one. | 13 # internal content ones) should depend on the public one. |
14 visibility = [ "//content/public/browser:browser_sources" ] | 14 visibility = [ "//content/public/browser:browser_sources" ] |
15 | 15 |
16 configs += [ | 16 configs += [ |
17 "//build/config:precompiled_headers", | 17 "//build/config:precompiled_headers", |
| 18 "//content:content_implementation", |
18 "//content/public/common:mojo_shell_client", | 19 "//content/public/common:mojo_shell_client", |
| 20 "//third_party/WebKit/public:debug_devtools", |
| 21 "//v8:external_startup_data", |
19 ] | 22 ] |
20 defines = [] | 23 defines = [] |
21 libs = [] | 24 libs = [] |
22 ldflags = [] | 25 ldflags = [] |
23 | 26 |
24 # Shared deps. See also non-iOS deps below. | |
25 deps = [ | 27 deps = [ |
26 "//base", | 28 "//base", |
27 "//base:base_static", | 29 "//base:base_static", |
| 30 "//cc", |
| 31 "//cc/surfaces", |
| 32 "//components/filesystem:lib", |
| 33 "//components/leveldb:lib", |
28 "//components/mime_util", | 34 "//components/mime_util", |
| 35 "//components/profile_service:lib", |
| 36 "//components/scheduler:common", |
29 "//components/url_formatter", | 37 "//components/url_formatter", |
30 "//content:resources", | 38 "//content:resources", |
| 39 "//content/app/resources", |
| 40 "//content/app/strings", |
31 "//content/browser/background_sync:background_sync_proto", | 41 "//content/browser/background_sync:background_sync_proto", |
32 "//content/browser/cache_storage:cache_storage_proto", | 42 "//content/browser/cache_storage:cache_storage_proto", |
| 43 "//content/browser/devtools:gen_devtools_protocol_handler", |
| 44 "//content/browser/devtools:resources", |
33 "//content/browser/notifications:notification_proto", | 45 "//content/browser/notifications:notification_proto", |
34 "//content/browser/service_worker:service_worker_proto", | 46 "//content/browser/service_worker:service_worker_proto", |
35 "//content/browser/speech/proto", | 47 "//content/browser/speech/proto", |
| 48 "//content/common:mojo_bindings", |
36 "//content/gpu:gpu_sources", | 49 "//content/gpu:gpu_sources", |
37 "//content/public/common:common_sources", | 50 "//content/public/common:common_sources", |
38 "//content/public/common:mojo_bindings", | 51 "//content/public/common:mojo_bindings", |
39 "//crypto", | 52 "//crypto", |
40 "//device/battery", | 53 "//device/battery", |
| 54 "//device/bluetooth", |
41 "//device/vibration", | 55 "//device/vibration", |
| 56 "//gin", |
42 "//google_apis", | 57 "//google_apis", |
43 "//mojo/common", | 58 "//mojo/common", |
| 59 "//mojo/common:url_type_converters", |
| 60 "//mojo/converters/geometry", |
44 "//mojo/public/cpp/bindings", | 61 "//mojo/public/cpp/bindings", |
| 62 "//mojo/public/js", |
45 "//mojo/shell", | 63 "//mojo/shell", |
46 "//mojo/shell/public/cpp:cpp_for_chromium", | 64 "//mojo/shell/public/cpp:cpp_for_chromium", |
47 "//mojo/shell/public/interfaces", | 65 "//mojo/shell/public/interfaces", |
48 "//mojo/shell/runner/common", | 66 "//mojo/shell/runner/common", |
49 "//mojo/shell/runner/host:lib", | 67 "//mojo/shell/runner/host:lib", |
50 "//net", | 68 "//net", |
51 "//net:extras", | 69 "//net:extras", |
52 "//skia", | 70 "//skia", |
| 71 "//skia/public", |
53 "//sql", | 72 "//sql", |
| 73 "//storage/browser", |
| 74 "//storage/common", |
| 75 |
| 76 # TODO(brettw) bug 582206: Blink should not be used in the browser |
| 77 # process. This is required by devtools' input_handler.cc which calls |
| 78 # WebKeyboardEvent::setKeyIdentifierFromWindowsKeyCode |
| 79 "//third_party/WebKit/public:blink", |
54 "//third_party/WebKit/public:blink_headers", | 80 "//third_party/WebKit/public:blink_headers", |
| 81 "//third_party/WebKit/public:image_resources", |
| 82 "//third_party/WebKit/public:resources", |
| 83 "//third_party/angle:commit_id", |
| 84 "//third_party/icu", |
55 "//third_party/kasko:kasko_features", | 85 "//third_party/kasko:kasko_features", |
| 86 "//third_party/leveldatabase", |
| 87 "//third_party/libyuv", |
56 "//third_party/npapi", | 88 "//third_party/npapi", |
57 "//third_party/re2", | 89 "//third_party/re2", |
58 "//third_party/zlib", | 90 "//third_party/zlib", |
59 "//third_party/zlib:zip", | 91 "//third_party/zlib:zip", |
60 "//ui/accessibility", | 92 "//ui/accessibility", |
61 "//ui/accessibility:ax_gen", | 93 "//ui/accessibility:ax_gen", |
62 "//ui/base", | 94 "//ui/base", |
63 "//ui/base/ime", | 95 "//ui/base/ime", |
64 "//ui/events", | 96 "//ui/events", |
65 "//ui/events:gesture_detection", | 97 "//ui/events:gesture_detection", |
| 98 "//ui/events/blink", |
66 "//ui/gfx", | 99 "//ui/gfx", |
67 "//ui/gfx/geometry", | 100 "//ui/gfx/geometry", |
68 "//ui/gl", | 101 "//ui/gl", |
69 "//ui/native_theme", | 102 "//ui/native_theme", |
70 "//ui/resources", | 103 "//ui/resources", |
71 "//ui/snapshot", | 104 "//ui/snapshot", |
| 105 "//ui/surface", |
| 106 "//ui/touch_selection", |
72 ] | 107 ] |
73 | 108 |
74 data_deps = [ | 109 data_deps = [ |
75 ":chrome_manifest", | 110 ":chrome_manifest", |
76 ":chrome_renderer_manifest", | 111 ":chrome_renderer_manifest", |
77 ] | 112 ] |
78 | 113 |
79 if (is_ios) { | 114 sources = rebase_path(content_browser_gypi_values.private_browser_sources, |
80 # iOS doesn't get the normal file list and only takes these whitelisted | 115 ".", |
81 # files. | 116 "//content") |
82 sources = [ | |
83 "browser_context.cc", | |
84 "browser_main_loop.cc", | |
85 "browser_main_runner.cc", | |
86 "browser_process_sub_thread.cc", | |
87 "browser_thread_impl.cc", | |
88 "browser_url_handler_impl.cc", | |
89 "cert_store_impl.cc", | |
90 "download/download_create_info.cc", | |
91 "notification_service_impl.cc", | |
92 "signed_certificate_timestamp_store_impl.cc", | |
93 "user_metrics.cc", | |
94 "web_contents/navigation_entry_impl.cc", | |
95 ] | |
96 } else { | |
97 # Normal non-iOS sources get everything. | |
98 sources = rebase_path(content_browser_gypi_values.private_browser_sources, | |
99 ".", | |
100 "//content") | |
101 | 117 |
102 # TODO(GYP) these generated files are listed as sources in content_browser. | 118 # TODO(GYP) these generated files are listed as sources in content_browser. |
103 # This is a bit suspicious. The GN grit template will make a source set | 119 # This is a bit suspicious. The GN grit template will make a source set |
104 # containing the generated code so it should be sufficient to just depend | 120 # containing the generated code so it should be sufficient to just depend |
105 # on the grit rule. But maybe some of these will need to be added? | 121 # on the grit rule. But maybe some of these will need to be added? |
106 # | 122 # |
107 # Need this annoying rebase_path call to match what happened with the | 123 # Need this annoying rebase_path call to match what happened with the |
108 # sources. | 124 # sources. |
109 sources -= rebase_path( | 125 sources -= rebase_path( |
110 [ | 126 [ |
111 "$root_gen_dir/blink/grit/devtools_resources.h", | 127 "$root_gen_dir/blink/grit/devtools_resources.h", |
112 "$root_gen_dir/blink/grit/devtools_resources_map.cc", | 128 "$root_gen_dir/blink/grit/devtools_resources_map.cc", |
113 "$root_gen_dir/blink/grit/devtools_resources_map.h", | 129 "$root_gen_dir/blink/grit/devtools_resources_map.h", |
114 "$root_gen_dir/content/browser/tracing/grit/tracing_resources.h", | 130 "$root_gen_dir/content/browser/tracing/grit/tracing_resources.h", |
115 "$root_gen_dir/ui/resources/grit/webui_resources_map.cc", | 131 "$root_gen_dir/ui/resources/grit/webui_resources_map.cc", |
116 ], | 132 ], |
117 ".") | 133 ".") |
118 | |
119 # Non-iOS deps. | |
120 deps += [ | |
121 "//cc", | |
122 "//cc/surfaces", | |
123 "//components/filesystem:lib", | |
124 "//components/leveldb:lib", | |
125 "//components/profile_service:lib", | |
126 "//components/scheduler:common", | |
127 "//content/app/resources", | |
128 "//content/app/strings", | |
129 "//content/browser/devtools:gen_devtools_protocol_handler", | |
130 "//content/browser/devtools:resources", | |
131 "//content/common:mojo_bindings", | |
132 "//content/public/common:mojo_bindings", | |
133 "//device/bluetooth", | |
134 "//gin", | |
135 "//mojo/common:url_type_converters", | |
136 "//mojo/converters/geometry", | |
137 "//mojo/public/cpp/bindings", | |
138 "//mojo/public/js", | |
139 "//mojo/shell/public/interfaces", | |
140 "//skia/public", | |
141 "//storage/browser", | |
142 "//storage/common", | |
143 | |
144 # TODO(brettw) bug 582206: Blink should not be used in the browser | |
145 # process. This is required by devtools' input_handler.cc which calls | |
146 # WebKeyboardEvent::setKeyIdentifierFromWindowsKeyCode | |
147 "//third_party/WebKit/public:blink", | |
148 "//third_party/WebKit/public:image_resources", | |
149 "//third_party/WebKit/public:resources", | |
150 "//third_party/angle:commit_id", | |
151 "//third_party/icu", | |
152 "//third_party/leveldatabase", | |
153 "//third_party/libyuv", | |
154 "//ui/events/blink", | |
155 "//ui/resources", | |
156 "//ui/surface", | |
157 "//ui/touch_selection", | |
158 ] | |
159 | |
160 configs += [ "//v8:external_startup_data" ] | |
161 } | |
162 | |
163 configs += [ | |
164 "//content:content_implementation", | |
165 "//third_party/WebKit/public:debug_devtools", | |
166 ] | |
167 | 134 |
168 if (toolkit_views) { | 135 if (toolkit_views) { |
169 deps += [ "//ui/events" ] | 136 deps += [ "//ui/events" ] |
170 } | 137 } |
171 | 138 |
172 if (!is_win) { | 139 if (!is_win) { |
173 sources += [ | 140 sources += [ |
174 "file_descriptor_info_impl.cc", | 141 "file_descriptor_info_impl.cc", |
175 "file_descriptor_info_impl.h", | 142 "file_descriptor_info_impl.h", |
176 ] | 143 ] |
177 sources -= [ "renderer_host/web_input_event_aurawin.cc" ] | 144 sources -= [ "renderer_host/web_input_event_aurawin.cc" ] |
178 } | 145 } |
179 | 146 |
180 if (!is_win && !is_mac && !is_android && (!is_linux || !use_udev)) { | 147 if (!is_win && !is_mac && !is_android && (!is_linux || !use_udev)) { |
181 sources += [ "gamepad/gamepad_platform_data_fetcher.cc" ] | 148 sources += [ "gamepad/gamepad_platform_data_fetcher.cc" ] |
182 } | 149 } |
183 | 150 |
184 if (enable_basic_printing || enable_print_preview) { | 151 if (enable_basic_printing || enable_print_preview) { |
185 deps += [ "//printing" ] | 152 deps += [ "//printing" ] |
186 } | 153 } |
187 | 154 |
188 # TODO(GYP) | 155 # TODO(GYP) |
189 # [chrome_multiple_dll!=1', { | 156 # [chrome_multiple_dll!=1', { |
190 # 'dependencies': [ | 157 # 'dependencies': [ |
191 # '../third_party/WebKit/public/blink.gyp:blink', | 158 # '../third_party/WebKit/public/blink.gyp:blink', |
192 # ], | 159 # ], |
193 # }], | 160 # }], |
194 if (!is_mac && !is_ios) { | 161 if (!is_mac) { |
195 deps += [ "//sandbox" ] | 162 deps += [ "//sandbox" ] |
196 } | 163 } |
197 if (!is_android && !is_ios) { | 164 if (!is_android) { |
198 deps += [ "//content/browser/tracing:resources" ] | 165 deps += [ "//content/browser/tracing:resources" ] |
199 } | 166 } |
200 if ((use_udev && is_posix) || is_mac || is_win) { | 167 if ((use_udev && is_posix) || is_mac || is_win) { |
201 deps += [ "//tools/battor_agent:battor_agent_lib" ] | 168 deps += [ "//tools/battor_agent:battor_agent_lib" ] |
202 sources += [ | 169 sources += [ |
203 "tracing/power_tracing_agent.cc", | 170 "tracing/power_tracing_agent.cc", |
204 "tracing/power_tracing_agent.h", | 171 "tracing/power_tracing_agent.h", |
205 ] | 172 ] |
206 } | 173 } |
207 | 174 |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
550 type = "exe" | 517 type = "exe" |
551 application_name = "chrome" | 518 application_name = "chrome" |
552 source = "mojo/chrome_manifest.json" | 519 source = "mojo/chrome_manifest.json" |
553 } | 520 } |
554 | 521 |
555 mojo_application_manifest("chrome_renderer_manifest") { | 522 mojo_application_manifest("chrome_renderer_manifest") { |
556 type = "exe" | 523 type = "exe" |
557 application_name = "chrome_renderer" | 524 application_name = "chrome_renderer" |
558 source = "mojo/chrome_renderer_manifest.json" | 525 source = "mojo/chrome_renderer_manifest.json" |
559 } | 526 } |
OLD | NEW |