blob: b0f6e1bd6c2289f84a07ad300efafb2c64016512 [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")
6import("//build/config/ui.gni")
[email protected]6b9028ab2014-07-23 17:15:387import("//tools/grit/repack.gni")
cjhopmancd7694af2014-09-08 00:00:048import("//tools/grit/grit_rule.gni")
[email protected]6b9028ab2014-07-23 17:15:389if (is_android) {
10 import("//build/config/android/config.gni")
11}
12
13declare_args() {
14 content_shell_product_name = "Content Shell"
15
16 # The "19" is so that sites that sniff for version think that this is
17 # something reasonably current; the "77.34.5" is a hint that this isn't a
18 # standard Chrome.
19 content_shell_version = "19.77.34.5"
20}
21
22static_library("content_shell_lib") {
Brett Wilson8f80ad0b2014-09-08 19:50:2423 testonly = true
[email protected]6b9028ab2014-07-23 17:15:3824 sources = [
25 "android/shell_jni_registrar.cc",
26 "android/shell_jni_registrar.h",
27 "android/shell_manager.cc",
28 "android/shell_manager.h",
tfarina4d06f572014-10-17 03:36:4829 "app/blink_test_platform_support.h",
30 "app/blink_test_platform_support_android.cc",
31 "app/blink_test_platform_support_linux.cc",
32 "app/blink_test_platform_support_mac.mm",
33 "app/blink_test_platform_support_win.cc",
[email protected]6b9028ab2014-07-23 17:15:3834 "app/paths_mac.h",
35 "app/paths_mac.mm",
rseseka0a7a042014-09-18 23:59:2036 "app/shell_crash_reporter_client.cc",
37 "app/shell_crash_reporter_client.h",
[email protected]6b9028ab2014-07-23 17:15:3838 "app/shell_main_delegate.cc",
39 "app/shell_main_delegate.h",
40 "app/shell_main_delegate_mac.h",
41 "app/shell_main_delegate_mac.mm",
[email protected]9cd36bfb2014-08-20 00:32:0042 "browser/ipc_echo_message_filter.cc",
43 "browser/ipc_echo_message_filter.h",
mkwstd6805d0d2014-10-16 14:44:3744 "browser/layout_test/layout_test_android.cc",
45 "browser/layout_test/layout_test_android.h",
mkwstd993d06a2014-10-10 11:44:3846 "browser/layout_test/layout_test_browser_context.cc",
47 "browser/layout_test/layout_test_browser_context.h",
mkwst88e23182014-10-16 12:08:5848 "browser/layout_test/layout_test_browser_main.cc",
49 "browser/layout_test/layout_test_browser_main.h",
mkwst36b11b6f2014-10-15 16:18:5650 "browser/layout_test/layout_test_browser_main_parts.cc",
51 "browser/layout_test/layout_test_browser_main_parts.h",
petercd7abb42014-10-17 13:34:0152 "browser/layout_test/layout_test_content_browser_client.cc",
53 "browser/layout_test/layout_test_content_browser_client.h",
mkwst30d20d52014-10-09 13:33:1454 "browser/layout_test/layout_test_devtools_frontend.cc",
55 "browser/layout_test/layout_test_devtools_frontend.h",
mkwst94388f792014-10-16 07:36:5256 "browser/layout_test/layout_test_download_manager_delegate.cc",
57 "browser/layout_test/layout_test_download_manager_delegate.h",
mkwst6efe7f2e62014-10-08 15:09:0158 "browser/layout_test/layout_test_javascript_dialog_manager.cc",
59 "browser/layout_test/layout_test_javascript_dialog_manager.h",
Peter Beverlooe8f2f9d2014-10-20 16:47:4960 "browser/layout_test/layout_test_message_filter.cc",
61 "browser/layout_test/layout_test_message_filter.h",
petercd7abb42014-10-17 13:34:0162 "browser/layout_test/layout_test_notification_manager.cc",
63 "browser/layout_test/layout_test_notification_manager.h",
mvanouwerkerkde895c9c2014-12-06 12:17:3264 "browser/layout_test/layout_test_push_messaging_service.cc",
65 "browser/layout_test/layout_test_push_messaging_service.h",
mkwst002d02902014-10-09 10:17:0066 "browser/layout_test/layout_test_resource_dispatcher_host_delegate.cc",
67 "browser/layout_test/layout_test_resource_dispatcher_host_delegate.h",
mkwst94388f792014-10-16 07:36:5268 "browser/layout_test/layout_test_url_request_context_getter.cc",
69 "browser/layout_test/layout_test_url_request_context_getter.h",
[email protected]6b9028ab2014-07-23 17:15:3870 "browser/notify_done_forwarder.cc",
71 "browser/notify_done_forwarder.h",
peter11d5f562014-10-23 23:12:2572 "browser/shell.cc",
73 "browser/shell.h",
74 "browser/shell_access_token_store.cc",
75 "browser/shell_access_token_store.h",
[email protected]6b9028ab2014-07-23 17:15:3876 "browser/shell_android.cc",
77 "browser/shell_application_mac.h",
78 "browser/shell_application_mac.mm",
79 "browser/shell_browser_context.cc",
80 "browser/shell_browser_context.h",
81 "browser/shell_browser_main.cc",
82 "browser/shell_browser_main.h",
83 "browser/shell_browser_main_parts.cc",
84 "browser/shell_browser_main_parts.h",
85 "browser/shell_browser_main_parts_mac.mm",
[email protected]6b9028ab2014-07-23 17:15:3886 "browser/shell_content_browser_client.cc",
87 "browser/shell_content_browser_client.h",
[email protected]6b9028ab2014-07-23 17:15:3888 "browser/shell_devtools_frontend.cc",
89 "browser/shell_devtools_frontend.h",
satorux7fa9d302015-02-16 00:44:5290 "browser/shell_devtools_manager_delegate.cc",
91 "browser/shell_devtools_manager_delegate.h",
[email protected]6b9028ab2014-07-23 17:15:3892 "browser/shell_download_manager_delegate.cc",
93 "browser/shell_download_manager_delegate.h",
[email protected]6b9028ab2014-07-23 17:15:3894 "browser/shell_javascript_dialog.h",
95 "browser/shell_javascript_dialog_mac.mm",
96 "browser/shell_javascript_dialog_manager.cc",
97 "browser/shell_javascript_dialog_manager.h",
98 "browser/shell_javascript_dialog_win.cc",
[email protected]6b9028ab2014-07-23 17:15:3899 "browser/shell_login_dialog.cc",
100 "browser/shell_login_dialog.h",
101 "browser/shell_login_dialog_mac.mm",
102 "browser/shell_mac.mm",
satorux7fa9d302015-02-16 00:44:52103 "browser/shell_mojo_test_utils_android.cc",
104 "browser/shell_mojo_test_utils_android.h",
[email protected]6b9028ab2014-07-23 17:15:38105 "browser/shell_net_log.cc",
106 "browser/shell_net_log.h",
107 "browser/shell_network_delegate.cc",
108 "browser/shell_network_delegate.h",
109 "browser/shell_platform_data_aura.cc",
110 "browser/shell_platform_data_aura.h",
111 "browser/shell_plugin_service_filter.cc",
112 "browser/shell_plugin_service_filter.h",
113 "browser/shell_quota_permission_context.cc",
114 "browser/shell_quota_permission_context.h",
115 "browser/shell_resource_dispatcher_host_delegate.cc",
116 "browser/shell_resource_dispatcher_host_delegate.h",
117 "browser/shell_speech_recognition_manager_delegate.cc",
118 "browser/shell_speech_recognition_manager_delegate.h",
119 "browser/shell_url_request_context_getter.cc",
120 "browser/shell_url_request_context_getter.h",
satorux7fa9d302015-02-16 00:44:52121 "browser/shell_web_contents_view_delegate.h",
[email protected]6b9028ab2014-07-23 17:15:38122 "browser/shell_web_contents_view_delegate_android.cc",
123 "browser/shell_web_contents_view_delegate_creator.h",
[email protected]6b9028ab2014-07-23 17:15:38124 "browser/shell_web_contents_view_delegate_mac.mm",
125 "browser/shell_web_contents_view_delegate_win.cc",
126 "browser/webkit_test_controller.cc",
127 "browser/webkit_test_controller.h",
petere04203592014-10-27 17:57:35128 "common/layout_test/layout_test_messages.cc",
129 "common/layout_test/layout_test_messages.h",
[email protected]6b9028ab2014-07-23 17:15:38130 "common/leak_detection_result.h",
131 "common/shell_content_client.cc",
132 "common/shell_content_client.h",
133 "common/shell_messages.cc",
134 "common/shell_messages.h",
135 "common/shell_switches.cc",
136 "common/shell_switches.h",
137 "common/shell_test_configuration.cc",
138 "common/shell_test_configuration.h",
139 "common/test_runner/test_preferences.cc",
140 "common/test_runner/test_preferences.h",
141 "common/webkit_test_helpers.cc",
142 "common/webkit_test_helpers.h",
[email protected]9cd36bfb2014-08-20 00:32:00143 "renderer/ipc_echo.cc",
144 "renderer/ipc_echo.h",
mkwst04b72d12014-10-08 15:52:55145 "renderer/layout_test/gc_controller.cc",
146 "renderer/layout_test/gc_controller.h",
mkwst02ec0d62014-10-07 22:07:29147 "renderer/layout_test/layout_test_content_renderer_client.cc",
148 "renderer/layout_test/layout_test_content_renderer_client.h",
mkwst3e72c1f2014-10-08 05:02:36149 "renderer/layout_test/layout_test_render_frame_observer.cc",
150 "renderer/layout_test/layout_test_render_frame_observer.h",
mkwst99069fc2014-10-08 06:13:28151 "renderer/layout_test/layout_test_render_process_observer.cc",
152 "renderer/layout_test/layout_test_render_process_observer.h",
mkwst04b72d12014-10-08 15:52:55153 "renderer/layout_test/leak_detector.cc",
154 "renderer/layout_test/leak_detector.h",
155 "renderer/layout_test/webkit_test_runner.cc",
156 "renderer/layout_test/webkit_test_runner.h",
[email protected]6b9028ab2014-07-23 17:15:38157 "renderer/shell_content_renderer_client.cc",
158 "renderer/shell_content_renderer_client.h",
[email protected]6b9028ab2014-07-23 17:15:38159 "renderer/shell_render_view_observer.cc",
160 "renderer/shell_render_view_observer.h",
[email protected]6b9028ab2014-07-23 17:15:38161 "renderer/test_runner/accessibility_controller.cc",
162 "renderer/test_runner/accessibility_controller.h",
163 "renderer/test_runner/event_sender.cc",
164 "renderer/test_runner/event_sender.h",
165 "renderer/test_runner/gamepad_controller.cc",
166 "renderer/test_runner/gamepad_controller.h",
[email protected]0e043592014-07-28 19:47:04167 "renderer/test_runner/mock_color_chooser.cc",
168 "renderer/test_runner/mock_color_chooser.h",
[email protected]6b9028ab2014-07-23 17:15:38169 "renderer/test_runner/mock_constraints.cc",
170 "renderer/test_runner/mock_constraints.h",
mkwst41667ab2014-09-16 06:52:43171 "renderer/test_runner/mock_credential_manager_client.cc",
172 "renderer/test_runner/mock_credential_manager_client.h",
[email protected]6b9028ab2014-07-23 17:15:38173 "renderer/test_runner/mock_grammar_check.cc",
174 "renderer/test_runner/mock_grammar_check.h",
avayvod57b3af22015-02-13 10:08:26175 "renderer/test_runner/mock_presentation_client.cc",
176 "renderer/test_runner/mock_presentation_client.h",
177 "renderer/test_runner/mock_presentation_service.cc",
178 "renderer/test_runner/mock_presentation_service.h",
[email protected]6b9028ab2014-07-23 17:15:38179 "renderer/test_runner/mock_screen_orientation_client.cc",
180 "renderer/test_runner/mock_screen_orientation_client.h",
[email protected]f656a652014-07-25 12:19:52181 "renderer/test_runner/mock_spell_check.cc",
182 "renderer/test_runner/mock_spell_check.h",
[email protected]6b9028ab2014-07-23 17:15:38183 "renderer/test_runner/mock_web_audio_device.cc",
184 "renderer/test_runner/mock_web_audio_device.h",
[email protected]85afb6c2014-07-29 02:43:36185 "renderer/test_runner/mock_web_media_stream_center.cc",
186 "renderer/test_runner/mock_web_media_stream_center.h",
[email protected]6b950c32014-07-28 14:35:43187 "renderer/test_runner/mock_web_midi_accessor.cc",
188 "renderer/test_runner/mock_web_midi_accessor.h",
[email protected]ca35ef02014-07-31 11:46:49189 "renderer/test_runner/mock_web_speech_recognizer.cc",
190 "renderer/test_runner/mock_web_speech_recognizer.h",
[email protected]6b9028ab2014-07-23 17:15:38191 "renderer/test_runner/mock_web_theme_engine.cc",
192 "renderer/test_runner/mock_web_theme_engine.h",
193 "renderer/test_runner/mock_web_user_media_client.cc",
194 "renderer/test_runner/mock_web_user_media_client.h",
195 "renderer/test_runner/mock_webrtc_data_channel_handler.cc",
196 "renderer/test_runner/mock_webrtc_data_channel_handler.h",
197 "renderer/test_runner/mock_webrtc_dtmf_sender_handler.cc",
198 "renderer/test_runner/mock_webrtc_dtmf_sender_handler.h",
199 "renderer/test_runner/mock_webrtc_peer_connection_handler.cc",
200 "renderer/test_runner/mock_webrtc_peer_connection_handler.h",
[email protected]b38c8f312014-08-01 23:21:37201 "renderer/test_runner/spell_check_client.cc",
202 "renderer/test_runner/spell_check_client.h",
[email protected]f5b1ad882014-08-05 16:30:41203 "renderer/test_runner/test_common.cc",
204 "renderer/test_runner/test_common.h",
[email protected]8ed8bf432014-08-11 19:47:55205 "renderer/test_runner/test_interfaces.cc",
206 "renderer/test_runner/test_interfaces.h",
abhishek.a21dd9554f2014-09-03 17:19:12207 "renderer/test_runner/test_plugin.cc",
208 "renderer/test_runner/test_plugin.h",
[email protected]6b9028ab2014-07-23 17:15:38209 "renderer/test_runner/test_runner.cc",
210 "renderer/test_runner/test_runner.h",
211 "renderer/test_runner/text_input_controller.cc",
212 "renderer/test_runner/text_input_controller.h",
213 "renderer/test_runner/web_ax_object_proxy.cc",
214 "renderer/test_runner/web_ax_object_proxy.h",
215 "renderer/test_runner/web_frame_test_proxy.h",
216 "renderer/test_runner/web_permissions.cc",
217 "renderer/test_runner/web_permissions.h",
abhishek.a21ab71acb2014-09-12 16:46:31218 "renderer/test_runner/web_task.cc",
219 "renderer/test_runner/web_task.h",
abhishek.a21ca9b5602014-09-19 07:33:33220 "renderer/test_runner/web_test_delegate.h",
abhishek.a21bdd07a82014-09-25 06:34:10221 "renderer/test_runner/web_test_interfaces.cc",
222 "renderer/test_runner/web_test_interfaces.h",
[email protected]6b9028ab2014-07-23 17:15:38223 "renderer/test_runner/web_test_proxy.cc",
224 "renderer/test_runner/web_test_proxy.h",
225 "renderer/test_runner/web_test_runner.h",
[email protected]6b9028ab2014-07-23 17:15:38226 ]
227
brettwd1c719a2015-02-19 23:17:04228 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
229 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
230
[email protected]6b9028ab2014-07-23 17:15:38231 defines = [ "CONTENT_SHELL_VERSION=\"$content_shell_version\"" ]
232
Brett Wilson0380637c2014-09-19 21:24:40233 public_deps = [
234 # This exposes all public content APIs.
235 "//content/public/app:both",
236 "//content/public/browser",
237 "//content/public/common",
238 "//content/public/plugin",
239 "//content/public/renderer",
240 "//content/public/utility",
241 ]
[email protected]6b9028ab2014-07-23 17:15:38242 deps = [
243 ":resources",
244 "//base",
245 "//base:base_static",
246 "//base/allocator",
247 "//base/third_party/dynamic_annotations",
248 "//cc",
Robert Sesekabcd8102014-08-27 16:12:44249 "//components/crash/app",
hanxi149b92d2014-09-11 21:57:18250 "//components/web_cache/renderer",
[email protected]6b9028ab2014-07-23 17:15:38251 "//content:resources",
[email protected]a9ca8d52014-08-22 10:21:08252 "//content/app/resources",
[email protected]6586a2e32014-08-09 19:24:12253 "//content/app/strings",
[email protected]6b9028ab2014-07-23 17:15:38254 "//content/gpu",
[email protected]6b9028ab2014-07-23 17:15:38255 "//content/test:layouttest_support",
256 "//gin",
257 "//gpu",
258 "//ipc",
259 "//media",
260 "//net",
261 "//net:net_resources",
262 "//skia",
pilgrim4af8c212014-09-05 17:30:15263 "//storage/browser",
[email protected]6b9028ab2014-07-23 17:15:38264 "//third_party/WebKit/public:blink",
[email protected]4eebe74d2014-08-13 02:54:46265 "//third_party/WebKit/public:resources",
[email protected]0e043592014-07-28 19:47:04266 "//third_party/WebKit/public:test_support",
[email protected]4eebe74d2014-08-13 02:54:46267 "//third_party/icu",
[email protected]6b9028ab2014-07-23 17:15:38268 "//ui/base",
spang1c36fac2015-02-05 19:55:12269 "//ui/base/ime",
[email protected]6b9028ab2014-07-23 17:15:38270 "//ui/events:events_base",
271 "//ui/gfx",
272 "//ui/gfx/geometry",
273 "//ui/gfx/ipc",
274 "//ui/gl",
275 "//url",
276 "//v8",
scottmg7afc4092014-12-03 19:22:42277
[email protected]6b9028ab2014-07-23 17:15:38278 #'copy_test_netscape_plugin', TODO(GYP)
[email protected]6b9028ab2014-07-23 17:15:38279 ]
jamesr50081742014-09-09 07:52:22280 if (enable_plugins) {
281 deps += [ "//content/ppapi_plugin" ]
282 }
[email protected]6b9028ab2014-07-23 17:15:38283
284 if (is_win) {
[email protected]6b9028ab2014-07-23 17:15:38285 #'LinkIncremental': '<(msvs_large_module_debug_link_mode)', TODO(GYP)
vchigrin61944ae2015-01-30 23:51:32286 sources += [
287 "common/v8_breakpad_support_win.cc",
288 "common/v8_breakpad_support_win.h",
289 ]
[email protected]6b9028ab2014-07-23 17:15:38290 }
291
292 if (is_linux) {
293 configs += [ "//build/config/linux:fontconfig" ]
294 }
295
296 if (use_x11) {
[email protected]c7990dbf2014-07-23 22:35:10297 # Some tests rely on this tool at runtime. Note: it might be better if
298 # the tests that needed it had this as a dep instead of adding it here.
scottmg7afc4092014-12-03 19:22:42299 datadeps = [
300 "//tools/xdisplaycheck",
301 ]
dnicoara78a734702014-11-04 19:54:38302
303 deps += [ "//ui/events/devices" ]
[email protected]6b9028ab2014-07-23 17:15:38304 }
305
306 if (is_android) {
James Robinson060f2e32014-09-10 22:31:37307 deps += [ "//content/shell/android:content_shell_jni_headers" ]
cjhopmancd7694af2014-09-08 00:00:04308 #deps -= [ "copy_test_netscape_plugin" ] TODO(GYP)
[email protected]6b9028ab2014-07-23 17:15:38309 }
310
311 if (is_posix && !is_mac && (!is_android || !is_android_webview_build)) {
Robert Sesekabcd8102014-08-27 16:12:44312 deps += [ "//components/crash/browser" ]
[email protected]6b9028ab2014-07-23 17:15:38313 }
314
315 if (use_aura) {
316 deps += [
317 "//ui/aura",
318 "//ui/aura:test_support",
319 "//ui/events",
320 "//ui/strings",
321 "//ui/wm",
322 ]
323
324 if (toolkit_views) {
325 sources += [ "browser/shell_views.cc" ]
326 deps += [
327 "//ui/resources",
328 "//ui/views/controls/webview",
329 "//ui/views",
330 "//ui/views:test_support",
331 ]
332 } else {
333 sources += [ "browser/shell_aura.cc" ]
334 }
James Robinson060f2e32014-09-10 22:31:37335 } else {
336 sources -= [
337 "browser/shell_platform_data_aura.cc",
338 "browser/shell_platform_data_aura.h",
339 ]
[email protected]6b9028ab2014-07-23 17:15:38340 }
341
342 # The test plugin relies on X11.
343 if (is_linux && !use_x11) {
344 #deps -= [ 'copy_test_netscape_plugin' ] TODO(GYP)
345 }
346
347 if (is_chromeos) {
348 deps += [
mukai6ba73552014-10-09 19:05:17349 "//chromeos",
[email protected]6b9028ab2014-07-23 17:15:38350 "//ui/wm:test_support",
[email protected]6b9028ab2014-07-23 17:15:38351 ]
352 }
353
354 if (is_linux) {
355 deps += [ "//third_party/freetype2" ]
356 }
357
358 if (!enable_plugins) {
359 sources -= [
360 "browser/shell_plugin_service_filter.cc",
361 "browser/shell_plugin_service_filter.h",
362 ]
363 }
364}
365
366grit("content_shell_resources_grit") {
brettw9af42622014-09-06 21:21:02367 visibility = [ ":*" ]
[email protected]6b9028ab2014-07-23 17:15:38368 source = "shell_resources.grd"
369 outputs = [
370 "grit/shell_resources.h",
371 "shell_resources.pak",
372 "shell_resources.rc",
373 ]
374}
375
376copy("copy_shell_resources") {
scottmg7afc4092014-12-03 19:22:42377 sources = [
378 "$target_gen_dir/shell_resources.pak",
379 ]
scottmg34fb7e52014-12-03 23:27:24380 outputs = [
381 "$root_out_dir/shell_resources.pak",
382 ]
[email protected]6b9028ab2014-07-23 17:15:38383
scottmg7afc4092014-12-03 19:22:42384 public_deps = [
385 ":content_shell_resources_grit",
386 ]
[email protected]6b9028ab2014-07-23 17:15:38387}
388
389# Font copies.
390if (!is_mac) {
391 copy("copy_ahem") {
brettw9af42622014-09-06 21:21:02392 visibility = [ ":*" ]
scottmg7afc4092014-12-03 19:22:42393 sources = [
394 "renderer/test_runner/resources/fonts/AHEM____.TTF",
395 ]
scottmg34fb7e52014-12-03 23:27:24396 outputs = [
397 "$root_out_dir/AHEM____.TTF",
398 ]
[email protected]6b9028ab2014-07-23 17:15:38399 }
400}
401if (use_x11) {
402 copy("copy_x11_fonts") {
brettw9af42622014-09-06 21:21:02403 visibility = [ ":*" ]
[email protected]6b9028ab2014-07-23 17:15:38404 sources = [
405 "renderer/test_runner/resources/fonts/fonts.conf",
406 "//third_party/gardiner_mod/GardinerModBug.ttf",
407 "//third_party/gardiner_mod/GardinerModCat.ttf",
408 ]
scottmg34fb7e52014-12-03 23:27:24409 outputs = [
410 "$root_out_dir/{{source_file_part}}",
411 ]
[email protected]6b9028ab2014-07-23 17:15:38412 }
413}
414if (is_android) {
415 copy("copy_android_fonts") {
brettw9af42622014-09-06 21:21:02416 visibility = [ ":*" ]
[email protected]6b9028ab2014-07-23 17:15:38417 sources = [
418 "renderer/test_runner/resources/fonts/android_main_fonts.xml",
419 "renderer/test_runner/resources/fonts/android_fallback_fonts.xml",
420 ]
scottmg34fb7e52014-12-03 23:27:24421 outputs = [
422 "$root_out_dir/{{source_file_part}}",
423 ]
[email protected]6b9028ab2014-07-23 17:15:38424 }
425}
426
427group("resources") {
Brett Wilsone53895272014-09-23 23:41:46428 public_deps = [
[email protected]6b9028ab2014-07-23 17:15:38429 ":copy_shell_resources",
430 ]
Brett Wilsone53895272014-09-23 23:41:46431 deps = []
[email protected]6b9028ab2014-07-23 17:15:38432
433 if (is_mac) {
434 # TODO(GYP) Mac bundle resources.
435 #'all_dependent_settings': {
436 # 'mac_bundle_resources': [
437 # 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
438 # 'shell/renderer/test_runner/resources/fonts/ChromiumAATTest.ttf',
439 # '<(SHARED_INTERMEDIATE_DIR)/webkit/missingImage.png',
440 # '<(SHARED_INTERMEDIATE_DIR)/webkit/textAreaResizeCorner.png',
441 # ],
442 #},
443 } else {
444 deps += [ ":copy_ahem" ]
445 }
446
447 if (use_x11) {
448 deps += [ ":copy_x11_fonts" ]
449 }
450 if (is_android) {
451 deps += [ ":copy_android_fonts" ]
452 }
453}
454
455repack("pak") {
456 sources = [
[email protected]48885492014-08-13 11:22:41457 "$root_gen_dir/blink/public/resources/blink_resources.pak",
[email protected]a9ca8d52014-08-22 10:21:08458 "$root_gen_dir/content/app/resources/content_resources_100_percent.pak",
[email protected]6586a2e32014-08-09 19:24:12459 "$root_gen_dir/content/app/strings/content_strings_en-US.pak",
[email protected]6b9028ab2014-07-23 17:15:38460 "$root_gen_dir/content/browser/tracing/tracing_resources.pak",
[email protected]6586a2e32014-08-09 19:24:12461 "$root_gen_dir/content/content_resources.pak",
[email protected]6b9028ab2014-07-23 17:15:38462 "$root_gen_dir/content/shell/shell_resources.pak",
463 "$root_gen_dir/net/net_resources.pak",
464 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak",
465 "$root_gen_dir/ui/resources/webui_resources.pak",
466 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak",
467 "$root_gen_dir/ui/strings/ui_strings_en-US.pak",
[email protected]6b9028ab2014-07-23 17:15:38468 ]
469
470 deps = [
471 ":resources",
472 "//content:resources",
[email protected]a9ca8d52014-08-22 10:21:08473 "//content/app/resources",
[email protected]6586a2e32014-08-09 19:24:12474 "//content/app/strings",
[email protected]6b9028ab2014-07-23 17:15:38475 "//content/browser/tracing:resources",
476 "//net:net_resources",
[email protected]4eebe74d2014-08-13 02:54:46477 "//third_party/WebKit/public:resources",
[email protected]6b9028ab2014-07-23 17:15:38478 "//ui/resources",
479 "//ui/strings",
[email protected]6b9028ab2014-07-23 17:15:38480 ]
481
vivek.vg77816a12014-12-18 14:28:20482 sources += [ "$root_gen_dir/blink/devtools_resources.pak" ]
cjhopman2fd48fd2014-09-24 00:52:56483 deps += [ "//content/browser/devtools:resources" ]
484 output = "$root_out_dir/content_shell.pak"
[email protected]6b9028ab2014-07-23 17:15:38485}
486
James Robinson060f2e32014-09-10 22:31:37487# TODO(GYP): Figure out what this should be on android
dpranke380390f2014-11-21 06:08:53488# and make linking this work on the Mac.
brettw6aa189562015-02-02 05:34:22489if (!is_android && !is_mac && (!is_win || link_chrome_on_windows)) {
scottmg7afc4092014-12-03 19:22:42490 executable("content_shell") {
491 testonly = true
James Robinson060f2e32014-09-10 22:31:37492
scottmg7afc4092014-12-03 19:22:42493 # TODO(GYP) mac resource bundle stuff for this target.
494 # TODO(GYP) Windows content shell settings:
495 # - Manifest.
496 # - RC file.
497 # - 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
498 sources = [
scottmg7afc4092014-12-03 19:22:42499 "app/shell_main.cc",
500 ]
[email protected]6b9028ab2014-07-23 17:15:38501
scottmg7afc4092014-12-03 19:22:42502 deps = [
503 ":content_shell_lib",
504 ":pak",
505 "//base/allocator",
506 ]
[email protected]6b9028ab2014-07-23 17:15:38507
scottmg7afc4092014-12-03 19:22:42508 if (is_win) {
509 deps += [ "//sandbox" ]
510 if (!is_asan) {
511 configs -= [ "//build/config/win:console" ]
512 configs += [ "//build/config/win:windowed" ]
513 }
514 }
515
516 if (is_mac) {
517 # TODO(GYP) lots of stuff from GYP file here.
518 }
519
520 if (is_android && !is_android_webview_build) {
521 # Some tests rely on this tool. It might be nicer if these tests relied on
522 # image diff rather than having content shell depend on it.
523 datadeps = [
524 "//tools/imagediff($host_toolchain)",
525 ]
[email protected]6b9028ab2014-07-23 17:15:38526 }
527 }
brettw6aa189562015-02-02 05:34:22528} else {
529 group("content_shell") {
530 }
James Robinson060f2e32014-09-10 22:31:37531}