blob: 37cf83e4535db7c79534307ee27fda6aaac419a6 [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")
skobes502412ae2016-01-19 17:40:438import("//build/config/win/console_app.gni")
brettw2e2220c2015-07-21 18:56:359import("//build/config/win/manifest.gni")
[email protected]6b9028ab2014-07-23 17:15:3810import("//tools/grit/repack.gni")
cjhopmancd7694af2014-09-08 00:00:0411import("//tools/grit/grit_rule.gni")
[email protected]6b9028ab2014-07-23 17:15:3812if (is_android) {
13 import("//build/config/android/config.gni")
14}
15
16declare_args() {
17 content_shell_product_name = "Content Shell"
esprehnb3789092015-11-24 19:46:0318 content_shell_version = "99.77.34.5"
[email protected]6b9028ab2014-07-23 17:15:3819}
20
thakisff2eab9c2015-11-13 00:29:5821config("content_shell_lib_warnings") {
22 if (is_clang) {
23 # TODO(thakis): Remove this once http://crbug.com/383820 is figured out
24 cflags = [ "-Wno-nonnull" ]
25 }
26}
27
[email protected]6b9028ab2014-07-23 17:15:3828static_library("content_shell_lib") {
Brett Wilson8f80ad0b2014-09-08 19:50:2429 testonly = true
[email protected]6b9028ab2014-07-23 17:15:3830 sources = [
dprankec6beb8392015-10-30 23:44:2131 "android/shell_descriptors.h",
[email protected]6b9028ab2014-07-23 17:15:3832 "android/shell_jni_registrar.cc",
33 "android/shell_jni_registrar.h",
34 "android/shell_manager.cc",
35 "android/shell_manager.h",
36 "app/paths_mac.h",
37 "app/paths_mac.mm",
rseseka0a7a042014-09-18 23:59:2038 "app/shell_crash_reporter_client.cc",
39 "app/shell_crash_reporter_client.h",
[email protected]6b9028ab2014-07-23 17:15:3840 "app/shell_main_delegate.cc",
41 "app/shell_main_delegate.h",
42 "app/shell_main_delegate_mac.h",
43 "app/shell_main_delegate_mac.mm",
tfarinacde91252015-05-06 16:10:4944 "browser/blink_test_controller.cc",
45 "browser/blink_test_controller.h",
mkwstd6805d0d2014-10-16 14:44:3746 "browser/layout_test/layout_test_android.cc",
47 "browser/layout_test/layout_test_android.h",
ortunofd24faa2015-05-20 16:34:3748 "browser/layout_test/layout_test_bluetooth_adapter_provider.cc",
49 "browser/layout_test/layout_test_bluetooth_adapter_provider.h",
jyasskin8057c002015-09-10 19:09:5350 "browser/layout_test/layout_test_bluetooth_chooser_factory.cc",
51 "browser/layout_test/layout_test_bluetooth_chooser_factory.h",
mkwstd993d06a2014-10-10 11:44:3852 "browser/layout_test/layout_test_browser_context.cc",
53 "browser/layout_test/layout_test_browser_context.h",
mkwst88e23182014-10-16 12:08:5854 "browser/layout_test/layout_test_browser_main.cc",
55 "browser/layout_test/layout_test_browser_main.h",
mkwst36b11b6f2014-10-15 16:18:5656 "browser/layout_test/layout_test_browser_main_parts.cc",
57 "browser/layout_test/layout_test_browser_main_parts.h",
petercd7abb42014-10-17 13:34:0158 "browser/layout_test/layout_test_content_browser_client.cc",
59 "browser/layout_test/layout_test_content_browser_client.h",
mkwst30d20d52014-10-09 13:33:1460 "browser/layout_test/layout_test_devtools_frontend.cc",
61 "browser/layout_test/layout_test_devtools_frontend.h",
mkwst94388f792014-10-16 07:36:5262 "browser/layout_test/layout_test_download_manager_delegate.cc",
63 "browser/layout_test/layout_test_download_manager_delegate.h",
mkwst6efe7f2e62014-10-08 15:09:0164 "browser/layout_test/layout_test_javascript_dialog_manager.cc",
65 "browser/layout_test/layout_test_javascript_dialog_manager.h",
Peter Beverlooe8f2f9d2014-10-20 16:47:4966 "browser/layout_test/layout_test_message_filter.cc",
67 "browser/layout_test/layout_test_message_filter.h",
mekc9182202015-03-03 17:56:0768 "browser/layout_test/layout_test_navigator_connect_service_factory.cc",
69 "browser/layout_test/layout_test_navigator_connect_service_factory.h",
petercd7abb42014-10-17 13:34:0170 "browser/layout_test/layout_test_notification_manager.cc",
71 "browser/layout_test/layout_test_notification_manager.h",
mlamouri4e372022015-03-29 14:51:0672 "browser/layout_test/layout_test_permission_manager.cc",
73 "browser/layout_test/layout_test_permission_manager.h",
mvanouwerkerkde895c9c2014-12-06 12:17:3274 "browser/layout_test/layout_test_push_messaging_service.cc",
75 "browser/layout_test/layout_test_push_messaging_service.h",
mkwst002d02902014-10-09 10:17:0076 "browser/layout_test/layout_test_resource_dispatcher_host_delegate.cc",
77 "browser/layout_test/layout_test_resource_dispatcher_host_delegate.h",
mkwst94388f792014-10-16 07:36:5278 "browser/layout_test/layout_test_url_request_context_getter.cc",
79 "browser/layout_test/layout_test_url_request_context_getter.h",
[email protected]6b9028ab2014-07-23 17:15:3880 "browser/notify_done_forwarder.cc",
81 "browser/notify_done_forwarder.h",
peter11d5f562014-10-23 23:12:2582 "browser/shell.cc",
83 "browser/shell.h",
84 "browser/shell_access_token_store.cc",
85 "browser/shell_access_token_store.h",
[email protected]6b9028ab2014-07-23 17:15:3886 "browser/shell_android.cc",
87 "browser/shell_application_mac.h",
88 "browser/shell_application_mac.mm",
89 "browser/shell_browser_context.cc",
90 "browser/shell_browser_context.h",
91 "browser/shell_browser_main.cc",
92 "browser/shell_browser_main.h",
93 "browser/shell_browser_main_parts.cc",
94 "browser/shell_browser_main_parts.h",
95 "browser/shell_browser_main_parts_mac.mm",
[email protected]6b9028ab2014-07-23 17:15:3896 "browser/shell_content_browser_client.cc",
97 "browser/shell_content_browser_client.h",
[email protected]6b9028ab2014-07-23 17:15:3898 "browser/shell_devtools_frontend.cc",
99 "browser/shell_devtools_frontend.h",
satorux7fa9d302015-02-16 00:44:52100 "browser/shell_devtools_manager_delegate.cc",
101 "browser/shell_devtools_manager_delegate.h",
[email protected]6b9028ab2014-07-23 17:15:38102 "browser/shell_download_manager_delegate.cc",
103 "browser/shell_download_manager_delegate.h",
[email protected]6b9028ab2014-07-23 17:15:38104 "browser/shell_javascript_dialog.h",
105 "browser/shell_javascript_dialog_mac.mm",
106 "browser/shell_javascript_dialog_manager.cc",
107 "browser/shell_javascript_dialog_manager.h",
108 "browser/shell_javascript_dialog_win.cc",
[email protected]6b9028ab2014-07-23 17:15:38109 "browser/shell_login_dialog.cc",
110 "browser/shell_login_dialog.h",
111 "browser/shell_login_dialog_mac.mm",
112 "browser/shell_mac.mm",
satorux7fa9d302015-02-16 00:44:52113 "browser/shell_mojo_test_utils_android.cc",
114 "browser/shell_mojo_test_utils_android.h",
[email protected]6b9028ab2014-07-23 17:15:38115 "browser/shell_net_log.cc",
116 "browser/shell_net_log.h",
117 "browser/shell_network_delegate.cc",
118 "browser/shell_network_delegate.h",
mlamouri4e372022015-03-29 14:51:06119 "browser/shell_permission_manager.cc",
120 "browser/shell_permission_manager.h",
[email protected]6b9028ab2014-07-23 17:15:38121 "browser/shell_platform_data_aura.cc",
122 "browser/shell_platform_data_aura.h",
123 "browser/shell_plugin_service_filter.cc",
124 "browser/shell_plugin_service_filter.h",
125 "browser/shell_quota_permission_context.cc",
126 "browser/shell_quota_permission_context.h",
127 "browser/shell_resource_dispatcher_host_delegate.cc",
128 "browser/shell_resource_dispatcher_host_delegate.h",
129 "browser/shell_speech_recognition_manager_delegate.cc",
130 "browser/shell_speech_recognition_manager_delegate.h",
131 "browser/shell_url_request_context_getter.cc",
132 "browser/shell_url_request_context_getter.h",
satorux7fa9d302015-02-16 00:44:52133 "browser/shell_web_contents_view_delegate.h",
[email protected]6b9028ab2014-07-23 17:15:38134 "browser/shell_web_contents_view_delegate_android.cc",
135 "browser/shell_web_contents_view_delegate_creator.h",
[email protected]6b9028ab2014-07-23 17:15:38136 "browser/shell_web_contents_view_delegate_mac.mm",
137 "browser/shell_web_contents_view_delegate_win.cc",
petere04203592014-10-27 17:57:35138 "common/layout_test/layout_test_messages.cc",
139 "common/layout_test/layout_test_messages.h",
[email protected]6b9028ab2014-07-23 17:15:38140 "common/leak_detection_result.h",
141 "common/shell_content_client.cc",
142 "common/shell_content_client.h",
143 "common/shell_messages.cc",
144 "common/shell_messages.h",
145 "common/shell_switches.cc",
146 "common/shell_switches.h",
147 "common/shell_test_configuration.cc",
148 "common/shell_test_configuration.h",
tfarina685c39802015-05-04 22:11:22149 "renderer/layout_test/blink_test_helpers.cc",
150 "renderer/layout_test/blink_test_helpers.h",
tfarina8e08285f2015-05-02 03:17:39151 "renderer/layout_test/blink_test_runner.cc",
152 "renderer/layout_test/blink_test_runner.h",
mkwst02ec0d62014-10-07 22:07:29153 "renderer/layout_test/layout_test_content_renderer_client.cc",
154 "renderer/layout_test/layout_test_content_renderer_client.h",
mkwst3e72c1f2014-10-08 05:02:36155 "renderer/layout_test/layout_test_render_frame_observer.cc",
156 "renderer/layout_test/layout_test_render_frame_observer.h",
mkwst99069fc2014-10-08 06:13:28157 "renderer/layout_test/layout_test_render_process_observer.cc",
158 "renderer/layout_test/layout_test_render_process_observer.h",
mkwst04b72d12014-10-08 15:52:55159 "renderer/layout_test/leak_detector.cc",
160 "renderer/layout_test/leak_detector.h",
jochen51265132015-05-28 07:33:45161 "renderer/layout_test/test_media_stream_renderer_factory.cc",
162 "renderer/layout_test/test_media_stream_renderer_factory.h",
163 "renderer/layout_test/test_video_frame_provider.cc",
164 "renderer/layout_test/test_video_frame_provider.h",
[email protected]6b9028ab2014-07-23 17:15:38165 "renderer/shell_content_renderer_client.cc",
166 "renderer/shell_content_renderer_client.h",
[email protected]6b9028ab2014-07-23 17:15:38167 "renderer/shell_render_view_observer.cc",
168 "renderer/shell_render_view_observer.h",
rockotb814a582015-06-05 00:30:52169 "utility/shell_content_utility_client.cc",
170 "utility/shell_content_utility_client.h",
[email protected]6b9028ab2014-07-23 17:15:38171 ]
172
brettwbc8b2a22015-07-28 18:24:42173 configs += [
thakisff2eab9c2015-11-13 00:29:58174 ":content_shell_lib_warnings",
brettwbc8b2a22015-07-28 18:24:42175 "//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",
kozyatinskiy6adbc802016-01-28 00:16:16179
180 "//third_party/WebKit/public:debug_devtools",
brettwbc8b2a22015-07-28 18:24:42181 ]
brettwd1c719a2015-02-19 23:17:04182
[email protected]6b9028ab2014-07-23 17:15:38183 defines = [ "CONTENT_SHELL_VERSION=\"$content_shell_version\"" ]
184
Brett Wilson0380637c2014-09-19 21:24:40185 public_deps = [
186 # This exposes all public content APIs.
187 "//content/public/app:both",
188 "//content/public/browser",
189 "//content/public/common",
190 "//content/public/plugin",
191 "//content/public/renderer",
192 "//content/public/utility",
193 ]
[email protected]6b9028ab2014-07-23 17:15:38194 deps = [
195 ":resources",
196 "//base",
197 "//base:base_static",
198 "//base/allocator",
199 "//base/third_party/dynamic_annotations",
200 "//cc",
scottmgcfa5b01b2015-11-30 23:13:46201 "//components/crash/content/app:app_breakpad_mac_win_to_be_deleted",
dgozmanf7200152015-04-22 17:48:21202 "//components/devtools_discovery",
dgozman102fee92015-04-20 15:45:46203 "//components/devtools_http_handler",
chrishtr8a377e62015-06-01 19:20:08204 "//components/plugins/renderer",
jochen73e711c2015-06-03 10:01:46205 "//components/test_runner:test_runner",
rsleevi24f64dc22015-08-07 21:39:21206 "//components/url_formatter",
hanxi149b92d2014-09-11 21:57:18207 "//components/web_cache/renderer",
[email protected]6b9028ab2014-07-23 17:15:38208 "//content:resources",
[email protected]a9ca8d52014-08-22 10:21:08209 "//content/app/resources",
[email protected]6586a2e32014-08-09 19:24:12210 "//content/app/strings",
[email protected]6b9028ab2014-07-23 17:15:38211 "//content/gpu",
[email protected]6b9028ab2014-07-23 17:15:38212 "//content/test:layouttest_support",
dpranke93211fc2015-04-29 04:59:42213 "//device/bluetooth",
ortunofd24faa2015-05-20 16:34:37214 "//device/bluetooth:mocks",
[email protected]6b9028ab2014-07-23 17:15:38215 "//gin",
216 "//gpu",
217 "//ipc",
218 "//media",
219 "//net",
220 "//net:net_resources",
221 "//skia",
pilgrim4af8c212014-09-05 17:30:15222 "//storage/browser",
ortunofd24faa2015-05-20 16:34:37223 "//testing/gmock",
224 "//testing/gtest",
[email protected]6b9028ab2014-07-23 17:15:38225 "//third_party/WebKit/public:blink",
erga3c614c92015-04-03 17:47:51226 "//third_party/WebKit/public:image_resources",
[email protected]4eebe74d2014-08-13 02:54:46227 "//third_party/WebKit/public:resources",
[email protected]0e043592014-07-28 19:47:04228 "//third_party/WebKit/public:test_support",
[email protected]4eebe74d2014-08-13 02:54:46229 "//third_party/icu",
[email protected]6b9028ab2014-07-23 17:15:38230 "//ui/base",
spang1c36fac2015-02-05 19:55:12231 "//ui/base/ime",
[email protected]6b9028ab2014-07-23 17:15:38232 "//ui/events:events_base",
233 "//ui/gfx",
234 "//ui/gfx/geometry",
235 "//ui/gfx/ipc",
236 "//ui/gl",
237 "//url",
238 "//v8",
scottmg7afc4092014-12-03 19:22:42239
[email protected]6b9028ab2014-07-23 17:15:38240 #'copy_test_netscape_plugin', TODO(GYP)
[email protected]6b9028ab2014-07-23 17:15:38241 ]
jamesr50081742014-09-09 07:52:22242 if (enable_plugins) {
dcheng0d93c1a2015-12-03 02:46:41243 deps += [
244 "//content/ppapi_plugin",
245 "//ppapi:blink_test_plugin",
246 ]
jamesr50081742014-09-09 07:52:22247 }
[email protected]6b9028ab2014-07-23 17:15:38248
249 if (is_win) {
[email protected]6b9028ab2014-07-23 17:15:38250 #'LinkIncremental': '<(msvs_large_module_debug_link_mode)', TODO(GYP)
vchigrin61944ae2015-01-30 23:51:32251 sources += [
252 "common/v8_breakpad_support_win.cc",
253 "common/v8_breakpad_support_win.h",
254 ]
[email protected]6b9028ab2014-07-23 17:15:38255 }
256
257 if (is_linux) {
slan17e5ce7f2015-09-25 00:04:45258 deps += [ "//build/linux:fontconfig" ]
[email protected]6b9028ab2014-07-23 17:15:38259 }
260
261 if (use_x11) {
[email protected]c7990dbf2014-07-23 22:35:10262 # Some tests rely on this tool at runtime. Note: it might be better if
263 # the tests that needed it had this as a dep instead of adding it here.
sadrul1f7fa9f2015-10-06 17:14:57264 data_deps = [
265 "//tools/xdisplaycheck",
266 ]
dnicoara78a734702014-11-04 19:54:38267
268 deps += [ "//ui/events/devices" ]
[email protected]6b9028ab2014-07-23 17:15:38269 }
270
271 if (is_android) {
James Robinson060f2e32014-09-10 22:31:37272 deps += [ "//content/shell/android:content_shell_jni_headers" ]
cjhopmancd7694af2014-09-08 00:00:04273 #deps -= [ "copy_test_netscape_plugin" ] TODO(GYP)
[email protected]6b9028ab2014-07-23 17:15:38274 }
275
torne1b1c9782015-03-30 20:49:00276 if (is_posix && !is_mac) {
sdefresne8ba0b88c2015-09-18 10:33:13277 deps += [ "//components/crash/content/browser" ]
[email protected]6b9028ab2014-07-23 17:15:38278 }
279
280 if (use_aura) {
281 deps += [
282 "//ui/aura",
283 "//ui/aura:test_support",
284 "//ui/events",
285 "//ui/strings",
286 "//ui/wm",
287 ]
288
289 if (toolkit_views) {
290 sources += [ "browser/shell_views.cc" ]
291 deps += [
292 "//ui/resources",
[email protected]6b9028ab2014-07-23 17:15:38293 "//ui/views",
294 "//ui/views:test_support",
agrieved7a71c882015-11-20 19:53:28295 "//ui/views/controls/webview",
[email protected]6b9028ab2014-07-23 17:15:38296 ]
297 } else {
298 sources += [ "browser/shell_aura.cc" ]
299 }
James Robinson060f2e32014-09-10 22:31:37300 } else {
301 sources -= [
302 "browser/shell_platform_data_aura.cc",
303 "browser/shell_platform_data_aura.h",
304 ]
[email protected]6b9028ab2014-07-23 17:15:38305 }
306
307 # The test plugin relies on X11.
308 if (is_linux && !use_x11) {
309 #deps -= [ 'copy_test_netscape_plugin' ] TODO(GYP)
310 }
311
312 if (is_chromeos) {
313 deps += [
mukai6ba73552014-10-09 19:05:17314 "//chromeos",
[email protected]6b9028ab2014-07-23 17:15:38315 "//ui/wm:test_support",
[email protected]6b9028ab2014-07-23 17:15:38316 ]
317 }
318
slan77bdc2e62015-09-21 17:56:26319 if (is_linux && !is_chromecast) {
[email protected]6b9028ab2014-07-23 17:15:38320 deps += [ "//third_party/freetype2" ]
321 }
322
323 if (!enable_plugins) {
324 sources -= [
325 "browser/shell_plugin_service_filter.cc",
326 "browser/shell_plugin_service_filter.h",
327 ]
328 }
329}
330
331grit("content_shell_resources_grit") {
brettw9af42622014-09-06 21:21:02332 visibility = [ ":*" ]
[email protected]6b9028ab2014-07-23 17:15:38333 source = "shell_resources.grd"
334 outputs = [
335 "grit/shell_resources.h",
336 "shell_resources.pak",
[email protected]6b9028ab2014-07-23 17:15:38337 ]
338}
339
340copy("copy_shell_resources") {
scottmg7afc4092014-12-03 19:22:42341 sources = [
342 "$target_gen_dir/shell_resources.pak",
343 ]
scottmg34fb7e52014-12-03 23:27:24344 outputs = [
345 "$root_out_dir/shell_resources.pak",
346 ]
[email protected]6b9028ab2014-07-23 17:15:38347
scottmg7afc4092014-12-03 19:22:42348 public_deps = [
349 ":content_shell_resources_grit",
350 ]
[email protected]6b9028ab2014-07-23 17:15:38351}
352
[email protected]6b9028ab2014-07-23 17:15:38353group("resources") {
Brett Wilsone53895272014-09-23 23:41:46354 public_deps = [
[email protected]6b9028ab2014-07-23 17:15:38355 ":copy_shell_resources",
356 ]
jochen73e711c2015-06-03 10:01:46357 deps = [
358 "//components/test_runner:resources",
359 ]
[email protected]6b9028ab2014-07-23 17:15:38360}
361
362repack("pak") {
363 sources = [
erga3c614c92015-04-03 17:47:51364 "$root_gen_dir/blink/public/resources/blink_image_resources_100_percent.pak",
365 "$root_gen_dir/blink/public/resources/blink_resources.pak",
[email protected]a9ca8d52014-08-22 10:21:08366 "$root_gen_dir/content/app/resources/content_resources_100_percent.pak",
[email protected]6586a2e32014-08-09 19:24:12367 "$root_gen_dir/content/app/strings/content_strings_en-US.pak",
[email protected]6b9028ab2014-07-23 17:15:38368 "$root_gen_dir/content/browser/tracing/tracing_resources.pak",
[email protected]6586a2e32014-08-09 19:24:12369 "$root_gen_dir/content/content_resources.pak",
[email protected]6b9028ab2014-07-23 17:15:38370 "$root_gen_dir/content/shell/shell_resources.pak",
371 "$root_gen_dir/net/net_resources.pak",
372 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak",
373 "$root_gen_dir/ui/resources/webui_resources.pak",
374 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak",
375 "$root_gen_dir/ui/strings/ui_strings_en-US.pak",
[email protected]6b9028ab2014-07-23 17:15:38376 ]
377
378 deps = [
379 ":resources",
380 "//content:resources",
[email protected]a9ca8d52014-08-22 10:21:08381 "//content/app/resources",
[email protected]6586a2e32014-08-09 19:24:12382 "//content/app/strings",
[email protected]6b9028ab2014-07-23 17:15:38383 "//content/browser/tracing:resources",
384 "//net:net_resources",
erga3c614c92015-04-03 17:47:51385 "//third_party/WebKit/public:image_resources",
[email protected]4eebe74d2014-08-13 02:54:46386 "//third_party/WebKit/public:resources",
[email protected]6b9028ab2014-07-23 17:15:38387 "//ui/resources",
388 "//ui/strings",
[email protected]6b9028ab2014-07-23 17:15:38389 ]
390
sadrul7bd20c92015-06-24 16:45:44391 if (toolkit_views) {
392 deps += [ "//ui/views/resources" ]
393 sources +=
394 [ "$root_gen_dir/ui/views/resources/views_resources_100_percent.pak" ]
395 }
396
vivek.vg77816a12014-12-18 14:28:20397 sources += [ "$root_gen_dir/blink/devtools_resources.pak" ]
cjhopman2fd48fd2014-09-24 00:52:56398 deps += [ "//content/browser/devtools:resources" ]
399 output = "$root_out_dir/content_shell.pak"
[email protected]6b9028ab2014-07-23 17:15:38400}
401
James Robinson060f2e32014-09-10 22:31:37402# TODO(GYP): Figure out what this should be on android
dpranke380390f2014-11-21 06:08:53403# and make linking this work on the Mac.
brettw4897a612015-03-02 23:13:15404if (!is_android && !is_mac) {
brettw2e2220c2015-07-21 18:56:35405 # TODO(brettw) when GYP is no longer necessary, delete
406 # content/shell/app/shell.exe.manifest. This file is not used in GN.
scottmg7afc4092014-12-03 19:22:42407 executable("content_shell") {
408 testonly = true
James Robinson060f2e32014-09-10 22:31:37409
scottmg7afc4092014-12-03 19:22:42410 # TODO(GYP) mac resource bundle stuff for this target.
411 # TODO(GYP) Windows content shell settings:
scottmg7afc4092014-12-03 19:22:42412 # - RC file.
413 # - 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
414 sources = [
scottmg7afc4092014-12-03 19:22:42415 "app/shell_main.cc",
416 ]
[email protected]6b9028ab2014-07-23 17:15:38417
skobes502412ae2016-01-19 17:40:43418 defines = []
419
scottmg7afc4092014-12-03 19:22:42420 deps = [
421 ":content_shell_lib",
422 ":pak",
423 "//base/allocator",
brettwba7a73d2015-08-31 22:17:39424 "//build/config/sanitizers:deps",
brettw2e2220c2015-07-21 18:56:35425 "//build/win:default_exe_manifest",
scottmg7afc4092014-12-03 19:22:42426 ]
[email protected]6b9028ab2014-07-23 17:15:38427
scottmg7afc4092014-12-03 19:22:42428 if (is_win) {
429 deps += [ "//sandbox" ]
skobes502412ae2016-01-19 17:40:43430 if (win_console_app) {
431 defines += [ "WIN_CONSOLE_APP" ]
432 } else {
433 # Set /SUBSYSTEM:WINDOWS unless a console build has been requested.
scottmg7afc4092014-12-03 19:22:42434 configs -= [ "//build/config/win:console" ]
435 configs += [ "//build/config/win:windowed" ]
436 }
437 }
438
439 if (is_mac) {
brettwe1d40652015-10-23 23:06:10440 # TODO(GYP) lots of stuff from GYP file here including helper_app and
441 # postbuilds.
442 output_name = content_shell_product_name
443 deps = [
444 ":framework",
445 ]
scottmg7afc4092014-12-03 19:22:42446 }
447
torne1b1c9782015-03-30 20:49:00448 if (is_android) {
scottmg7afc4092014-12-03 19:22:42449 # Some tests rely on this tool. It might be nicer if these tests relied on
450 # image diff rather than having content shell depend on it.
sadrul1f7fa9f2015-10-06 17:14:57451 data_deps = [
452 "//tools/imagediff($host_toolchain)",
453 ]
[email protected]6b9028ab2014-07-23 17:15:38454 }
455 }
brettw6aa189562015-02-02 05:34:22456} else {
457 group("content_shell") {
dpranked4063e42015-05-01 01:23:42458 testonly = true
459 deps = [
460 ":content_shell_lib",
461 ]
brettw6aa189562015-02-02 05:34:22462 }
James Robinson060f2e32014-09-10 22:31:37463}
tfarina10ae51f62015-05-13 03:35:57464
tfarina795e01a2015-05-15 19:29:57465if (is_win) {
466 # GYP version: content/content_shell_and_tests.gyp:content_shell_crash_service
brettw0d3b1df2015-12-03 00:10:01467 executable("content_shell_crash_service") {
tfarina795e01a2015-05-15 19:29:57468 sources = [
469 "tools/content_shell_crash_service.cc",
470 ]
471
472 deps = [
473 "//base",
brettwba7a73d2015-08-31 22:17:39474 "//build/config/sanitizers:deps",
sdefresne8ba0b88c2015-09-18 10:33:13475 "//components/crash/content/tools:crash_service",
tfarina795e01a2015-05-15 19:29:57476 ]
477
478 configs -= [ "//build/config/win:console" ]
479 configs += [ "//build/config/win:windowed" ]
480 }
481}
brettwe1d40652015-10-23 23:06:10482
483if (is_mac) {
484 # TODO(GYP) this should be a bundle. Lots of other stuff in this target.
485 # GYP version: content/content_shell.gypi:content_shell_framework
486 shared_library("framework") {
487 testonly = true
488
489 # TODO(GYP) bug 546894: Fix GN and toolchains to handle spaces here.
490 #output_name = "$content_shell_product_name Framework"
491 output_name = "content_shell_framework" # Temporary one with no spaces.
492
493 sources = [
tfarinac708f3972015-10-25 17:42:50494 "app/shell_content_main.cc",
495 "app/shell_content_main.h",
brettwe1d40652015-10-23 23:06:10496 ]
497
498 deps = [
499 ":content_shell_lib",
500 ]
501 }
502}