blob: a49204fa46fe48327a88f94a729a010e6cf37a50 [file] [log] [blame]
[email protected]6b9028ab2014-07-23 17:15:381# Copyright 2014 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.
4
5import("//build/config/features.gni")
brettw4cab0f12015-09-14 21:40:016import("//build/config/sanitizers/sanitizers.gni")
[email protected]6b9028ab2014-07-23 17:15:387import("//build/config/ui.gni")
brettw2e2220c2015-07-21 18:56:358import("//build/config/win/manifest.gni")
[email protected]6b9028ab2014-07-23 17:15:389import("//tools/grit/repack.gni")
cjhopmancd7694af2014-09-08 00:00:0410import("//tools/grit/grit_rule.gni")
[email protected]6b9028ab2014-07-23 17:15:3811if (is_android) {
12 import("//build/config/android/config.gni")
13}
14
15declare_args() {
16 content_shell_product_name = "Content Shell"
17
18 # The "19" is so that sites that sniff for version think that this is
19 # something reasonably current; the "77.34.5" is a hint that this isn't a
20 # standard Chrome.
21 content_shell_version = "19.77.34.5"
22}
23
24static_library("content_shell_lib") {
Brett Wilson8f80ad0b2014-09-08 19:50:2425 testonly = true
[email protected]6b9028ab2014-07-23 17:15:3826 sources = [
27 "android/shell_jni_registrar.cc",
28 "android/shell_jni_registrar.h",
29 "android/shell_manager.cc",
30 "android/shell_manager.h",
[email protected]6b9028ab2014-07-23 17:15:3831 "app/paths_mac.h",
32 "app/paths_mac.mm",
rseseka0a7a042014-09-18 23:59:2033 "app/shell_crash_reporter_client.cc",
34 "app/shell_crash_reporter_client.h",
[email protected]6b9028ab2014-07-23 17:15:3835 "app/shell_main_delegate.cc",
36 "app/shell_main_delegate.h",
37 "app/shell_main_delegate_mac.h",
38 "app/shell_main_delegate_mac.mm",
tfarinacde91252015-05-06 16:10:4939 "browser/blink_test_controller.cc",
40 "browser/blink_test_controller.h",
[email protected]9cd36bfb2014-08-20 00:32:0041 "browser/ipc_echo_message_filter.cc",
42 "browser/ipc_echo_message_filter.h",
mkwstd6805d0d2014-10-16 14:44:3743 "browser/layout_test/layout_test_android.cc",
44 "browser/layout_test/layout_test_android.h",
ortunofd24faa2015-05-20 16:34:3745 "browser/layout_test/layout_test_bluetooth_adapter_provider.cc",
46 "browser/layout_test/layout_test_bluetooth_adapter_provider.h",
jyasskin8057c002015-09-10 19:09:5347 "browser/layout_test/layout_test_bluetooth_chooser_factory.cc",
48 "browser/layout_test/layout_test_bluetooth_chooser_factory.h",
mkwstd993d06a2014-10-10 11:44:3849 "browser/layout_test/layout_test_browser_context.cc",
50 "browser/layout_test/layout_test_browser_context.h",
mkwst88e23182014-10-16 12:08:5851 "browser/layout_test/layout_test_browser_main.cc",
52 "browser/layout_test/layout_test_browser_main.h",
mkwst36b11b6f2014-10-15 16:18:5653 "browser/layout_test/layout_test_browser_main_parts.cc",
54 "browser/layout_test/layout_test_browser_main_parts.h",
petercd7abb42014-10-17 13:34:0155 "browser/layout_test/layout_test_content_browser_client.cc",
56 "browser/layout_test/layout_test_content_browser_client.h",
mkwst30d20d52014-10-09 13:33:1457 "browser/layout_test/layout_test_devtools_frontend.cc",
58 "browser/layout_test/layout_test_devtools_frontend.h",
mkwst94388f792014-10-16 07:36:5259 "browser/layout_test/layout_test_download_manager_delegate.cc",
60 "browser/layout_test/layout_test_download_manager_delegate.h",
mkwst6efe7f2e62014-10-08 15:09:0161 "browser/layout_test/layout_test_javascript_dialog_manager.cc",
62 "browser/layout_test/layout_test_javascript_dialog_manager.h",
Peter Beverlooe8f2f9d2014-10-20 16:47:4963 "browser/layout_test/layout_test_message_filter.cc",
64 "browser/layout_test/layout_test_message_filter.h",
mekc9182202015-03-03 17:56:0765 "browser/layout_test/layout_test_navigator_connect_service_factory.cc",
66 "browser/layout_test/layout_test_navigator_connect_service_factory.h",
petercd7abb42014-10-17 13:34:0167 "browser/layout_test/layout_test_notification_manager.cc",
68 "browser/layout_test/layout_test_notification_manager.h",
mlamouri4e372022015-03-29 14:51:0669 "browser/layout_test/layout_test_permission_manager.cc",
70 "browser/layout_test/layout_test_permission_manager.h",
mvanouwerkerkde895c9c2014-12-06 12:17:3271 "browser/layout_test/layout_test_push_messaging_service.cc",
72 "browser/layout_test/layout_test_push_messaging_service.h",
mkwst002d02902014-10-09 10:17:0073 "browser/layout_test/layout_test_resource_dispatcher_host_delegate.cc",
74 "browser/layout_test/layout_test_resource_dispatcher_host_delegate.h",
mkwst94388f792014-10-16 07:36:5275 "browser/layout_test/layout_test_url_request_context_getter.cc",
76 "browser/layout_test/layout_test_url_request_context_getter.h",
[email protected]6b9028ab2014-07-23 17:15:3877 "browser/notify_done_forwarder.cc",
78 "browser/notify_done_forwarder.h",
peter11d5f562014-10-23 23:12:2579 "browser/shell.cc",
80 "browser/shell.h",
81 "browser/shell_access_token_store.cc",
82 "browser/shell_access_token_store.h",
[email protected]6b9028ab2014-07-23 17:15:3883 "browser/shell_android.cc",
84 "browser/shell_application_mac.h",
85 "browser/shell_application_mac.mm",
86 "browser/shell_browser_context.cc",
87 "browser/shell_browser_context.h",
88 "browser/shell_browser_main.cc",
89 "browser/shell_browser_main.h",
90 "browser/shell_browser_main_parts.cc",
91 "browser/shell_browser_main_parts.h",
92 "browser/shell_browser_main_parts_mac.mm",
[email protected]6b9028ab2014-07-23 17:15:3893 "browser/shell_content_browser_client.cc",
94 "browser/shell_content_browser_client.h",
[email protected]6b9028ab2014-07-23 17:15:3895 "browser/shell_devtools_frontend.cc",
96 "browser/shell_devtools_frontend.h",
satorux7fa9d302015-02-16 00:44:5297 "browser/shell_devtools_manager_delegate.cc",
98 "browser/shell_devtools_manager_delegate.h",
[email protected]6b9028ab2014-07-23 17:15:3899 "browser/shell_download_manager_delegate.cc",
100 "browser/shell_download_manager_delegate.h",
[email protected]6b9028ab2014-07-23 17:15:38101 "browser/shell_javascript_dialog.h",
102 "browser/shell_javascript_dialog_mac.mm",
103 "browser/shell_javascript_dialog_manager.cc",
104 "browser/shell_javascript_dialog_manager.h",
105 "browser/shell_javascript_dialog_win.cc",
[email protected]6b9028ab2014-07-23 17:15:38106 "browser/shell_login_dialog.cc",
107 "browser/shell_login_dialog.h",
108 "browser/shell_login_dialog_mac.mm",
109 "browser/shell_mac.mm",
satorux7fa9d302015-02-16 00:44:52110 "browser/shell_mojo_test_utils_android.cc",
111 "browser/shell_mojo_test_utils_android.h",
[email protected]6b9028ab2014-07-23 17:15:38112 "browser/shell_net_log.cc",
113 "browser/shell_net_log.h",
114 "browser/shell_network_delegate.cc",
115 "browser/shell_network_delegate.h",
mlamouri4e372022015-03-29 14:51:06116 "browser/shell_permission_manager.cc",
117 "browser/shell_permission_manager.h",
[email protected]6b9028ab2014-07-23 17:15:38118 "browser/shell_platform_data_aura.cc",
119 "browser/shell_platform_data_aura.h",
120 "browser/shell_plugin_service_filter.cc",
121 "browser/shell_plugin_service_filter.h",
122 "browser/shell_quota_permission_context.cc",
123 "browser/shell_quota_permission_context.h",
124 "browser/shell_resource_dispatcher_host_delegate.cc",
125 "browser/shell_resource_dispatcher_host_delegate.h",
126 "browser/shell_speech_recognition_manager_delegate.cc",
127 "browser/shell_speech_recognition_manager_delegate.h",
128 "browser/shell_url_request_context_getter.cc",
129 "browser/shell_url_request_context_getter.h",
satorux7fa9d302015-02-16 00:44:52130 "browser/shell_web_contents_view_delegate.h",
[email protected]6b9028ab2014-07-23 17:15:38131 "browser/shell_web_contents_view_delegate_android.cc",
132 "browser/shell_web_contents_view_delegate_creator.h",
[email protected]6b9028ab2014-07-23 17:15:38133 "browser/shell_web_contents_view_delegate_mac.mm",
134 "browser/shell_web_contents_view_delegate_win.cc",
petere04203592014-10-27 17:57:35135 "common/layout_test/layout_test_messages.cc",
136 "common/layout_test/layout_test_messages.h",
[email protected]6b9028ab2014-07-23 17:15:38137 "common/leak_detection_result.h",
138 "common/shell_content_client.cc",
139 "common/shell_content_client.h",
140 "common/shell_messages.cc",
141 "common/shell_messages.h",
142 "common/shell_switches.cc",
143 "common/shell_switches.h",
144 "common/shell_test_configuration.cc",
145 "common/shell_test_configuration.h",
[email protected]9cd36bfb2014-08-20 00:32:00146 "renderer/ipc_echo.cc",
147 "renderer/ipc_echo.h",
tfarina685c39802015-05-04 22:11:22148 "renderer/layout_test/blink_test_helpers.cc",
149 "renderer/layout_test/blink_test_helpers.h",
tfarina8e08285f2015-05-02 03:17:39150 "renderer/layout_test/blink_test_runner.cc",
151 "renderer/layout_test/blink_test_runner.h",
mkwst04b72d12014-10-08 15:52:55152 "renderer/layout_test/gc_controller.cc",
153 "renderer/layout_test/gc_controller.h",
mkwst02ec0d62014-10-07 22:07:29154 "renderer/layout_test/layout_test_content_renderer_client.cc",
155 "renderer/layout_test/layout_test_content_renderer_client.h",
mkwst3e72c1f2014-10-08 05:02:36156 "renderer/layout_test/layout_test_render_frame_observer.cc",
157 "renderer/layout_test/layout_test_render_frame_observer.h",
mkwst99069fc2014-10-08 06:13:28158 "renderer/layout_test/layout_test_render_process_observer.cc",
159 "renderer/layout_test/layout_test_render_process_observer.h",
mkwst04b72d12014-10-08 15:52:55160 "renderer/layout_test/leak_detector.cc",
161 "renderer/layout_test/leak_detector.h",
jochen51265132015-05-28 07:33:45162 "renderer/layout_test/test_media_stream_renderer_factory.cc",
163 "renderer/layout_test/test_media_stream_renderer_factory.h",
164 "renderer/layout_test/test_video_frame_provider.cc",
165 "renderer/layout_test/test_video_frame_provider.h",
[email protected]6b9028ab2014-07-23 17:15:38166 "renderer/shell_content_renderer_client.cc",
167 "renderer/shell_content_renderer_client.h",
[email protected]6b9028ab2014-07-23 17:15:38168 "renderer/shell_render_view_observer.cc",
169 "renderer/shell_render_view_observer.h",
rockotb814a582015-06-05 00:30:52170 "utility/shell_content_utility_client.cc",
171 "utility/shell_content_utility_client.h",
[email protected]6b9028ab2014-07-23 17:15:38172 ]
173
brettwbc8b2a22015-07-28 18:24:42174 configs += [
175 "//build/config:precompiled_headers",
176
177 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
178 "//build/config/compiler:no_size_t_to_int_warning",
179 ]
brettwd1c719a2015-02-19 23:17:04180
[email protected]6b9028ab2014-07-23 17:15:38181 defines = [ "CONTENT_SHELL_VERSION=\"$content_shell_version\"" ]
182
Brett Wilson0380637c2014-09-19 21:24:40183 public_deps = [
184 # This exposes all public content APIs.
185 "//content/public/app:both",
186 "//content/public/browser",
187 "//content/public/common",
188 "//content/public/plugin",
189 "//content/public/renderer",
190 "//content/public/utility",
191 ]
[email protected]6b9028ab2014-07-23 17:15:38192 deps = [
193 ":resources",
194 "//base",
195 "//base:base_static",
196 "//base/allocator",
197 "//base/third_party/dynamic_annotations",
198 "//cc",
sdefresne8ba0b88c2015-09-18 10:33:13199 "//components/crash/content/app",
dgozmanf7200152015-04-22 17:48:21200 "//components/devtools_discovery",
dgozman102fee92015-04-20 15:45:46201 "//components/devtools_http_handler",
chrishtr8a377e62015-06-01 19:20:08202 "//components/plugins/renderer",
jochen73e711c2015-06-03 10:01:46203 "//components/test_runner:test_runner",
rsleevi24f64dc22015-08-07 21:39:21204 "//components/url_formatter",
hanxi149b92d2014-09-11 21:57:18205 "//components/web_cache/renderer",
[email protected]6b9028ab2014-07-23 17:15:38206 "//content:resources",
[email protected]a9ca8d52014-08-22 10:21:08207 "//content/app/resources",
[email protected]6586a2e32014-08-09 19:24:12208 "//content/app/strings",
[email protected]6b9028ab2014-07-23 17:15:38209 "//content/gpu",
[email protected]6b9028ab2014-07-23 17:15:38210 "//content/test:layouttest_support",
dpranke93211fc2015-04-29 04:59:42211 "//device/bluetooth",
ortunofd24faa2015-05-20 16:34:37212 "//device/bluetooth:mocks",
[email protected]6b9028ab2014-07-23 17:15:38213 "//gin",
214 "//gpu",
215 "//ipc",
216 "//media",
217 "//net",
218 "//net:net_resources",
219 "//skia",
pilgrim4af8c212014-09-05 17:30:15220 "//storage/browser",
ortunofd24faa2015-05-20 16:34:37221 "//testing/gmock",
222 "//testing/gtest",
[email protected]6b9028ab2014-07-23 17:15:38223 "//third_party/WebKit/public:blink",
erga3c614c92015-04-03 17:47:51224 "//third_party/WebKit/public:image_resources",
[email protected]4eebe74d2014-08-13 02:54:46225 "//third_party/WebKit/public:resources",
[email protected]0e043592014-07-28 19:47:04226 "//third_party/WebKit/public:test_support",
[email protected]4eebe74d2014-08-13 02:54:46227 "//third_party/icu",
[email protected]6b9028ab2014-07-23 17:15:38228 "//ui/base",
spang1c36fac2015-02-05 19:55:12229 "//ui/base/ime",
[email protected]6b9028ab2014-07-23 17:15:38230 "//ui/events:events_base",
231 "//ui/gfx",
232 "//ui/gfx/geometry",
233 "//ui/gfx/ipc",
234 "//ui/gl",
235 "//url",
236 "//v8",
scottmg7afc4092014-12-03 19:22:42237
[email protected]6b9028ab2014-07-23 17:15:38238 #'copy_test_netscape_plugin', TODO(GYP)
[email protected]6b9028ab2014-07-23 17:15:38239 ]
jamesr50081742014-09-09 07:52:22240 if (enable_plugins) {
241 deps += [ "//content/ppapi_plugin" ]
242 }
[email protected]6b9028ab2014-07-23 17:15:38243
244 if (is_win) {
[email protected]6b9028ab2014-07-23 17:15:38245 #'LinkIncremental': '<(msvs_large_module_debug_link_mode)', TODO(GYP)
vchigrin61944ae2015-01-30 23:51:32246 sources += [
247 "common/v8_breakpad_support_win.cc",
248 "common/v8_breakpad_support_win.h",
249 ]
[email protected]6b9028ab2014-07-23 17:15:38250 }
251
252 if (is_linux) {
slan17e5ce7f2015-09-25 00:04:45253 deps += [ "//build/linux:fontconfig" ]
[email protected]6b9028ab2014-07-23 17:15:38254 }
255
256 if (use_x11) {
[email protected]c7990dbf2014-07-23 22:35:10257 # Some tests rely on this tool at runtime. Note: it might be better if
258 # the tests that needed it had this as a dep instead of adding it here.
sadrul1f7fa9f2015-10-06 17:14:57259 data_deps = [
260 "//tools/xdisplaycheck",
261 ]
dnicoara78a734702014-11-04 19:54:38262
263 deps += [ "//ui/events/devices" ]
[email protected]6b9028ab2014-07-23 17:15:38264 }
265
266 if (is_android) {
James Robinson060f2e32014-09-10 22:31:37267 deps += [ "//content/shell/android:content_shell_jni_headers" ]
cjhopmancd7694af2014-09-08 00:00:04268 #deps -= [ "copy_test_netscape_plugin" ] TODO(GYP)
[email protected]6b9028ab2014-07-23 17:15:38269 }
270
torne1b1c9782015-03-30 20:49:00271 if (is_posix && !is_mac) {
sdefresne8ba0b88c2015-09-18 10:33:13272 deps += [ "//components/crash/content/browser" ]
[email protected]6b9028ab2014-07-23 17:15:38273 }
274
275 if (use_aura) {
276 deps += [
277 "//ui/aura",
278 "//ui/aura:test_support",
279 "//ui/events",
280 "//ui/strings",
281 "//ui/wm",
282 ]
283
284 if (toolkit_views) {
285 sources += [ "browser/shell_views.cc" ]
286 deps += [
287 "//ui/resources",
288 "//ui/views/controls/webview",
289 "//ui/views",
290 "//ui/views:test_support",
291 ]
292 } else {
293 sources += [ "browser/shell_aura.cc" ]
294 }
James Robinson060f2e32014-09-10 22:31:37295 } else {
296 sources -= [
297 "browser/shell_platform_data_aura.cc",
298 "browser/shell_platform_data_aura.h",
299 ]
[email protected]6b9028ab2014-07-23 17:15:38300 }
301
302 # The test plugin relies on X11.
303 if (is_linux && !use_x11) {
304 #deps -= [ 'copy_test_netscape_plugin' ] TODO(GYP)
305 }
306
307 if (is_chromeos) {
308 deps += [
mukai6ba73552014-10-09 19:05:17309 "//chromeos",
[email protected]6b9028ab2014-07-23 17:15:38310 "//ui/wm:test_support",
[email protected]6b9028ab2014-07-23 17:15:38311 ]
312 }
313
slan77bdc2e62015-09-21 17:56:26314 if (is_linux && !is_chromecast) {
[email protected]6b9028ab2014-07-23 17:15:38315 deps += [ "//third_party/freetype2" ]
316 }
317
318 if (!enable_plugins) {
319 sources -= [
320 "browser/shell_plugin_service_filter.cc",
321 "browser/shell_plugin_service_filter.h",
322 ]
323 }
324}
325
326grit("content_shell_resources_grit") {
brettw9af42622014-09-06 21:21:02327 visibility = [ ":*" ]
[email protected]6b9028ab2014-07-23 17:15:38328 source = "shell_resources.grd"
329 outputs = [
330 "grit/shell_resources.h",
331 "shell_resources.pak",
[email protected]6b9028ab2014-07-23 17:15:38332 ]
333}
334
335copy("copy_shell_resources") {
scottmg7afc4092014-12-03 19:22:42336 sources = [
337 "$target_gen_dir/shell_resources.pak",
338 ]
scottmg34fb7e52014-12-03 23:27:24339 outputs = [
340 "$root_out_dir/shell_resources.pak",
341 ]
[email protected]6b9028ab2014-07-23 17:15:38342
scottmg7afc4092014-12-03 19:22:42343 public_deps = [
344 ":content_shell_resources_grit",
345 ]
[email protected]6b9028ab2014-07-23 17:15:38346}
347
[email protected]6b9028ab2014-07-23 17:15:38348group("resources") {
Brett Wilsone53895272014-09-23 23:41:46349 public_deps = [
[email protected]6b9028ab2014-07-23 17:15:38350 ":copy_shell_resources",
351 ]
jochen73e711c2015-06-03 10:01:46352 deps = [
353 "//components/test_runner:resources",
354 ]
[email protected]6b9028ab2014-07-23 17:15:38355}
356
357repack("pak") {
358 sources = [
erga3c614c92015-04-03 17:47:51359 "$root_gen_dir/blink/public/resources/blink_image_resources_100_percent.pak",
360 "$root_gen_dir/blink/public/resources/blink_resources.pak",
[email protected]a9ca8d52014-08-22 10:21:08361 "$root_gen_dir/content/app/resources/content_resources_100_percent.pak",
[email protected]6586a2e32014-08-09 19:24:12362 "$root_gen_dir/content/app/strings/content_strings_en-US.pak",
[email protected]6b9028ab2014-07-23 17:15:38363 "$root_gen_dir/content/browser/tracing/tracing_resources.pak",
[email protected]6586a2e32014-08-09 19:24:12364 "$root_gen_dir/content/content_resources.pak",
[email protected]6b9028ab2014-07-23 17:15:38365 "$root_gen_dir/content/shell/shell_resources.pak",
366 "$root_gen_dir/net/net_resources.pak",
367 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak",
368 "$root_gen_dir/ui/resources/webui_resources.pak",
369 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak",
370 "$root_gen_dir/ui/strings/ui_strings_en-US.pak",
[email protected]6b9028ab2014-07-23 17:15:38371 ]
372
373 deps = [
374 ":resources",
375 "//content:resources",
[email protected]a9ca8d52014-08-22 10:21:08376 "//content/app/resources",
[email protected]6586a2e32014-08-09 19:24:12377 "//content/app/strings",
[email protected]6b9028ab2014-07-23 17:15:38378 "//content/browser/tracing:resources",
379 "//net:net_resources",
erga3c614c92015-04-03 17:47:51380 "//third_party/WebKit/public:image_resources",
[email protected]4eebe74d2014-08-13 02:54:46381 "//third_party/WebKit/public:resources",
[email protected]6b9028ab2014-07-23 17:15:38382 "//ui/resources",
383 "//ui/strings",
[email protected]6b9028ab2014-07-23 17:15:38384 ]
385
sadrul7bd20c92015-06-24 16:45:44386 if (toolkit_views) {
387 deps += [ "//ui/views/resources" ]
388 sources +=
389 [ "$root_gen_dir/ui/views/resources/views_resources_100_percent.pak" ]
390 }
391
vivek.vg77816a12014-12-18 14:28:20392 sources += [ "$root_gen_dir/blink/devtools_resources.pak" ]
cjhopman2fd48fd2014-09-24 00:52:56393 deps += [ "//content/browser/devtools:resources" ]
394 output = "$root_out_dir/content_shell.pak"
[email protected]6b9028ab2014-07-23 17:15:38395}
396
James Robinson060f2e32014-09-10 22:31:37397# TODO(GYP): Figure out what this should be on android
dpranke380390f2014-11-21 06:08:53398# and make linking this work on the Mac.
brettw4897a612015-03-02 23:13:15399if (!is_android && !is_mac) {
brettw2e2220c2015-07-21 18:56:35400 # TODO(brettw) when GYP is no longer necessary, delete
401 # content/shell/app/shell.exe.manifest. This file is not used in GN.
scottmg7afc4092014-12-03 19:22:42402 executable("content_shell") {
403 testonly = true
James Robinson060f2e32014-09-10 22:31:37404
scottmg7afc4092014-12-03 19:22:42405 # TODO(GYP) mac resource bundle stuff for this target.
406 # TODO(GYP) Windows content shell settings:
scottmg7afc4092014-12-03 19:22:42407 # - RC file.
408 # - 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
409 sources = [
scottmg7afc4092014-12-03 19:22:42410 "app/shell_main.cc",
411 ]
[email protected]6b9028ab2014-07-23 17:15:38412
scottmg7afc4092014-12-03 19:22:42413 deps = [
414 ":content_shell_lib",
415 ":pak",
416 "//base/allocator",
brettwba7a73d2015-08-31 22:17:39417 "//build/config/sanitizers:deps",
brettw2e2220c2015-07-21 18:56:35418 "//build/win:default_exe_manifest",
scottmg7afc4092014-12-03 19:22:42419 ]
[email protected]6b9028ab2014-07-23 17:15:38420
scottmg7afc4092014-12-03 19:22:42421 if (is_win) {
422 deps += [ "//sandbox" ]
423 if (!is_asan) {
424 configs -= [ "//build/config/win:console" ]
425 configs += [ "//build/config/win:windowed" ]
426 }
427 }
428
429 if (is_mac) {
430 # TODO(GYP) lots of stuff from GYP file here.
431 }
432
torne1b1c9782015-03-30 20:49:00433 if (is_android) {
scottmg7afc4092014-12-03 19:22:42434 # Some tests rely on this tool. It might be nicer if these tests relied on
435 # image diff rather than having content shell depend on it.
sadrul1f7fa9f2015-10-06 17:14:57436 data_deps = [
437 "//tools/imagediff($host_toolchain)",
438 ]
[email protected]6b9028ab2014-07-23 17:15:38439 }
440 }
brettw6aa189562015-02-02 05:34:22441} else {
442 group("content_shell") {
dpranked4063e42015-05-01 01:23:42443 testonly = true
444 deps = [
445 ":content_shell_lib",
446 ]
brettw6aa189562015-02-02 05:34:22447 }
James Robinson060f2e32014-09-10 22:31:37448}
tfarina10ae51f62015-05-13 03:35:57449
tfarina795e01a2015-05-15 19:29:57450if (is_win) {
451 # GYP version: content/content_shell_and_tests.gyp:content_shell_crash_service
452 executable("crash_service") {
453 sources = [
454 "tools/content_shell_crash_service.cc",
455 ]
456
457 deps = [
458 "//base",
brettwba7a73d2015-08-31 22:17:39459 "//build/config/sanitizers:deps",
sdefresne8ba0b88c2015-09-18 10:33:13460 "//components/crash/content/tools:crash_service",
tfarina795e01a2015-05-15 19:29:57461 ]
462
463 configs -= [ "//build/config/win:console" ]
464 configs += [ "//build/config/win:windowed" ]
465 }
466}