blob: a33508b2997a44ec35a814d7cc37bf810ad205ae [file] [log] [blame]
[email protected]81f30ce2012-01-18 22:10:331# Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]5629e0c2011-09-12 22:07:362# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5{
[email protected]85ff16042012-03-06 23:46:346 'variables': {
7 'content_shell_product_name': 'Content Shell',
8 },
[email protected]5629e0c2011-09-12 22:07:369 'targets': [
10 {
[email protected]c1f87b22011-10-05 21:59:3311 'target_name': 'content_shell_lib',
12 'type': 'static_library',
[email protected]03ff5e52011-09-30 00:28:1413 'defines!': ['CONTENT_IMPLEMENTATION'],
[email protected]9fbd3f862011-09-20 23:31:3414 'variables': {
15 'chromium_code': 1,
16 },
[email protected]5629e0c2011-09-12 22:07:3617 'dependencies': [
18 'content_app',
19 'content_browser',
20 'content_common',
21 'content_gpu',
22 'content_plugin',
23 'content_ppapi_plugin',
24 'content_renderer',
[email protected]ee75b8992012-01-27 07:53:5725 'content_shell_resources',
[email protected]5629e0c2011-09-12 22:07:3626 'content_utility',
27 'content_worker',
[email protected]0faa0a2b2011-11-15 18:03:1428 'content_resources.gyp:content_resources',
[email protected]aa6e79762011-09-29 20:53:5229 '../base/base.gyp:base',
30 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
31 '../build/temp_gyp/googleurl.gyp:googleurl',
32 '../ipc/ipc.gyp:ipc',
[email protected]433df472012-03-07 20:33:3933 '../media/media.gyp:media',
[email protected]aa6e79762011-09-29 20:53:5234 '../net/net.gyp:net',
[email protected]5629e0c2011-09-12 22:07:3635 '../skia/skia.gyp:skia',
[email protected]97efb8e2011-10-04 17:16:1636 '../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit',
[email protected]5629e0c2011-09-12 22:07:3637 '../ui/ui.gyp:ui',
[email protected]12bc28fcb2011-09-21 15:53:5038 '../v8/tools/gyp/v8.gyp:v8',
[email protected]aa6e79762011-09-29 20:53:5239 '../webkit/support/webkit_support.gyp:appcache',
40 '../webkit/support/webkit_support.gyp:database',
41 '../webkit/support/webkit_support.gyp:fileapi',
42 '../webkit/support/webkit_support.gyp:glue',
43 '../webkit/support/webkit_support.gyp:quota',
[email protected]5629e0c2011-09-12 22:07:3644 ],
45 'include_dirs': [
46 '..',
47 ],
48 'sources': [
[email protected]74830f02012-01-30 22:27:0449 'shell/layout_test_controller_bindings.cc',
50 'shell/layout_test_controller_bindings.h',
[email protected]e1aff172012-03-22 22:41:1751 'shell/paths_mac.h',
52 'shell/paths_mac.mm',
[email protected]9fbd3f862011-09-20 23:31:3453 'shell/shell.cc',
54 'shell/shell.h',
[email protected]a08029b42012-04-25 03:18:4655 'shell/shell_android.cc',
[email protected]fa4a45832012-04-12 21:32:4856 'shell/shell_aura.cc',
[email protected]9fbd3f862011-09-20 23:31:3457 'shell/shell_gtk.cc',
58 'shell/shell_mac.mm',
59 'shell/shell_win.cc',
[email protected]c4e78d72012-03-24 22:55:4160 'shell/shell_application_mac.h',
61 'shell/shell_application_mac.mm',
[email protected]b0f146f2011-09-15 22:14:2562 'shell/shell_browser_context.cc',
63 'shell/shell_browser_context.h',
[email protected]5629e0c2011-09-12 22:07:3664 'shell/shell_browser_main.cc',
65 'shell/shell_browser_main.h',
[email protected]147f8092012-03-21 11:47:4566 'shell/shell_browser_main_parts.cc',
67 'shell/shell_browser_main_parts.h',
68 'shell/shell_browser_main_parts_mac.mm',
[email protected]5629e0c2011-09-12 22:07:3669 'shell/shell_content_browser_client.cc',
70 'shell/shell_content_browser_client.h',
71 'shell/shell_content_client.cc',
72 'shell/shell_content_client.h',
73 'shell/shell_content_plugin_client.cc',
74 'shell/shell_content_plugin_client.h',
75 'shell/shell_content_renderer_client.cc',
76 'shell/shell_content_renderer_client.h',
77 'shell/shell_content_utility_client.cc',
78 'shell/shell_content_utility_client.h',
[email protected]ee75b8992012-01-27 07:53:5779 'shell/shell_devtools_delegate.cc',
80 'shell/shell_devtools_delegate.h',
[email protected]98d6f152011-09-29 19:35:5181 'shell/shell_download_manager_delegate.cc',
82 'shell/shell_download_manager_delegate.h',
[email protected]f2210022012-03-29 00:36:0883 'shell/shell_javascript_dialog_creator.cc',
84 'shell/shell_javascript_dialog_creator.h',
85 'shell/shell_javascript_dialog_mac.mm',
[email protected]7fc83822012-03-30 19:53:2986 'shell/shell_javascript_dialog_win.cc',
[email protected]f2210022012-03-29 00:36:0887 'shell/shell_javascript_dialog.h',
[email protected]e3503ac2012-04-05 15:01:3688 'shell/shell_login_dialog_mac.mm',
89 'shell/shell_login_dialog.cc',
90 'shell/shell_login_dialog.h',
[email protected]c1f87b22011-10-05 21:59:3391 'shell/shell_main_delegate.cc',
92 'shell/shell_main_delegate.h',
[email protected]efb5f572012-01-29 10:57:3393 'shell/shell_messages.cc',
94 'shell/shell_messages.h',
[email protected]33bc2832012-03-29 08:18:1795 'shell/shell_network_delegate.cc',
96 'shell/shell_network_delegate.h',
[email protected]74830f02012-01-30 22:27:0497 'shell/shell_render_process_observer.cc',
98 'shell/shell_render_process_observer.h',
[email protected]efb5f572012-01-29 10:57:3399 'shell/shell_render_view_host_observer.cc',
100 'shell/shell_render_view_host_observer.h',
[email protected]31d71b02012-01-26 03:42:31101 'shell/shell_render_view_observer.cc',
102 'shell/shell_render_view_observer.h',
[email protected]c5f1e332011-09-27 01:08:03103 'shell/shell_resource_context.cc',
104 'shell/shell_resource_context.h',
[email protected]e3503ac2012-04-05 15:01:36105 'shell/shell_resource_dispatcher_host_delegate.cc',
106 'shell/shell_resource_dispatcher_host_delegate.h',
[email protected]efb5f572012-01-29 10:57:33107 'shell/shell_switches.cc',
108 'shell/shell_switches.h',
[email protected]c5f1e332011-09-27 01:08:03109 'shell/shell_url_request_context_getter.cc',
110 'shell/shell_url_request_context_getter.h',
[email protected]5629e0c2011-09-12 22:07:36111 ],
112 'msvs_settings': {
113 'VCLinkerTool': {
114 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
115 },
116 },
117 'conditions': [
118 ['OS=="win" and win_use_allocator_shim==1', {
119 'dependencies': [
120 '../base/allocator/allocator.gyp:allocator',
121 ],
122 }],
[email protected]9fbd3f862011-09-20 23:31:34123 ['OS=="win"', {
124 'resource_include_dirs': [
125 '<(SHARED_INTERMEDIATE_DIR)/webkit',
126 ],
[email protected]9fbd3f862011-09-20 23:31:34127 'dependencies': [
[email protected]9fbd3f862011-09-20 23:31:34128 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_resources',
129 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_strings',
130 ],
131 'configurations': {
132 'Debug_Base': {
133 'msvs_settings': {
134 'VCLinkerTool': {
135 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
136 },
137 },
138 },
139 },
[email protected]85ff16042012-03-06 23:46:34140 }], # OS=="win"
[email protected]a08029b42012-04-25 03:18:46141 ['OS!="android"', {
142 'dependencies': [
143 # This dependency is for running DRT against the content shell, and
144 # this combination is not yet supported on Android.
145 '../webkit/support/webkit_support.gyp:webkit_support',
146 ],
147 }], # OS!="android"
[email protected]fa4a45832012-04-12 21:32:48148 ['use_aura==1', {
149 'sources/': [
150 ['exclude', 'shell/shell_gtk.cc'],
151 ['exclude', 'shell/shell_win.cc'],
152 ],
153 }],
[email protected]5629e0c2011-09-12 22:07:36154 ],
155 },
[email protected]c1f87b22011-10-05 21:59:33156 {
[email protected]ee75b8992012-01-27 07:53:57157 'target_name': 'content_shell_resources',
158 'type': 'none',
[email protected]b581eb402012-03-09 01:31:46159 'dependencies': [
160 'generate_content_shell_resources',
161 ],
162 'variables': {
163 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content',
164 },
165 'includes': [ '../build/grit_target.gypi' ],
166 'copies': [
167 {
168 'destination': '<(PRODUCT_DIR)',
169 'files': [
170 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak'
171 ],
172 },
173 ],
[email protected]4cb792f42012-03-24 03:12:42174 },
175 {
[email protected]b581eb402012-03-09 01:31:46176 'target_name': 'generate_content_shell_resources',
177 'type': 'none',
[email protected]ee75b8992012-01-27 07:53:57178 'variables': {
179 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content',
180 },
181 'actions': [
182 {
183 'action_name': 'content_shell_resources',
184 'variables': {
185 'grit_grd_file': 'shell/shell_resources.grd',
186 },
187 'includes': [ '../build/grit_action.gypi' ],
188 },
189 ],
[email protected]ee75b8992012-01-27 07:53:57190 },
191 {
[email protected]81f30ce2012-01-18 22:10:33192 # We build a minimal set of resources so WebKit in content_shell has
193 # access to necessary resources.
194 'target_name': 'content_shell_pak',
195 'type': 'none',
[email protected]ee75b8992012-01-27 07:53:57196 'dependencies': [
197 'browser/debugger/devtools_resources.gyp:devtools_resources',
198 'content_shell_resources',
[email protected]6c3e6492012-02-27 17:07:45199 '<(DEPTH)/net/net.gyp:net_resources',
200 '<(DEPTH)/ui/ui.gyp:ui_resources',
201 '<(DEPTH)/ui/ui.gyp:ui_resources_standard',
[email protected]ee75b8992012-01-27 07:53:57202 ],
[email protected]81f30ce2012-01-18 22:10:33203 'variables': {
204 'repack_path': '<(DEPTH)/tools/grit/grit/format/repack.py',
205 },
206 'actions': [
207 {
208 'action_name': 'repack_content_shell_pack',
209 'variables': {
210 'pak_inputs': [
211 '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
[email protected]ee75b8992012-01-27 07:53:57212 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak',
[email protected]81f30ce2012-01-18 22:10:33213 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
214 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources.pak',
215 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources_standard/ui_resources_standard.pak',
[email protected]ee75b8992012-01-27 07:53:57216 '<(SHARED_INTERMEDIATE_DIR)/webkit/devtools_resources.pak',
[email protected]81f30ce2012-01-18 22:10:33217 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.pak',
218 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.pak',
219 ],
220 'conditions': [
221 ['OS != "mac"', {
222 'pak_inputs': [
223 '<(SHARED_INTERMEDIATE_DIR)/ui/gfx/gfx_resources.pak',
224 ]
225 }],
226 ],
227 },
228 'inputs': [
229 '<(repack_path)',
230 '<@(pak_inputs)',
231 ],
[email protected]81f30ce2012-01-18 22:10:33232 'action': ['python', '<(repack_path)', '<@(_outputs)',
233 '<@(pak_inputs)'],
[email protected]a08029b42012-04-25 03:18:46234 'conditions': [
235 ['OS!="android"', {
236 'outputs': [
237 '<(PRODUCT_DIR)/content_shell.pak',
238 ],
239 }, {
240 'outputs': [
241 '<(PRODUCT_DIR)/content_shell/assets/content_shell.pak',
242 ],
243 }],
244 ],
[email protected]81f30ce2012-01-18 22:10:33245 },
246 ],
247 },
248 {
[email protected]c1f87b22011-10-05 21:59:33249 'target_name': 'content_shell',
250 'type': 'executable',
[email protected]85ff16042012-03-06 23:46:34251 'mac_bundle': 1,
[email protected]c1f87b22011-10-05 21:59:33252 'defines!': ['CONTENT_IMPLEMENTATION'],
253 'variables': {
254 'chromium_code': 1,
255 },
256 'dependencies': [
257 'content_shell_lib',
[email protected]81f30ce2012-01-18 22:10:33258 'content_shell_pak',
[email protected]c1f87b22011-10-05 21:59:33259 ],
260 'include_dirs': [
261 '..',
262 ],
263 'sources': [
[email protected]27315ce42011-10-14 01:25:12264 'app/startup_helper_win.cc',
[email protected]c1f87b22011-10-05 21:59:33265 'shell/shell_main.cc',
266 ],
[email protected]85ff16042012-03-06 23:46:34267 'mac_bundle_resources': [
268 'shell/mac/app.icns',
269 'shell/mac/app-Info.plist',
270 ],
271 # TODO(mark): Come up with a fancier way to do this. It should only
272 # be necessary to list app-Info.plist once, not the three times it is
273 # listed here.
274 'mac_bundle_resources!': [
275 'shell/mac/app-Info.plist',
276 ],
277 'xcode_settings': {
278 'INFOPLIST_FILE': 'shell/mac/app-Info.plist',
279 },
[email protected]c1f87b22011-10-05 21:59:33280 'msvs_settings': {
281 'VCLinkerTool': {
282 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
283 },
284 },
285 'conditions': [
286 ['OS=="win" and win_use_allocator_shim==1', {
287 'dependencies': [
288 '../base/allocator/allocator.gyp:allocator',
289 ],
290 }],
291 ['OS=="win"', {
[email protected]7fc83822012-03-30 19:53:29292 'sources': [
293 'shell/shell.rc',
294 ],
[email protected]c1f87b22011-10-05 21:59:33295 'configurations': {
296 'Debug_Base': {
297 'msvs_settings': {
298 'VCLinkerTool': {
299 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
300 },
301 },
302 },
303 },
[email protected]85ff16042012-03-06 23:46:34304 }], # OS=="win"
[email protected]27315ce42011-10-14 01:25:12305 ['OS == "win" or (toolkit_uses_gtk == 1 and selinux == 0)', {
306 'dependencies': [
307 '../sandbox/sandbox.gyp:sandbox',
308 ],
[email protected]85ff16042012-03-06 23:46:34309 }], # OS=="win" or (toolkit_uses_gtk == 1 and selinux == 0)
[email protected]398990892012-01-20 03:25:58310 ['toolkit_uses_gtk == 1', {
311 'dependencies': [
312 '<(DEPTH)/build/linux/system.gyp:gtk',
313 ],
[email protected]85ff16042012-03-06 23:46:34314 }], # toolkit_uses_gtk
315 ['OS=="mac"', {
316 'product_name': '<(content_shell_product_name)',
317 'dependencies!': [
318 'content_shell_lib',
319 ],
320 'dependencies': [
321 'content_shell_framework',
[email protected]180df8f2012-03-09 22:36:10322 'content_shell_helper_app',
323 ],
324 'copies': [
325 {
326 'destination': '<(PRODUCT_DIR)/<(content_shell_product_name).app/Contents/Frameworks',
327 'files': [
328 '<(PRODUCT_DIR)/<(content_shell_product_name) Helper.app',
329 ],
330 },
[email protected]85ff16042012-03-06 23:46:34331 ],
332 'postbuilds': [
333 {
334 'postbuild_name': 'Copy <(content_shell_product_name) Framework.framework',
335 'action': [
336 '../build/mac/copy_framework_unversioned.sh',
337 '${BUILT_PRODUCTS_DIR}/<(content_shell_product_name) Framework.framework',
338 '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Frameworks',
339 ],
340 },
341 {
342 'postbuild_name': 'Fix Framework Link',
343 'action': [
344 'install_name_tool',
345 '-change',
346 '/Library/Frameworks/<(content_shell_product_name) Framework.framework/Versions/A/<(content_shell_product_name) Framework',
347 '@executable_path/../Frameworks/<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
348 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
349 ],
350 },
351 {
352 # Modify the Info.plist as needed.
353 'postbuild_name': 'Tweak Info.plist',
354 'action': ['../build/mac/tweak_info_plist.py',
[email protected]8fcde31f62012-03-07 06:25:17355 '--svn=1'],
[email protected]85ff16042012-03-06 23:46:34356 },
357 {
[email protected]180df8f2012-03-09 22:36:10358 # This postbuid step is responsible for creating the following
359 # helpers:
360 #
361 # Content Shell Helper EH.app and Content Shell Helper NP.app are
362 # created from Content Shell Helper.app.
363 #
364 # The EH helper is marked for an executable heap. The NP helper
365 # is marked for no PIE (ASLR).
366 'postbuild_name': 'Make More Helpers',
367 'action': [
368 '../build/mac/make_more_helpers.sh',
369 'Frameworks',
370 '<(content_shell_product_name)',
371 ],
372 },
373 {
[email protected]85ff16042012-03-06 23:46:34374 # Make sure there isn't any Objective-C in the shell's
375 # executable.
376 'postbuild_name': 'Verify No Objective-C',
377 'action': [
378 '../build/mac/verify_no_objc.sh',
379 ],
380 },
381 ],
382 }], # OS=="mac"
[email protected]c1f87b22011-10-05 21:59:33383 ],
384 },
[email protected]5629e0c2011-09-12 22:07:36385 ],
[email protected]85ff16042012-03-06 23:46:34386 'conditions': [
387 ['OS=="mac"', {
388 'targets': [
389 {
390 'target_name': 'content_shell_framework',
391 'type': 'shared_library',
392 'product_name': '<(content_shell_product_name) Framework',
393 'mac_bundle': 1,
394 'mac_bundle_resources': [
[email protected]e3503ac2012-04-05 15:01:36395 'shell/mac/English.lproj/HttpAuth.xib',
[email protected]85ff16042012-03-06 23:46:34396 'shell/mac/English.lproj/MainMenu.xib',
[email protected]4cb792f42012-03-24 03:12:42397 '<(PRODUCT_DIR)/content_shell.pak'
[email protected]85ff16042012-03-06 23:46:34398 ],
399 'dependencies': [
400 'content_shell_lib',
401 ],
402 'include_dirs': [
403 '..',
404 ],
405 'sources': [
406 'shell/shell_content_main.cc',
407 'shell/shell_content_main.h',
408 ],
[email protected]180df8f2012-03-09 22:36:10409 }, # target content_shell_framework
410 {
411 'target_name': 'content_shell_helper_app',
412 'type': 'executable',
413 'variables': { 'enable_wexit_time_destructors': 1, },
414 'product_name': '<(content_shell_product_name) Helper',
415 'mac_bundle': 1,
416 'dependencies': [
417 'content_shell_framework',
418 ],
419 'sources': [
420 'shell/shell_main.cc',
421 'shell/mac/helper-Info.plist',
422 ],
423 # TODO(mark): Come up with a fancier way to do this. It should only
424 # be necessary to list helper-Info.plist once, not the three times it
425 # is listed here.
426 'mac_bundle_resources!': [
427 'shell/mac/helper-Info.plist',
428 ],
429 # TODO(mark): For now, don't put any resources into this app. Its
430 # resources directory will be a symbolic link to the browser app's
431 # resources directory.
432 'mac_bundle_resources/': [
433 ['exclude', '.*'],
434 ],
435 'xcode_settings': {
436 'INFOPLIST_FILE': 'shell/mac/helper-Info.plist',
437 },
438 'postbuilds': [
439 {
440 # The framework defines its load-time path
441 # (DYLIB_INSTALL_NAME_BASE) relative to the main executable
442 # (chrome). A different relative path needs to be used in
443 # content_shell_helper_app.
444 'postbuild_name': 'Fix Framework Link',
445 'action': [
446 'install_name_tool',
447 '-change',
448 '/Library/Frameworks/<(content_shell_product_name) Framework.framework/Versions/A/<(content_shell_product_name) Framework',
449 '@executable_path/../../../../Frameworks/<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
450 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
451 ],
452 },
453 {
454 # Modify the Info.plist as needed. The script explains why this
455 # is needed. This is also done in the chrome and chrome_dll
456 # targets. In this case, --breakpad=0, --keystone=0, and --svn=0
457 # are used because Breakpad, Keystone, and Subversion keys are
458 # never placed into the helper.
459 'postbuild_name': 'Tweak Info.plist',
460 'action': ['../build/mac/tweak_info_plist.py',
461 '--breakpad=0',
462 '--keystone=0',
463 '--svn=0'],
464 },
465 {
466 # Make sure there isn't any Objective-C in the helper app's
467 # executable.
468 'postbuild_name': 'Verify No Objective-C',
469 'action': [
470 '../build/mac/verify_no_objc.sh',
471 ],
472 },
473 ],
474 }, # target content_shell_helper_app
[email protected]85ff16042012-03-06 23:46:34475 ],
476 }], # OS=="mac"
[email protected]cc66d282012-03-30 11:44:06477 ['OS=="android"', {
478 'targets': [
479 {
[email protected]a08029b42012-04-25 03:18:46480 # TODO(jrg): Update this action and other jni generators to only
481 # require specifying the java directory and generate the rest.
482 'target_name': 'content_shell_jni_headers',
483 'type': 'none',
484 'variables': {
485 'java_sources': [
486 'shell/android/java/org/chromium/content_shell/ShellManager.java',
487 'shell/android/java/org/chromium/content_shell/ShellView.java',
488 ],
489 'jni_headers': [
490 '<(SHARED_INTERMEDIATE_DIR)/content/shell/jni/shell_manager_jni.h',
491 '<(SHARED_INTERMEDIATE_DIR)/content/shell/jni/shell_view_jni.h',
492 ],
493 },
494 'includes': [ '../build/jni_generator.gypi' ],
495 },
496 {
497 'target_name': 'content_shell_content_view',
498 'type': 'shared_library',
499 'dependencies': [
500 'content_shell_jni_headers',
501 'content_shell_lib',
502 'content_shell_pak',
503 # Skia is necessary to ensure the dependencies needed by
504 # WebContents are included.
505 '../skia/skia.gyp:skia',
506 '<(DEPTH)/media/media.gyp:player_android',
507 ],
508 'include_dirs': [
509 '<(SHARED_INTERMEDIATE_DIR)/content/shell',
510 ],
511 'sources': [
512 'shell/android/shell_library_loader.cc',
513 'shell/android/shell_library_loader.h',
514 'shell/android/shell_manager.cc',
515 'shell/android/shell_manager.h',
516 'shell/android/shell_view.cc',
517 'shell/android/shell_view.h',
518 ],
519 },
520 {
[email protected]cc66d282012-03-30 11:44:06521 'target_name': 'content_shell_apk',
522 'type': 'none',
523 'actions': [
524 {
[email protected]a08029b42012-04-25 03:18:46525 'action_name': 'copy_base_jar',
526 'inputs': ['<(PRODUCT_DIR)/chromium_base.jar'],
527 'outputs': ['<(PRODUCT_DIR)/content_shell/java/libs/chromium_base.jar'],
528 'action': ['cp', '<@(_inputs)', '<@(_outputs)'],
529 },
530 {
531 'action_name': 'copy_content_jar',
532 'inputs': ['<(PRODUCT_DIR)/chromium_content.jar'],
533 'outputs': ['<(PRODUCT_DIR)/content_shell/java/libs/chromium_content.jar'],
534 'action': ['cp', '<@(_inputs)', '<@(_outputs)'],
535 },
536 {
[email protected]9c320642012-05-07 16:25:57537 'action_name': 'copy_and_strip_so',
[email protected]73919ea2012-04-26 00:48:41538 'inputs': ['<(SHARED_LIB_DIR)/libcontent_shell_content_view.so'],
539 'outputs': ['<(PRODUCT_DIR)/content_shell/libs/armeabi/libcontent_shell_content_view.so'],
[email protected]9c320642012-05-07 16:25:57540 'action': [
541 '<!(/bin/echo -n $STRIP)',
542 '--strip-unneeded', # All symbols not needed for relocation.
543 '<@(_inputs)',
544 '-o',
545 '<@(_outputs)'
546 ],
[email protected]73919ea2012-04-26 00:48:41547 },
548 {
[email protected]cc66d282012-03-30 11:44:06549 'action_name': 'content_shell_apk',
550 'inputs': [
551 '<(DEPTH)/content/shell/android/content_shell_apk.xml',
[email protected]a08029b42012-04-25 03:18:46552 '<(DEPTH)/content/shell/android/AndroidManifest.xml',
[email protected]cc66d282012-03-30 11:44:06553 '<!@(find shell/android/java -name "*.java")',
[email protected]a08029b42012-04-25 03:18:46554 '<!@(find shell/android/res -name "*")',
555 '<(PRODUCT_DIR)/content_shell/java/libs/chromium_base.jar',
556 '<(PRODUCT_DIR)/content_shell/java/libs/chromium_content.jar',
[email protected]73919ea2012-04-26 00:48:41557 '<(PRODUCT_DIR)/content_shell/libs/armeabi/libcontent_shell_content_view.so',
[email protected]cc66d282012-03-30 11:44:06558 ],
559 'outputs': [
560 # Awkwardly, we build a Debug APK even when gyp is in
561 # Release mode. I don't think it matters (e.g. we're
562 # probably happy to not codesign) but naming should be
563 # fixed.
564 '<(PRODUCT_DIR)/ContentShell-debug.apk',
565 ],
566 'action': [
567 'ant',
568 '-DPRODUCT_DIR=<(PRODUCT_DIR)',
569 '-buildfile',
570 '<(DEPTH)/content/shell/android/content_shell_apk.xml',
571 ]
572 }
573 ],
574 },
575 ],
576 }], # OS=="android"
577 ]
[email protected]5629e0c2011-09-12 22:07:36578}