Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(249)

Side by Side Diff: content/content_shell.gypi

Issue 12047068: Add apk for running content_browsertests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/content.gyp ('k') | content/content_tests.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'variables': { 6 'variables': {
7 'content_shell_product_name': 'Content Shell', 7 'content_shell_product_name': 'Content Shell',
8 # The "19" is so that sites that sniff for version think that this is 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 9 # something reasonably current; the "77.34.5" is a hint that this isn't a
10 # standard Chrome. 10 # standard Chrome.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 '../webkit/support/webkit_support.gyp:webkit_resources', 46 '../webkit/support/webkit_support.gyp:webkit_resources',
47 '../webkit/support/webkit_support.gyp:webkit_support', 47 '../webkit/support/webkit_support.gyp:webkit_support',
48 '<(webkit_src_dir)/Source/WebKit/chromium/WebKit.gyp:webkit', 48 '<(webkit_src_dir)/Source/WebKit/chromium/WebKit.gyp:webkit',
49 '<(webkit_src_dir)/Source/WebKit/chromium/WebKit.gyp:webkit_test_support ', 49 '<(webkit_src_dir)/Source/WebKit/chromium/WebKit.gyp:webkit_test_support ',
50 '<(webkit_src_dir)/Tools/DumpRenderTree/DumpRenderTree.gyp/DumpRenderTre e.gyp:TestRunner', 50 '<(webkit_src_dir)/Tools/DumpRenderTree/DumpRenderTree.gyp/DumpRenderTre e.gyp:TestRunner',
51 ], 51 ],
52 'include_dirs': [ 52 'include_dirs': [
53 '..', 53 '..',
54 ], 54 ],
55 'sources': [ 55 'sources': [
56 'shell/android/shell_jni_registrar.cc',
57 'shell/android/shell_jni_registrar.h',
58 'shell/android/shell_manager.cc',
59 'shell/android/shell_manager.h',
56 'shell/geolocation/shell_access_token_store.cc', 60 'shell/geolocation/shell_access_token_store.cc',
57 'shell/geolocation/shell_access_token_store.h', 61 'shell/geolocation/shell_access_token_store.h',
58 'shell/minimal_ash.cc', 62 'shell/minimal_ash.cc',
59 'shell/minimal_ash.h', 63 'shell/minimal_ash.h',
60 'shell/paths_mac.h', 64 'shell/paths_mac.h',
61 'shell/paths_mac.mm', 65 'shell/paths_mac.mm',
62 'shell/shell.cc', 66 'shell/shell.cc',
63 'shell/shell.h', 67 'shell/shell.h',
64 'shell/shell_android.cc', 68 'shell/shell_android.cc',
65 'shell/shell_aura.cc', 69 'shell/shell_aura.cc',
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 ], 553 ],
550 }], # OS=="mac" 554 }], # OS=="mac"
551 ['OS=="android"', { 555 ['OS=="android"', {
552 'targets': [ 556 'targets': [
553 { 557 {
554 # TODO(jrg): Update this action and other jni generators to only 558 # TODO(jrg): Update this action and other jni generators to only
555 # require specifying the java directory and generate the rest. 559 # require specifying the java directory and generate the rest.
556 'target_name': 'content_shell_jni_headers', 560 'target_name': 'content_shell_jni_headers',
557 'type': 'none', 561 'type': 'none',
558 'sources': [ 562 'sources': [
563 'shell/android/browsertests_apk/src/org/chromium/content_browsertest s_apk/ContentBrowserTestsActivity.java',
559 'shell/android/java/src/org/chromium/content_shell/ShellManager.java ', 564 'shell/android/java/src/org/chromium/content_shell/ShellManager.java ',
560 'shell/android/java/src/org/chromium/content_shell/Shell.java', 565 'shell/android/java/src/org/chromium/content_shell/Shell.java',
561 ], 566 ],
562 'direct_dependent_settings': { 567 'direct_dependent_settings': {
563 'include_dirs': [ 568 'include_dirs': [
564 '<(SHARED_INTERMEDIATE_DIR)/content/shell', 569 '<(SHARED_INTERMEDIATE_DIR)/content/shell',
565 ], 570 ],
566 }, 571 },
567 'variables': { 572 'variables': {
568 'jni_gen_dir': 'content/shell', 573 'jni_gen_dir': 'content/shell',
569 }, 574 },
570 'includes': [ '../build/jni_generator.gypi' ], 575 'includes': [ '../build/jni_generator.gypi' ],
571 }, 576 },
572 { 577 {
573 'target_name': 'libcontent_shell_content_view', 578 'target_name': 'libcontent_shell_content_view',
574 'type': 'shared_library', 579 'type': 'shared_library',
575 'dependencies': [ 580 'dependencies': [
576 'content_shell_jni_headers', 581 'content_shell_jni_headers',
577 'content_shell_lib', 582 'content_shell_lib',
578 'content_shell_pak', 583 'content_shell_pak',
579 # Skia is necessary to ensure the dependencies needed by 584 # Skia is necessary to ensure the dependencies needed by
580 # WebContents are included. 585 # WebContents are included.
581 '../skia/skia.gyp:skia', 586 '../skia/skia.gyp:skia',
582 '<(DEPTH)/media/media.gyp:player_android', 587 '<(DEPTH)/media/media.gyp:player_android',
583 ], 588 ],
584 'sources': [ 589 'sources': [
585 'shell/android/shell_library_loader.cc', 590 'shell/android/shell_library_loader.cc',
586 'shell/android/shell_library_loader.h', 591 'shell/android/shell_library_loader.h',
587 'shell/android/shell_manager.cc',
588 'shell/android/shell_manager.h',
589 ],
590 'sources!': [
591 'shell/shell_main.cc',
592 'shell/shell_main.h',
593 ], 592 ],
594 'conditions': [ 593 'conditions': [
595 ['android_build_type==1', { 594 ['android_build_type==1', {
596 'ldflags': [ 595 'ldflags': [
597 '-lgabi++', # For rtti 596 '-lgabi++', # For rtti
598 ], 597 ],
599 }], 598 }],
600 ], 599 ],
601 }, 600 },
602 { 601 {
602 'target_name': 'content_shell_java',
603 'type': 'none',
604 'dependencies': [
605 'content_java',
606 ],
607 'variables': {
608 'package_name': 'content_shell',
609 'java_in_dir': '../content/shell/android/java',
610 'has_java_resources': 1,
611 'R_package': 'org.chromium.content_shell',
612 'R_package_relpath': 'org/chromium/content_shell',
613 },
614 'includes': [ '../build/java.gypi' ],
615 },
616 {
603 # content_shell_apk creates a .jar as a side effect. Any java targets 617 # content_shell_apk creates a .jar as a side effect. Any java targets
604 # that need that .jar in their classpath should depend on this target, 618 # that need that .jar in their classpath should depend on this target,
605 # content_shell_java. Dependents of content_shell_apk receive its jar 619 # content_shell_apk_java. Dependents of content_shell_apk receive its
606 # path in the variable 'apk_output_jar_path'. 620 # jar path in the variable 'apk_output_jar_path'. This target should
607 'target_name': 'content_shell_java', 621 # only be used by targets which instrument content_shell_apk.
622 'target_name': 'content_shell_apk_java',
608 'type': 'none', 623 'type': 'none',
609 'dependencies': [ 624 'dependencies': [
610 'content_shell_apk', 625 'content_shell_apk',
611 ], 626 ],
612 # This all_dependent_settings is used for java targets only. This will 627 # This all_dependent_settings is used for java targets only. This will
613 # add the content_shell jar to the classpath of dependent java 628 # add the content_shell jar to the classpath of dependent java
614 # targets. 629 # targets.
615 'all_dependent_settings': { 630 'all_dependent_settings': {
616 'variables': { 631 'variables': {
617 'input_jars_paths': ['>(apk_output_jar_path)'], 632 'input_jars_paths': ['>(apk_output_jar_path)'],
618 }, 633 },
619 }, 634 },
620 # Add an action with the appropriate output. This allows the generated 635 # Add an action with the appropriate output. This allows the generated
621 # buildfiles to determine which target the output corresponds to. 636 # buildfiles to determine which target the output corresponds to.
622 'actions': [ 637 'actions': [
623 { 638 {
624 'action_name': 'fake_generate_jar', 639 'action_name': 'fake_generate_jar',
625 'inputs': [], 640 'inputs': [],
626 'outputs': ['>(apk_output_jar_path)'], 641 'outputs': ['>(apk_output_jar_path)'],
627 'action': [], 642 'action': [],
628 }, 643 },
629 ], 644 ],
630 }, 645 },
631 { 646 {
632 'target_name': 'content_shell_apk', 647 'target_name': 'content_shell_apk',
633 'type': 'none', 648 'type': 'none',
634 'dependencies': [ 649 'dependencies': [
635 'content_java', 650 'content_java',
651 'content_shell_java',
652 'libcontent_shell_content_view',
636 '../base/base.gyp:base_java', 653 '../base/base.gyp:base_java',
637 '../media/media.gyp:media_java', 654 '../media/media.gyp:media_java',
638 '../net/net.gyp:net_java', 655 '../net/net.gyp:net_java',
639 '../ui/ui.gyp:ui_java', 656 '../ui/ui.gyp:ui_java',
640 ], 657 ],
641 'variables': { 658 'variables': {
642 'package_name': 'content_shell', 659 'package_name': 'content_shell_apk',
643 'apk_name': 'ContentShell', 660 'apk_name': 'ContentShell',
644 'manifest_package_name': 'org.chromium.content_shell', 661 'manifest_package_name': 'org.chromium.content_shell_apk',
645 'java_in_dir': 'shell/android/java', 662 'java_in_dir': 'shell/android/shell_apk',
646 # TODO(cjhopman): The resource directory of all apks should be in 663 'resource_dir': 'res',
647 # <java_in_dir>/res.
648 'resource_dir': '../res',
649 'native_libs_paths': ['<(SHARED_LIB_DIR)/libcontent_shell_content_vi ew.so'], 664 'native_libs_paths': ['<(SHARED_LIB_DIR)/libcontent_shell_content_vi ew.so'],
650 'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/cont ent_shell.pak'], 665 'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/cont ent_shell.pak'],
666 'asset_location': '<(ant_build_out)/content_shell/assets',
651 }, 667 },
652 'includes': [ '../build/java_apk.gypi' ], 668 'includes': [ '../build/java_apk.gypi' ],
653 }, 669 },
654 ], 670 ],
655 }], # OS=="android" 671 }], # OS=="android"
656 ] 672 ]
657 } 673 }
OLDNEW
« no previous file with comments | « content/content.gyp ('k') | content/content_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698