blob: e72155654120516bb9b581d2d2fe03e2e1a31d66 [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"
esprehnb3789092015-11-24 19:46:0317 content_shell_version = "99.77.34.5"
[email protected]6b9028ab2014-07-23 17:15:3818}
19
thakisff2eab9c2015-11-13 00:29:5820config("content_shell_lib_warnings") {
21 if (is_clang) {
22 # TODO(thakis): Remove this once http://crbug.com/383820 is figured out
23 cflags = [ "-Wno-nonnull" ]
24 }
25}
26
[email protected]6b9028ab2014-07-23 17:15:3827static_library("content_shell_lib") {
Brett Wilson8f80ad0b2014-09-08 19:50:2428 testonly = true
[email protected]6b9028ab2014-07-23 17:15:3829 sources = [
dprankec6beb8392015-10-30 23:44:2130 "android/shell_descriptors.h",
[email protected]6b9028ab2014-07-23 17:15:3831 "android/shell_jni_registrar.cc",
32 "android/shell_jni_registrar.h",
33 "android/shell_manager.cc",
34 "android/shell_manager.h",
35 "app/paths_mac.h",
36 "app/paths_mac.mm",
rseseka0a7a042014-09-18 23:59:2037 "app/shell_crash_reporter_client.cc",
38 "app/shell_crash_reporter_client.h",
[email protected]6b9028ab2014-07-23 17:15:3839 "app/shell_main_delegate.cc",
40 "app/shell_main_delegate.h",
41 "app/shell_main_delegate_mac.h",
42 "app/shell_main_delegate_mac.mm",
tfarinacde91252015-05-06 16:10:4943 "browser/blink_test_controller.cc",
44 "browser/blink_test_controller.h",
mkwstd6805d0d2014-10-16 14:44:3745 "browser/layout_test/layout_test_android.cc",
46 "browser/layout_test/layout_test_android.h",
ortunofd24faa2015-05-20 16:34:3747 "browser/layout_test/layout_test_bluetooth_adapter_provider.cc",
48 "browser/layout_test/layout_test_bluetooth_adapter_provider.h",
jyasskin8057c002015-09-10 19:09:5349 "browser/layout_test/layout_test_bluetooth_chooser_factory.cc",
50 "browser/layout_test/layout_test_bluetooth_chooser_factory.h",
mkwstd993d06a2014-10-10 11:44:3851 "browser/layout_test/layout_test_browser_context.cc",
52 "browser/layout_test/layout_test_browser_context.h",
mkwst88e23182014-10-16 12:08:5853 "browser/layout_test/layout_test_browser_main.cc",
54 "browser/layout_test/layout_test_browser_main.h",
mkwst36b11b6f2014-10-15 16:18:5655 "browser/layout_test/layout_test_browser_main_parts.cc",
56 "browser/layout_test/layout_test_browser_main_parts.h",
petercd7abb42014-10-17 13:34:0157 "browser/layout_test/layout_test_content_browser_client.cc",
58 "browser/layout_test/layout_test_content_browser_client.h",
mkwst30d20d52014-10-09 13:33:1459 "browser/layout_test/layout_test_devtools_frontend.cc",
60 "browser/layout_test/layout_test_devtools_frontend.h",
mkwst94388f792014-10-16 07:36:5261 "browser/layout_test/layout_test_download_manager_delegate.cc",
62 "browser/layout_test/layout_test_download_manager_delegate.h",
mkwst6efe7f2e62014-10-08 15:09:0163 "browser/layout_test/layout_test_javascript_dialog_manager.cc",
64 "browser/layout_test/layout_test_javascript_dialog_manager.h",
Peter Beverlooe8f2f9d2014-10-20 16:47:4965 "browser/layout_test/layout_test_message_filter.cc",
66 "browser/layout_test/layout_test_message_filter.h",
mekc9182202015-03-03 17:56:0767 "browser/layout_test/layout_test_navigator_connect_service_factory.cc",
68 "browser/layout_test/layout_test_navigator_connect_service_factory.h",
petercd7abb42014-10-17 13:34:0169 "browser/layout_test/layout_test_notification_manager.cc",
70 "browser/layout_test/layout_test_notification_manager.h",
mlamouri4e372022015-03-29 14:51:0671 "browser/layout_test/layout_test_permission_manager.cc",
72 "browser/layout_test/layout_test_permission_manager.h",
mvanouwerkerkde895c9c2014-12-06 12:17:3273 "browser/layout_test/layout_test_push_messaging_service.cc",
74 "browser/layout_test/layout_test_push_messaging_service.h",
mkwst002d02902014-10-09 10:17:0075 "browser/layout_test/layout_test_resource_dispatcher_host_delegate.cc",
76 "browser/layout_test/layout_test_resource_dispatcher_host_delegate.h",
mkwst94388f792014-10-16 07:36:5277 "browser/layout_test/layout_test_url_request_context_getter.cc",
78 "browser/layout_test/layout_test_url_request_context_getter.h",
[email protected]6b9028ab2014-07-23 17:15:3879 "browser/notify_done_forwarder.cc",
80 "browser/notify_done_forwarder.h",
peter11d5f562014-10-23 23:12:2581 "browser/shell.cc",
82 "browser/shell.h",
83 "browser/shell_access_token_store.cc",
84 "browser/shell_access_token_store.h",
[email protected]6b9028ab2014-07-23 17:15:3885 "browser/shell_android.cc",
86 "browser/shell_application_mac.h",
87 "browser/shell_application_mac.mm",
88 "browser/shell_browser_context.cc",
89 "browser/shell_browser_context.h",
90 "browser/shell_browser_main.cc",
91 "browser/shell_browser_main.h",
92 "browser/shell_browser_main_parts.cc",
93 "browser/shell_browser_main_parts.h",
94 "browser/shell_browser_main_parts_mac.mm",
[email protected]6b9028ab2014-07-23 17:15:3895 "browser/shell_content_browser_client.cc",
96 "browser/shell_content_browser_client.h",
[email protected]6b9028ab2014-07-23 17:15:3897 "browser/shell_devtools_frontend.cc",
98 "browser/shell_devtools_frontend.h",
satorux7fa9d302015-02-16 00:44:5299 "browser/shell_devtools_manager_delegate.cc",
100 "browser/shell_devtools_manager_delegate.h",
[email protected]6b9028ab2014-07-23 17:15:38101 "browser/shell_download_manager_delegate.cc",
102 "browser/shell_download_manager_delegate.h",
[email protected]6b9028ab2014-07-23 17:15:38103 "browser/shell_javascript_dialog.h",
104 "browser/shell_javascript_dialog_mac.mm",
105 "browser/shell_javascript_dialog_manager.cc",
106 "browser/shell_javascript_dialog_manager.h",
107 "browser/shell_javascript_dialog_win.cc",
[email protected]6b9028ab2014-07-23 17:15:38108 "browser/shell_login_dialog.cc",
109 "browser/shell_login_dialog.h",
110 "browser/shell_login_dialog_mac.mm",
111 "browser/shell_mac.mm",
satorux7fa9d302015-02-16 00:44:52112 "browser/shell_mojo_test_utils_android.cc",
113 "browser/shell_mojo_test_utils_android.h",
[email protected]6b9028ab2014-07-23 17:15:38114 "browser/shell_net_log.cc",
115 "browser/shell_net_log.h",
116 "browser/shell_network_delegate.cc",
117 "browser/shell_network_delegate.h",
mlamouri4e372022015-03-29 14:51:06118 "browser/shell_permission_manager.cc",
119 "browser/shell_permission_manager.h",
[email protected]6b9028ab2014-07-23 17:15:38120 "browser/shell_platform_data_aura.cc",
121 "browser/shell_platform_data_aura.h",
122 "browser/shell_plugin_service_filter.cc",
123 "browser/shell_plugin_service_filter.h",
124 "browser/shell_quota_permission_context.cc",
125 "browser/shell_quota_permission_context.h",
126 "browser/shell_resource_dispatcher_host_delegate.cc",
127 "browser/shell_resource_dispatcher_host_delegate.h",
128 "browser/shell_speech_recognition_manager_delegate.cc",
129 "browser/shell_speech_recognition_manager_delegate.h",
130 "browser/shell_url_request_context_getter.cc",
131 "browser/shell_url_request_context_getter.h",
satorux7fa9d302015-02-16 00:44:52132 "browser/shell_web_contents_view_delegate.h",
[email protected]6b9028ab2014-07-23 17:15:38133 "browser/shell_web_contents_view_delegate_android.cc",
134 "browser/shell_web_contents_view_delegate_creator.h",
[email protected]6b9028ab2014-07-23 17:15:38135 "browser/shell_web_contents_view_delegate_mac.mm",
136 "browser/shell_web_contents_view_delegate_win.cc",
petere04203592014-10-27 17:57:35137 "common/layout_test/layout_test_messages.cc",
138 "common/layout_test/layout_test_messages.h",
[email protected]6b9028ab2014-07-23 17:15:38139 "common/leak_detection_result.h",
140 "common/shell_content_client.cc",
141 "common/shell_content_client.h",
142 "common/shell_messages.cc",
143 "common/shell_messages.h",
144 "common/shell_switches.cc",
145 "common/shell_switches.h",
146 "common/shell_test_configuration.cc",
147 "common/shell_test_configuration.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",
mkwst02ec0d62014-10-07 22:07:29152 "renderer/layout_test/layout_test_content_renderer_client.cc",
153 "renderer/layout_test/layout_test_content_renderer_client.h",
mkwst3e72c1f2014-10-08 05:02:36154 "renderer/layout_test/layout_test_render_frame_observer.cc",
155 "renderer/layout_test/layout_test_render_frame_observer.h",
mkwst99069fc2014-10-08 06:13:28156 "renderer/layout_test/layout_test_render_process_observer.cc",
157 "renderer/layout_test/layout_test_render_process_observer.h",
mkwst04b72d12014-10-08 15:52:55158 "renderer/layout_test/leak_detector.cc",
159 "renderer/layout_test/leak_detector.h",
jochen51265132015-05-28 07:33:45160 "renderer/layout_test/test_media_stream_renderer_factory.cc",
161 "renderer/layout_test/test_media_stream_renderer_factory.h",
162 "renderer/layout_test/test_video_frame_provider.cc",
163 "renderer/layout_test/test_video_frame_provider.h",
[email protected]6b9028ab2014-07-23 17:15:38164 "renderer/shell_content_renderer_client.cc",
165 "renderer/shell_content_renderer_client.h",
[email protected]6b9028ab2014-07-23 17:15:38166 "renderer/shell_render_view_observer.cc",
167 "renderer/shell_render_view_observer.h",
rockotb814a582015-06-05 00:30:52168 "utility/shell_content_utility_client.cc",
169 "utility/shell_content_utility_client.h",
[email protected]6b9028ab2014-07-23 17:15:38170 ]
171
brettwbc8b2a22015-07-28 18:24:42172 configs += [
thakisff2eab9c2015-11-13 00:29:58173 ":content_shell_lib_warnings",
brettwbc8b2a22015-07-28 18:24:42174 "//build/config:precompiled_headers",
175
176 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
177 "//build/config/compiler:no_size_t_to_int_warning",
178 ]
brettwd1c719a2015-02-19 23:17:04179
[email protected]6b9028ab2014-07-23 17:15:38180 defines = [ "CONTENT_SHELL_VERSION=\"$content_shell_version\"" ]
181
Brett Wilson0380637c2014-09-19 21:24:40182 public_deps = [
183 # This exposes all public content APIs.
184 "//content/public/app:both",
185 "//content/public/browser",
186 "//content/public/common",
187 "//content/public/plugin",
188 "//content/public/renderer",
189 "//content/public/utility",
190 ]
[email protected]6b9028ab2014-07-23 17:15:38191 deps = [
192 ":resources",
193 "//base",
194 "//base:base_static",
195 "//base/allocator",
196 "//base/third_party/dynamic_annotations",
197 "//cc",
brettw5ff98192015-10-22 06:36:15198 "//components/crash/content/app:app_breakpad_mac_to_be_deleted",
dgozmanf7200152015-04-22 17:48:21199 "//components/devtools_discovery",
dgozman102fee92015-04-20 15:45:46200 "//components/devtools_http_handler",
chrishtr8a377e62015-06-01 19:20:08201 "//components/plugins/renderer",
jochen73e711c2015-06-03 10:01:46202 "//components/test_runner:test_runner",
rsleevi24f64dc22015-08-07 21:39:21203 "//components/url_formatter",
hanxi149b92d2014-09-11 21:57:18204 "//components/web_cache/renderer",
[email protected]6b9028ab2014-07-23 17:15:38205 "//content:resources",
[email protected]a9ca8d52014-08-22 10:21:08206 "//content/app/resources",
[email protected]6586a2e32014-08-09 19:24:12207 "//content/app/strings",
[email protected]6b9028ab2014-07-23 17:15:38208 "//content/gpu",
[email protected]6b9028ab2014-07-23 17:15:38209 "//content/test:layouttest_support",
dpranke93211fc2015-04-29 04:59:42210 "//device/bluetooth",
ortunofd24faa2015-05-20 16:34:37211 "//device/bluetooth:mocks",
[email protected]6b9028ab2014-07-23 17:15:38212 "//gin",
213 "//gpu",
214 "//ipc",
215 "//media",
216 "//net",
217 "//net:net_resources",
218 "//skia",
pilgrim4af8c212014-09-05 17:30:15219 "//storage/browser",
ortunofd24faa2015-05-20 16:34:37220 "//testing/gmock",
221 "//testing/gtest",
[email protected]6b9028ab2014-07-23 17:15:38222 "//third_party/WebKit/public:blink",
erga3c614c92015-04-03 17:47:51223 "//third_party/WebKit/public:image_resources",
[email protected]4eebe74d2014-08-13 02:54:46224 "//third_party/WebKit/public:resources",
[email protected]0e043592014-07-28 19:47:04225 "//third_party/WebKit/public:test_support",
[email protected]4eebe74d2014-08-13 02:54:46226 "//third_party/icu",
[email protected]6b9028ab2014-07-23 17:15:38227 "//ui/base",
spang1c36fac2015-02-05 19:55:12228 "//ui/base/ime",
[email protected]6b9028ab2014-07-23 17:15:38229 "//ui/events:events_base",
230 "//ui/gfx",
231 "//ui/gfx/geometry",
232 "//ui/gfx/ipc",
233 "//ui/gl",
234 "//url",
235 "//v8",
scottmg7afc4092014-12-03 19:22:42236
[email protected]6b9028ab2014-07-23 17:15:38237 #'copy_test_netscape_plugin', TODO(GYP)
[email protected]6b9028ab2014-07-23 17:15:38238 ]
jamesr50081742014-09-09 07:52:22239 if (enable_plugins) {
240 deps += [ "//content/ppapi_plugin" ]
241 }
[email protected]6b9028ab2014-07-23 17:15:38242
243 if (is_win) {
[email protected]6b9028ab2014-07-23 17:15:38244 #'LinkIncremental': '<(msvs_large_module_debug_link_mode)', TODO(GYP)
vchigrin61944ae2015-01-30 23:51:32245 sources += [
246 "common/v8_breakpad_support_win.cc",
247 "common/v8_breakpad_support_win.h",
248 ]
[email protected]6b9028ab2014-07-23 17:15:38249 }
250
251 if (is_linux) {
slan17e5ce7f2015-09-25 00:04:45252 deps += [ "//build/linux:fontconfig" ]
[email protected]6b9028ab2014-07-23 17:15:38253 }
254
255 if (use_x11) {
[email protected]c7990dbf2014-07-23 22:35:10256 # Some tests rely on this tool at runtime. Note: it might be better if
257 # the tests that needed it had this as a dep instead of adding it here.
sadrul1f7fa9f2015-10-06 17:14:57258 data_deps = [
259 "//tools/xdisplaycheck",
260 ]
dnicoara78a734702014-11-04 19:54:38261
262 deps += [ "//ui/events/devices" ]
[email protected]6b9028ab2014-07-23 17:15:38263 }
264
265 if (is_android) {
James Robinson060f2e32014-09-10 22:31:37266 deps += [ "//content/shell/android:content_shell_jni_headers" ]
cjhopmancd7694af2014-09-08 00:00:04267 #deps -= [ "copy_test_netscape_plugin" ] TODO(GYP)
[email protected]6b9028ab2014-07-23 17:15:38268 }
269
torne1b1c9782015-03-30 20:49:00270 if (is_posix && !is_mac) {
sdefresne8ba0b88c2015-09-18 10:33:13271 deps += [ "//components/crash/content/browser" ]
[email protected]6b9028ab2014-07-23 17:15:38272 }
273
274 if (use_aura) {
275 deps += [
276 "//ui/aura",
277 "//ui/aura:test_support",
278 "//ui/events",
279 "//ui/strings",
280 "//ui/wm",
281 ]
282
283 if (toolkit_views) {
284 sources += [ "browser/shell_views.cc" ]
285 deps += [
286 "//ui/resources",
[email protected]6b9028ab2014-07-23 17:15:38287 "//ui/views",
288 "//ui/views:test_support",
agrieved7a71c882015-11-20 19:53:28289 "//ui/views/controls/webview",
[email protected]6b9028ab2014-07-23 17:15:38290 ]
291 } else {
292 sources += [ "browser/shell_aura.cc" ]
293 }
James Robinson060f2e32014-09-10 22:31:37294 } else {
295 sources -= [
296 "browser/shell_platform_data_aura.cc",
297 "browser/shell_platform_data_aura.h",
298 ]
[email protected]6b9028ab2014-07-23 17:15:38299 }
300
301 # The test plugin relies on X11.
302 if (is_linux && !use_x11) {
303 #deps -= [ 'copy_test_netscape_plugin' ] TODO(GYP)
304 }
305
306 if (is_chromeos) {
307 deps += [
mukai6ba73552014-10-09 19:05:17308 "//chromeos",
[email protected]6b9028ab2014-07-23 17:15:38309 "//ui/wm:test_support",
[email protected]6b9028ab2014-07-23 17:15:38310 ]
311 }
312
slan77bdc2e62015-09-21 17:56:26313 if (is_linux && !is_chromecast) {
[email protected]6b9028ab2014-07-23 17:15:38314 deps += [ "//third_party/freetype2" ]
315 }
316
317 if (!enable_plugins) {
318 sources -= [
319 "browser/shell_plugin_service_filter.cc",
320 "browser/shell_plugin_service_filter.h",
321 ]
322 }
323}
324
325grit("content_shell_resources_grit") {
brettw9af42622014-09-06 21:21:02326 visibility = [ ":*" ]
[email protected]6b9028ab2014-07-23 17:15:38327 source = "shell_resources.grd"
328 outputs = [
329 "grit/shell_resources.h",
330 "shell_resources.pak",
[email protected]6b9028ab2014-07-23 17:15:38331 ]
332}
333
334copy("copy_shell_resources") {
scottmg7afc4092014-12-03 19:22:42335 sources = [
336 "$target_gen_dir/shell_resources.pak",
337 ]
scottmg34fb7e52014-12-03 23:27:24338 outputs = [
339 "$root_out_dir/shell_resources.pak",
340 ]
[email protected]6b9028ab2014-07-23 17:15:38341
scottmg7afc4092014-12-03 19:22:42342 public_deps = [
343 ":content_shell_resources_grit",
344 ]
[email protected]6b9028ab2014-07-23 17:15:38345}
346
[email protected]6b9028ab2014-07-23 17:15:38347group("resources") {
Brett Wilsone53895272014-09-23 23:41:46348 public_deps = [
[email protected]6b9028ab2014-07-23 17:15:38349 ":copy_shell_resources",
350 ]
jochen73e711c2015-06-03 10:01:46351 deps = [
352 "//components/test_runner:resources",
353 ]
[email protected]6b9028ab2014-07-23 17:15:38354}
355
356repack("pak") {
357 sources = [
erga3c614c92015-04-03 17:47:51358 "$root_gen_dir/blink/public/resources/blink_image_resources_100_percent.pak",
359 "$root_gen_dir/blink/public/resources/blink_resources.pak",
[email protected]a9ca8d52014-08-22 10:21:08360 "$root_gen_dir/content/app/resources/content_resources_100_percent.pak",
[email protected]6586a2e32014-08-09 19:24:12361 "$root_gen_dir/content/app/strings/content_strings_en-US.pak",
[email protected]6b9028ab2014-07-23 17:15:38362 "$root_gen_dir/content/browser/tracing/tracing_resources.pak",
[email protected]6586a2e32014-08-09 19:24:12363 "$root_gen_dir/content/content_resources.pak",
[email protected]6b9028ab2014-07-23 17:15:38364 "$root_gen_dir/content/shell/shell_resources.pak",
365 "$root_gen_dir/net/net_resources.pak",
366 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak",
367 "$root_gen_dir/ui/resources/webui_resources.pak",
368 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak",
369 "$root_gen_dir/ui/strings/ui_strings_en-US.pak",
[email protected]6b9028ab2014-07-23 17:15:38370 ]
371
372 deps = [
373 ":resources",
374 "//content:resources",
[email protected]a9ca8d52014-08-22 10:21:08375 "//content/app/resources",
[email protected]6586a2e32014-08-09 19:24:12376 "//content/app/strings",
[email protected]6b9028ab2014-07-23 17:15:38377 "//content/browser/tracing:resources",
378 "//net:net_resources",
erga3c614c92015-04-03 17:47:51379 "//third_party/WebKit/public:image_resources",
[email protected]4eebe74d2014-08-13 02:54:46380 "//third_party/WebKit/public:resources",
[email protected]6b9028ab2014-07-23 17:15:38381 "//ui/resources",
382 "//ui/strings",
[email protected]6b9028ab2014-07-23 17:15:38383 ]
384
sadrul7bd20c92015-06-24 16:45:44385 if (toolkit_views) {
386 deps += [ "//ui/views/resources" ]
387 sources +=
388 [ "$root_gen_dir/ui/views/resources/views_resources_100_percent.pak" ]
389 }
390
vivek.vg77816a12014-12-18 14:28:20391 sources += [ "$root_gen_dir/blink/devtools_resources.pak" ]
cjhopman2fd48fd2014-09-24 00:52:56392 deps += [ "//content/browser/devtools:resources" ]
393 output = "$root_out_dir/content_shell.pak"
[email protected]6b9028ab2014-07-23 17:15:38394}
395
James Robinson060f2e32014-09-10 22:31:37396# TODO(GYP): Figure out what this should be on android
dpranke380390f2014-11-21 06:08:53397# and make linking this work on the Mac.
brettw4897a612015-03-02 23:13:15398if (!is_android && !is_mac) {
brettw2e2220c2015-07-21 18:56:35399 # TODO(brettw) when GYP is no longer necessary, delete
400 # content/shell/app/shell.exe.manifest. This file is not used in GN.
scottmg7afc4092014-12-03 19:22:42401 executable("content_shell") {
402 testonly = true
James Robinson060f2e32014-09-10 22:31:37403
scottmg7afc4092014-12-03 19:22:42404 # TODO(GYP) mac resource bundle stuff for this target.
405 # TODO(GYP) Windows content shell settings:
scottmg7afc4092014-12-03 19:22:42406 # - RC file.
407 # - 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
408 sources = [
scottmg7afc4092014-12-03 19:22:42409 "app/shell_main.cc",
410 ]
[email protected]6b9028ab2014-07-23 17:15:38411
scottmg7afc4092014-12-03 19:22:42412 deps = [
413 ":content_shell_lib",
414 ":pak",
415 "//base/allocator",
brettwba7a73d2015-08-31 22:17:39416 "//build/config/sanitizers:deps",
brettw2e2220c2015-07-21 18:56:35417 "//build/win:default_exe_manifest",
scottmg7afc4092014-12-03 19:22:42418 ]
[email protected]6b9028ab2014-07-23 17:15:38419
scottmg7afc4092014-12-03 19:22:42420 if (is_win) {
421 deps += [ "//sandbox" ]
422 if (!is_asan) {
423 configs -= [ "//build/config/win:console" ]
424 configs += [ "//build/config/win:windowed" ]
425 }
426 }
427
428 if (is_mac) {
brettwe1d40652015-10-23 23:06:10429 # TODO(GYP) lots of stuff from GYP file here including helper_app and
430 # postbuilds.
431 output_name = content_shell_product_name
432 deps = [
433 ":framework",
434 ]
scottmg7afc4092014-12-03 19:22:42435 }
436
torne1b1c9782015-03-30 20:49:00437 if (is_android) {
scottmg7afc4092014-12-03 19:22:42438 # Some tests rely on this tool. It might be nicer if these tests relied on
439 # image diff rather than having content shell depend on it.
sadrul1f7fa9f2015-10-06 17:14:57440 data_deps = [
441 "//tools/imagediff($host_toolchain)",
442 ]
[email protected]6b9028ab2014-07-23 17:15:38443 }
444 }
brettw6aa189562015-02-02 05:34:22445} else {
446 group("content_shell") {
dpranked4063e42015-05-01 01:23:42447 testonly = true
448 deps = [
449 ":content_shell_lib",
450 ]
brettw6aa189562015-02-02 05:34:22451 }
James Robinson060f2e32014-09-10 22:31:37452}
tfarina10ae51f62015-05-13 03:35:57453
tfarina795e01a2015-05-15 19:29:57454if (is_win) {
455 # GYP version: content/content_shell_and_tests.gyp:content_shell_crash_service
456 executable("crash_service") {
457 sources = [
458 "tools/content_shell_crash_service.cc",
459 ]
460
461 deps = [
462 "//base",
brettwba7a73d2015-08-31 22:17:39463 "//build/config/sanitizers:deps",
sdefresne8ba0b88c2015-09-18 10:33:13464 "//components/crash/content/tools:crash_service",
tfarina795e01a2015-05-15 19:29:57465 ]
466
467 configs -= [ "//build/config/win:console" ]
468 configs += [ "//build/config/win:windowed" ]
469 }
470}
brettwe1d40652015-10-23 23:06:10471
472if (is_mac) {
473 # TODO(GYP) this should be a bundle. Lots of other stuff in this target.
474 # GYP version: content/content_shell.gypi:content_shell_framework
475 shared_library("framework") {
476 testonly = true
477
478 # TODO(GYP) bug 546894: Fix GN and toolchains to handle spaces here.
479 #output_name = "$content_shell_product_name Framework"
480 output_name = "content_shell_framework" # Temporary one with no spaces.
481
482 sources = [
tfarinac708f3972015-10-25 17:42:50483 "app/shell_content_main.cc",
484 "app/shell_content_main.h",
brettwe1d40652015-10-23 23:06:10485 ]
486
487 deps = [
488 ":content_shell_lib",
489 ]
490 }
491}