OLD | NEW |
---|---|
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 }, | 8 }, |
9 'targets': [ | 9 'targets': [ |
10 { | 10 { |
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
608 'ant', | 608 'ant', |
609 '-DPRODUCT_DIR=<(ant_build_out)', | 609 '-DPRODUCT_DIR=<(ant_build_out)', |
610 '-DAPP_ABI=<(android_app_abi)', | 610 '-DAPP_ABI=<(android_app_abi)', |
611 '-buildfile', | 611 '-buildfile', |
612 '<(DEPTH)/content/shell/android/java/content_shell_apk.xml', | 612 '<(DEPTH)/content/shell/android/java/content_shell_apk.xml', |
613 ] | 613 ] |
614 } | 614 } |
615 ], | 615 ], |
616 }, | 616 }, |
617 { | 617 { |
618 'target_name': 'content_javatests', | |
619 'type': 'none', | |
620 'dependencies': [ | |
621 '../base/base.gyp:base_java', | |
622 '../base/base.gyp:base_javatests', | |
623 'content_common', | |
624 ], | |
625 'variables': { | |
626 'package_name': 'content_javatests', | |
627 'java_in_dir': '../content/public/android/javatests', | |
628 }, | |
629 'includes': [ '../build/java.gypi' ], | |
630 }, | |
631 { | |
618 'target_name': 'content_shell_test_apk', | 632 'target_name': 'content_shell_test_apk', |
619 'type': 'none', | 633 'type': 'none', |
620 'dependencies': [ | 634 'dependencies': [ |
621 'content_shell_apk', | 635 'content_shell_apk', |
636 'content_javatests', | |
622 ], | 637 ], |
623 'actions': [ | 638 'actions': [ |
624 { | 639 { |
640 'action_name': 'copy_base_javatests_jar', | |
641 'inputs': ['<(PRODUCT_DIR)/lib.java/chromium_base_javatests.jar'], | |
642 'outputs': ['<(PRODUCT_DIR)/content_shell_test/java/libs/chromium_ base_javatests.jar'], | |
643 'action': ['cp', '<@(_inputs)', '<@(_outputs)'], | |
644 }, | |
645 { | |
646 'action_name': 'copy_content_javatests_jar', | |
bulach
2012/07/16 13:22:44
nit: are these copies necessary? would it be possi
Ted C
2012/07/17 00:48:03
I think it was done this way for historical reason
| |
647 'inputs': ['<(PRODUCT_DIR)/lib.java/chromium_content_javatests.jar '], | |
648 'outputs': ['<(PRODUCT_DIR)/content_shell_test/java/libs/chromium_ content_javatests.jar'], | |
649 'action': ['cp', '<@(_inputs)', '<@(_outputs)'], | |
650 }, | |
651 { | |
625 'action_name': 'content_shell_test_generate_apk', | 652 'action_name': 'content_shell_test_generate_apk', |
626 'inputs': [ | 653 'inputs': [ |
627 '<(DEPTH)/content/shell/android/javatests/content_shell_test_apk .xml', | 654 '<(DEPTH)/content/shell/android/javatests/content_shell_test_apk .xml', |
628 '<(DEPTH)/content/shell/android/javatests/AndroidManifest.xml', | 655 '<(DEPTH)/content/shell/android/javatests/AndroidManifest.xml', |
629 ], | 656 ], |
630 'outputs': [ | 657 'outputs': [ |
631 '<(PRODUCT_DIR)/content_shell_test/ContentShellTest-debug.apk', | 658 '<(PRODUCT_DIR)/content_shell_test/ContentShellTest-debug.apk', |
632 ], | 659 ], |
633 'action': [ | 660 'action': [ |
634 'ant', | 661 'ant', |
635 '-DPRODUCT_DIR=<(ant_build_out)', | 662 '-DPRODUCT_DIR=<(ant_build_out)', |
636 '-DAPP_ABI=<(android_app_abi)', | 663 '-DAPP_ABI=<(android_app_abi)', |
637 '-buildfile', | 664 '-buildfile', |
638 '<(DEPTH)/content/shell/android/javatests/content_shell_test_apk .xml', | 665 '<(DEPTH)/content/shell/android/javatests/content_shell_test_apk .xml', |
639 ] | 666 ] |
640 } | 667 } |
641 ], | 668 ], |
642 }, | 669 }, |
643 ], | 670 ], |
644 }], # OS=="android" | 671 }], # OS=="android" |
645 ] | 672 ] |
646 } | 673 } |
OLD | NEW |