Remove expectations added in webkit http://trac.webkit.org/changeset/146743
[chromium-blink-merge.git] / content / content_shell.gypi
blob28404e33243008e3d6b4e124dff4ccac243735ef
1 # Copyright (c) 2012 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.
6   'variables': {
7     'content_shell_product_name': 'Content Shell',
8     # The "19" is so that sites that sniff for version think that this is
9     # something reasonably current; the "77.34.5" is a hint that this isn't a
10     # standard Chrome.
11     'content_shell_version': '19.77.34.5',
12     'conditions': [
13       ['OS=="linux"', {
14        'use_custom_freetype%': 1,
15       }, {
16        'use_custom_freetype%': 0,
17       }],
18     ],
19   },
20   'targets': [
21     {
22       'target_name': 'content_shell_lib',
23       'type': 'static_library',
24       'defines!': ['CONTENT_IMPLEMENTATION'],
25       'defines': ['CONTENT_SHELL_VERSION="<(content_shell_version)"'],
26       'variables': {
27         'chromium_code': 1,
28       },
29       'dependencies': [
30         'content_app',
31         'content_browser',
32         'content_common',
33         'content_gpu',
34         'content_plugin',
35         'content_ppapi_plugin',
36         'content_renderer',
37         'content_shell_resources',
38         'content_utility',
39         'content_worker',
40         'test_support_content',
41         'content_resources.gyp:content_resources',
42         '../base/base.gyp:base',
43         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
44         '../build/temp_gyp/googleurl.gyp:googleurl',
45         '../ipc/ipc.gyp:ipc',
46         '../media/media.gyp:media',
47         '../net/net.gyp:net',
48         '../net/net.gyp:net_resources',
49         '../skia/skia.gyp:skia',
50         '../ui/gl/gl.gyp:gl',
51         '../ui/ui.gyp:ui',
52         '../v8/tools/gyp/v8.gyp:v8',
53         '../webkit/support/webkit_support.gyp:webkit_resources',
54         '../webkit/support/webkit_support.gyp:webkit_support',
55         '<(webkit_src_dir)/Source/WebKit/chromium/WebKit.gyp:webkit',
56         '<(webkit_src_dir)/Source/WebKit/chromium/WebKit.gyp:webkit_test_support',
57         '<(webkit_src_dir)/Tools/DumpRenderTree/DumpRenderTree.gyp/DumpRenderTree.gyp:TestRunner',
58       ],
59       'include_dirs': [
60         '..',
61       ],
62       'sources': [
63         'shell/android/shell_jni_registrar.cc',
64         'shell/android/shell_jni_registrar.h',
65         'shell/android/shell_manager.cc',
66         'shell/android/shell_manager.h',
67         'shell/geolocation/shell_access_token_store.cc',
68         'shell/geolocation/shell_access_token_store.h',
69         'shell/minimal_ash.cc',
70         'shell/minimal_ash.h',
71         'shell/paths_mac.h',
72         'shell/paths_mac.mm',
73         'shell/shell.cc',
74         'shell/shell.h',
75         'shell/shell_android.cc',
76         'shell/shell_aura.cc',
77         'shell/shell_gtk.cc',
78         'shell/shell_mac.mm',
79         'shell/shell_win.cc',
80         'shell/shell_application_mac.h',
81         'shell/shell_application_mac.mm',
82         'shell/shell_browser_context.cc',
83         'shell/shell_browser_context.h',
84         'shell/shell_browser_main.cc',
85         'shell/shell_browser_main.h',
86         'shell/shell_browser_main_parts.cc',
87         'shell/shell_browser_main_parts.h',
88         'shell/shell_browser_main_parts_mac.mm',
89         'shell/shell_content_browser_client.cc',
90         'shell/shell_content_browser_client.h',
91         'shell/shell_content_client.cc',
92         'shell/shell_content_client.h',
93         'shell/shell_content_renderer_client.cc',
94         'shell/shell_content_renderer_client.h',
95         'shell/shell_devtools_delegate.cc',
96         'shell/shell_devtools_delegate.h',
97         'shell/shell_devtools_frontend.cc',
98         'shell/shell_devtools_frontend.h',
99         'shell/shell_download_manager_delegate.cc',
100         'shell/shell_download_manager_delegate.h',
101         'shell/shell_javascript_dialog_manager.cc',
102         'shell/shell_javascript_dialog_manager.h',
103         'shell/shell_javascript_dialog_gtk.cc',
104         'shell/shell_javascript_dialog_mac.mm',
105         'shell/shell_javascript_dialog_win.cc',
106         'shell/shell_javascript_dialog.h',
107         'shell/shell_login_dialog_gtk.cc',
108         'shell/shell_login_dialog_mac.mm',
109         'shell/shell_login_dialog.cc',
110         'shell/shell_login_dialog.h',
111         'shell/shell_main_delegate.cc',
112         'shell/shell_main_delegate.h',
113         'shell/shell_message_filter.cc',
114         'shell/shell_message_filter.h',
115         'shell/shell_messages.cc',
116         'shell/shell_messages.h',
117         'shell/shell_network_delegate.cc',
118         'shell/shell_network_delegate.h',
119         'shell/shell_render_process_observer.cc',
120         'shell/shell_render_process_observer.h',
121         'shell/shell_resource_dispatcher_host_delegate.cc',
122         'shell/shell_resource_dispatcher_host_delegate.h',
123         'shell/shell_switches.cc',
124         'shell/shell_switches.h',
125         'shell/shell_test_configuration.cc',
126         'shell/shell_test_configuration.h',
127         'shell/shell_url_request_context_getter.cc',
128         'shell/shell_url_request_context_getter.h',
129         'shell/shell_web_contents_view_delegate_android.cc',
130         'shell/shell_web_contents_view_delegate_creator.h',
131         'shell/shell_web_contents_view_delegate_gtk.cc',
132         'shell/shell_web_contents_view_delegate_mac.mm',
133         'shell/shell_web_contents_view_delegate_win.cc',
134         'shell/shell_web_contents_view_delegate.h',
135         'shell/webkit_test_controller.cc',
136         'shell/webkit_test_controller.h',
137         'shell/webkit_test_helpers.cc',
138         'shell/webkit_test_helpers.h',
139         'shell/webkit_test_platform_support.h',
140         'shell/webkit_test_platform_support_android.cc',
141         'shell/webkit_test_platform_support_linux.cc',
142         'shell/webkit_test_platform_support_mac.mm',
143         'shell/webkit_test_platform_support_win.cc',
144         'shell/webkit_test_runner.cc',
145         'shell/webkit_test_runner.h',
146       ],
147       'msvs_settings': {
148         'VCLinkerTool': {
149           'SubSystem': '2',  # Set /SUBSYSTEM:WINDOWS
150         },
151       },
152       'conditions': [
153         ['OS=="win" and win_use_allocator_shim==1', {
154           'dependencies': [
155             '../base/allocator/allocator.gyp:allocator',
156           ],
157         }],
158         ['OS=="win"', {
159           'resource_include_dirs': [
160             '<(SHARED_INTERMEDIATE_DIR)/webkit',
161           ],
162           'dependencies': [
163             '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_strings',
164           ],
165           'configurations': {
166             'Debug_Base': {
167               'msvs_settings': {
168                 'VCLinkerTool': {
169                   'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
170                 },
171               },
172             },
173           },
174           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
175           'msvs_disabled_warnings': [ 4267, ],
176         }],  # OS=="win"
177         ['OS=="linux"', {
178           'dependencies': [
179             '../build/linux/system.gyp:fontconfig',
180           ],
181         }],
182         ['OS=="android"', {
183           'dependencies': [
184             'content_shell_jni_headers',
185           ],
186         }, {  # else: OS!="android"
187           'dependencies': [
188             # This dependency is for running DRT against the content shell, and
189             # this combination is not yet supported on Android.
190             '../webkit/support/webkit_support.gyp:webkit_support',
191           ],
192         }],  # OS=="android"
193         ['os_posix==1 and use_aura==1 and linux_use_tcmalloc==1', {
194           'dependencies': [
195             # This is needed by content/app/content_main_runner.cc
196             '../base/allocator/allocator.gyp:allocator',
197           ],
198         }],
199         ['use_aura==1', {
200           'dependencies': [
201             '../ui/aura/aura.gyp:aura',
202             '../ui/base/strings/ui_strings.gyp:ui_strings',
203             '../ui/views/controls/webview/webview.gyp:webview',
204             '../ui/views/views.gyp:views',
205             '../ui/views/views.gyp:views_test_support',
206             '../ui/ui.gyp:ui_resources',
207           ],
208           'sources/': [
209             ['exclude', 'shell/shell_gtk.cc'],
210             ['exclude', 'shell/shell_win.cc'],
211           ],
212         }],  # use_aura==1
213         ['chromeos==1', {
214           'dependencies': [
215             '../ash/ash.gyp:ash',
216             '../chromeos/chromeos.gyp:chromeos',
217            ],
218         }], # chromeos==1
219         ['use_custom_freetype==1', {
220           'dependencies': [
221              '../third_party/freetype2/freetype2.gyp:freetype2',
222           ],
223         }],
224       ],
225     },
226     {
227       'target_name': 'content_shell_resources',
228       'type': 'none',
229       'dependencies': [
230         'generate_content_shell_resources',
231       ],
232       'variables': {
233         'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content',
234       },
235       'includes': [ '../build/grit_target.gypi' ],
236       'copies': [
237         {
238           'destination': '<(PRODUCT_DIR)',
239           'files': [
240             '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak'
241           ],
242         },
243       ],
244     },
245     {
246       'target_name': 'generate_content_shell_resources',
247       'type': 'none',
248       'variables': {
249         'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content',
250       },
251       'actions': [
252         {
253           'action_name': 'content_shell_resources',
254           'variables': {
255             'grit_grd_file': 'shell/shell_resources.grd',
256           },
257           'includes': [ '../build/grit_action.gypi' ],
258         },
259       ],
260     },
261     {
262       # We build a minimal set of resources so WebKit in content_shell has
263       # access to necessary resources.
264       'target_name': 'content_shell_pak',
265       'type': 'none',
266       'dependencies': [
267         'browser/devtools/devtools_resources.gyp:devtools_resources',
268         'content_shell_resources',
269         '<(DEPTH)/ui/ui.gyp:ui_resources',
270       ],
271       'variables': {
272         'repack_path': '<(DEPTH)/tools/grit/grit/format/repack.py',
273       },
274       'actions': [
275         {
276           'action_name': 'repack_content_shell_pack',
277           'variables': {
278             'pak_inputs': [
279               '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
280               '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak',
281               '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
282               '<(SHARED_INTERMEDIATE_DIR)/ui/app_locale_settings/app_locale_settings_en-US.pak',
283               '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_100_percent.pak',
284               '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/webui_resources.pak',
285               '<(SHARED_INTERMEDIATE_DIR)/ui/ui_strings/ui_strings_en-US.pak',
286               '<(SHARED_INTERMEDIATE_DIR)/webkit/devtools_resources.pak',
287               '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.pak',
288               '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources_100_percent.pak',
289               '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.pak',
290             ],
291           },
292           'inputs': [
293             '<(repack_path)',
294             '<@(pak_inputs)',
295           ],
296           'action': ['python', '<(repack_path)', '<@(_outputs)',
297                      '<@(pak_inputs)'],
298           'conditions': [
299             ['OS!="android"', {
300               'outputs': [
301                 '<(PRODUCT_DIR)/content_shell.pak',
302               ],
303             }, {
304               'outputs': [
305                 '<(PRODUCT_DIR)/content_shell/assets/content_shell.pak',
306               ],
307             }],
308           ],
309         },
310       ],
311     },
312     {
313       'target_name': 'content_shell',
314       'type': 'executable',
315       'mac_bundle': 1,
316       'defines!': ['CONTENT_IMPLEMENTATION'],
317       'variables': {
318         'chromium_code': 1,
319       },
320       'dependencies': [
321         'content_shell_lib',
322         'content_shell_pak',
323         '../third_party/mesa/mesa.gyp:osmesa',
324       ],
325       'include_dirs': [
326         '..',
327       ],
328       'sources': [
329         'app/startup_helper_win.cc',
330         'shell/shell_main.cc',
331       ],
332       'mac_bundle_resources': [
333         'shell/mac/app.icns',
334         'shell/mac/app-Info.plist',
335       ],
336       # TODO(mark): Come up with a fancier way to do this.  It should only
337       # be necessary to list app-Info.plist once, not the three times it is
338       # listed here.
339       'mac_bundle_resources!': [
340         'shell/mac/app-Info.plist',
341       ],
342       'xcode_settings': {
343         'INFOPLIST_FILE': 'shell/mac/app-Info.plist',
344       },
345       'msvs_settings': {
346         'VCLinkerTool': {
347           'SubSystem': '2',  # Set /SUBSYSTEM:WINDOWS
348         },
349       },
350       'conditions': [
351         ['OS=="win" and win_use_allocator_shim==1', {
352           'dependencies': [
353             '../base/allocator/allocator.gyp:allocator',
354           ],
355         }],
356         ['OS=="win"', {
357           'sources': [
358             'shell/shell.rc',
359           ],
360           'configurations': {
361             'Debug_Base': {
362               'msvs_settings': {
363                 'VCLinkerTool': {
364                   'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
365                 },
366               },
367             },
368           },
369         }],  # OS=="win"
370         ['OS == "win" or (toolkit_uses_gtk == 1 and selinux == 0)', {
371           'dependencies': [
372             '../sandbox/sandbox.gyp:sandbox',
373           ],
374         }],  # OS=="win" or (toolkit_uses_gtk == 1 and selinux == 0)
375         ['toolkit_uses_gtk == 1', {
376           'dependencies': [
377             '<(DEPTH)/build/linux/system.gyp:gtk',
378           ],
379         }],  # toolkit_uses_gtk
380         ['OS=="mac"', {
381           'product_name': '<(content_shell_product_name)',
382           'dependencies!': [
383             'content_shell_lib',
384           ],
385           'dependencies': [
386             'content_shell_framework',
387             'content_shell_helper_app',
388           ],
389           'copies': [
390             {
391               'destination': '<(PRODUCT_DIR)/<(content_shell_product_name).app/Contents/Frameworks',
392               'files': [
393                 '<(PRODUCT_DIR)/<(content_shell_product_name) Helper.app',
394               ],
395             },
396           ],
397           'postbuilds': [
398             {
399               'postbuild_name': 'Copy <(content_shell_product_name) Framework.framework',
400               'action': [
401                 '../build/mac/copy_framework_unversioned.sh',
402                 '${BUILT_PRODUCTS_DIR}/<(content_shell_product_name) Framework.framework',
403                 '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Frameworks',
404               ],
405             },
406             {
407               'postbuild_name': 'Fix Framework Link',
408               'action': [
409                 'install_name_tool',
410                 '-change',
411                 '/Library/Frameworks/<(content_shell_product_name) Framework.framework/Versions/A/<(content_shell_product_name) Framework',
412                 '@executable_path/../Frameworks/<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
413                 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
414               ],
415             },
416             {
417               # Modify the Info.plist as needed.
418               'postbuild_name': 'Tweak Info.plist',
419               'action': ['../build/mac/tweak_info_plist.py',
420                          '--scm=1',
421                          '--version=<(content_shell_version)'],
422             },
423             {
424               # This postbuid step is responsible for creating the following
425               # helpers:
426               #
427               # Content Shell Helper EH.app and Content Shell Helper NP.app are
428               # created from Content Shell Helper.app.
429               #
430               # The EH helper is marked for an executable heap. The NP helper
431               # is marked for no PIE (ASLR).
432               'postbuild_name': 'Make More Helpers',
433               'action': [
434                 '../build/mac/make_more_helpers.sh',
435                 'Frameworks',
436                 '<(content_shell_product_name)',
437               ],
438             },
439             {
440               # Make sure there isn't any Objective-C in the shell's
441               # executable.
442               'postbuild_name': 'Verify No Objective-C',
443               'action': [
444                 '../build/mac/verify_no_objc.sh',
445               ],
446             },
447           ],
448         }],  # OS=="mac"
449       ],
450     },
451     {
452       'target_name': 'content_shell_builder',
453       'type': 'none',
454       'dependencies': [
455         'content_shell',
456       ],
457     },
458   ],
459   'conditions': [
460     ['OS=="mac"', {
461       'targets': [
462         {
463           'target_name': 'content_shell_framework',
464           'type': 'shared_library',
465           'product_name': '<(content_shell_product_name) Framework',
466           'mac_bundle': 1,
467           'mac_bundle_resources': [
468             'shell/mac/English.lproj/HttpAuth.xib',
469             'shell/mac/English.lproj/MainMenu.xib',
470             '<(PRODUCT_DIR)/content_shell.pak'
471           ],
472           'dependencies': [
473             'content_shell_lib',
474           ],
475           'include_dirs': [
476             '..',
477           ],
478           'sources': [
479             'shell/shell_content_main.cc',
480             'shell/shell_content_main.h',
481           ],
482           'copies': [
483             {
484               # Copy FFmpeg binaries for audio/video support.
485               'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
486               'files': [
487                 '<(PRODUCT_DIR)/ffmpegsumo.so',
488               ],
489             },
490           ],
491         },  # target content_shell_framework
492         {
493           'target_name': 'content_shell_helper_app',
494           'type': 'executable',
495           'variables': { 'enable_wexit_time_destructors': 1, },
496           'product_name': '<(content_shell_product_name) Helper',
497           'mac_bundle': 1,
498           'dependencies': [
499             'content_shell_framework',
500           ],
501           'sources': [
502             'shell/shell_main.cc',
503             'shell/mac/helper-Info.plist',
504           ],
505           # TODO(mark): Come up with a fancier way to do this.  It should only
506           # be necessary to list helper-Info.plist once, not the three times it
507           # is listed here.
508           'mac_bundle_resources!': [
509             'shell/mac/helper-Info.plist',
510           ],
511           # TODO(mark): For now, don't put any resources into this app.  Its
512           # resources directory will be a symbolic link to the browser app's
513           # resources directory.
514           'mac_bundle_resources/': [
515             ['exclude', '.*'],
516           ],
517           'xcode_settings': {
518             'INFOPLIST_FILE': 'shell/mac/helper-Info.plist',
519           },
520           'postbuilds': [
521             {
522               # The framework defines its load-time path
523               # (DYLIB_INSTALL_NAME_BASE) relative to the main executable
524               # (chrome).  A different relative path needs to be used in
525               # content_shell_helper_app.
526               'postbuild_name': 'Fix Framework Link',
527               'action': [
528                 'install_name_tool',
529                 '-change',
530                 '/Library/Frameworks/<(content_shell_product_name) Framework.framework/Versions/A/<(content_shell_product_name) Framework',
531                 '@executable_path/../../../../Frameworks/<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
532                 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
533               ],
534             },
535             {
536               # Modify the Info.plist as needed.  The script explains why this
537               # is needed.  This is also done in the chrome and chrome_dll
538               # targets.  In this case, --breakpad=0, --keystone=0, and --scm=0
539               # are used because Breakpad, Keystone, and SCM keys are
540               # never placed into the helper.
541               'postbuild_name': 'Tweak Info.plist',
542               'action': ['../build/mac/tweak_info_plist.py',
543                          '--breakpad=0',
544                          '--keystone=0',
545                          '--scm=0',
546                          '--version=<(content_shell_version)'],
547             },
548             {
549               # Make sure there isn't any Objective-C in the helper app's
550               # executable.
551               'postbuild_name': 'Verify No Objective-C',
552               'action': [
553                 '../build/mac/verify_no_objc.sh',
554               ],
555             },
556           ],
557           'conditions': [
558             ['component=="shared_library"', {
559               'xcode_settings': {
560                 'LD_RUNPATH_SEARCH_PATHS': [
561                   # Get back from Content Shell.app/Contents/Frameworks/
562                   #                                 Helper.app/Contents/MacOS
563                   '@loader_path/../../../../../..',
564                 ],
565               },
566             }],
567           ],
568         },  # target content_shell_helper_app
569       ],
570     }],  # OS=="mac"
571     ['OS=="android"', {
572       'targets': [
573         {
574           # TODO(jrg): Update this action and other jni generators to only
575           # require specifying the java directory and generate the rest.
576           'target_name': 'content_shell_jni_headers',
577           'type': 'none',
578           'sources': [
579             'shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/BrowserTestSystemMessageHandler.java',
580             'shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsActivity.java',
581             'shell/android/java/src/org/chromium/content_shell/ShellManager.java',
582             'shell/android/java/src/org/chromium/content_shell/Shell.java',
583           ],
584           'direct_dependent_settings': {
585             'include_dirs': [
586               '<(SHARED_INTERMEDIATE_DIR)/content/shell',
587             ],
588           },
589           'variables': {
590             'jni_gen_package': 'content/shell',
591           },
592           'includes': [ '../build/jni_generator.gypi' ],
593         },
594         {
595           'target_name': 'libcontent_shell_content_view',
596           'type': 'shared_library',
597           'dependencies': [
598             'content_shell_jni_headers',
599             'content_shell_lib',
600             'content_shell_pak',
601             # Skia is necessary to ensure the dependencies needed by
602             # WebContents are included.
603             '../skia/skia.gyp:skia',
604             '<(DEPTH)/media/media.gyp:player_android',
605           ],
606           'sources': [
607             'shell/android/shell_library_loader.cc',
608             'shell/android/shell_library_loader.h',
609           ],
610           'conditions': [
611             ['android_webview_build==1', {
612               'ldflags': [
613                 '-lgabi++',  # For rtti
614               ],
615             }],
616           ],
617         },
618         {
619           'target_name': 'content_shell_java',
620           'type': 'none',
621           'dependencies': [
622             'content_java',
623           ],
624           'variables': {
625             'java_in_dir': '../content/shell/android/java',
626             'has_java_resources': 1,
627             'R_package': 'org.chromium.content_shell',
628             'R_package_relpath': 'org/chromium/content_shell',
629           },
630           'includes': [ '../build/java.gypi' ],
631         },
632         {
633           # content_shell_apk creates a .jar as a side effect. Any java targets
634           # that need that .jar in their classpath should depend on this target,
635           # content_shell_apk_java. Dependents of content_shell_apk receive its
636           # jar path in the variable 'apk_output_jar_path'. This target should
637           # only be used by targets which instrument content_shell_apk.
638           'target_name': 'content_shell_apk_java',
639           'type': 'none',
640           'dependencies': [
641             'content_shell_apk',
642           ],
643           # This all_dependent_settings is used for java targets only. This will
644           # add the content_shell jar to the classpath of dependent java
645           # targets.
646           'all_dependent_settings': {
647             'variables': {
648               'input_jars_paths': ['>(apk_output_jar_path)'],
649             },
650           },
651           # Add an action with the appropriate output. This allows the generated
652           # buildfiles to determine which target the output corresponds to.
653           'actions': [
654             {
655               'action_name': 'fake_generate_jar',
656               'inputs': [],
657               'outputs': ['>(apk_output_jar_path)'],
658               'action': [],
659             },
660           ],
661         },
662         {
663           'target_name': 'content_shell_apk',
664           'type': 'none',
665           'dependencies': [
666             'content_java',
667             'content_shell_java',
668             'libcontent_shell_content_view',
669             '../base/base.gyp:base_java',
670             '../media/media.gyp:media_java',
671             '../net/net.gyp:net_java',
672             '../ui/ui.gyp:ui_java',
673           ],
674           'variables': {
675             'apk_name': 'ContentShell',
676             'manifest_package_name': 'org.chromium.content_shell_apk',
677             'java_in_dir': 'shell/android/shell_apk',
678             'resource_dir': 'res',
679             'native_libs_paths': ['<(SHARED_LIB_DIR)/libcontent_shell_content_view.so'],
680             'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'],
681             'asset_location': '<(ant_build_out)/content_shell/assets',
682           },
683           'includes': [ '../build/java_apk.gypi' ],
684         },
685       ],
686     }],  # OS=="android"
687   ]