| 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 # This file is meant to be included into a target to provide a rule | 5 # This file is meant to be included into a target to provide a rule |
| 6 # to build Android APKs in a consistent manner. | 6 # to build Android APKs in a consistent manner. |
| 7 # | 7 # |
| 8 # To use this, create a gyp target with the following form: | 8 # To use this, create a gyp target with the following form: |
| 9 # { | 9 # { |
| 10 # 'target_name': 'my_package_apk', | 10 # 'target_name': 'my_package_apk', |
| (...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 'dependencies': [ | 714 'dependencies': [ |
| 715 '<(DEPTH)/build/android/pylib/device/commands/commands.gyp:chromium_comm
ands', | 715 '<(DEPTH)/build/android/pylib/device/commands/commands.gyp:chromium_comm
ands', |
| 716 '<(DEPTH)/tools/android/android_tools.gyp:android_tools', | 716 '<(DEPTH)/tools/android/android_tools.gyp:android_tools', |
| 717 ] | 717 ] |
| 718 }], | 718 }], |
| 719 ['run_findbugs == 1', { | 719 ['run_findbugs == 1', { |
| 720 'actions': [ | 720 'actions': [ |
| 721 { | 721 { |
| 722 'action_name': 'findbugs_<(_target_name)', | 722 'action_name': 'findbugs_<(_target_name)', |
| 723 'message': 'Running findbugs on <(_target_name)', | 723 'message': 'Running findbugs on <(_target_name)', |
| 724 'variables': { |
| 725 'additional_findbugs_args': [], |
| 726 'findbugs_verbose%': 0, |
| 727 }, |
| 728 'conditions': [ |
| 729 ['findbugs_verbose == 1', { |
| 730 'variables': { |
| 731 'additional_findbugs_args+': ['-vv'], |
| 732 }, |
| 733 }], |
| 734 ], |
| 724 'inputs': [ | 735 'inputs': [ |
| 725 '<(DEPTH)/build/android/findbugs_diff.py', | 736 '<(DEPTH)/build/android/findbugs_diff.py', |
| 726 '<(DEPTH)/build/android/findbugs_filter/findbugs_exclude.xml', | 737 '<(DEPTH)/build/android/findbugs_filter/findbugs_exclude.xml', |
| 727 '<(DEPTH)/build/android/pylib/utils/findbugs.py', | 738 '<(DEPTH)/build/android/pylib/utils/findbugs.py', |
| 728 '>@(input_jars_paths)', | 739 '>@(input_jars_paths)', |
| 729 '<(jar_path)', | 740 '<(jar_path)', |
| 730 '<(compile_stamp)', | 741 '<(compile_stamp)', |
| 731 ], | 742 ], |
| 732 'outputs': [ | 743 'outputs': [ |
| 733 '<(findbugs_stamp)', | 744 '<(findbugs_stamp)', |
| 734 ], | 745 ], |
| 735 'action': [ | 746 'action': [ |
| 736 'python', '<(DEPTH)/build/android/findbugs_diff.py', | 747 'python', '<(DEPTH)/build/android/findbugs_diff.py', |
| 737 '--auxclasspath-gyp', '>(input_jars_paths)', | 748 '--auxclasspath-gyp', '>(input_jars_paths)', |
| 738 '--stamp', '<(findbugs_stamp)', | 749 '--stamp', '<(findbugs_stamp)', |
| 750 '<@(additional_findbugs_args)', |
| 739 '<(jar_path)', | 751 '<(jar_path)', |
| 740 ], | 752 ], |
| 741 }, | 753 }, |
| 742 ], | 754 ], |
| 743 }, | 755 }, |
| 744 ] | 756 ] |
| 745 ], | 757 ], |
| 746 'dependencies': [ | 758 'dependencies': [ |
| 747 '<(DEPTH)/tools/android/md5sum/md5sum.gyp:md5sum', | 759 '<(DEPTH)/tools/android/md5sum/md5sum.gyp:md5sum', |
| 748 ], | 760 ], |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1054 'native_libs_dir': '<(apk_package_native_libs_dir)', | 1066 'native_libs_dir': '<(apk_package_native_libs_dir)', |
| 1055 }, { | 1067 }, { |
| 1056 'native_libs_dir': '<(DEPTH)/build/android/ant/empty/res', | 1068 'native_libs_dir': '<(DEPTH)/build/android/ant/empty/res', |
| 1057 }], | 1069 }], |
| 1058 ], | 1070 ], |
| 1059 }, | 1071 }, |
| 1060 'includes': ['android/apkbuilder_action.gypi'], | 1072 'includes': ['android/apkbuilder_action.gypi'], |
| 1061 }, | 1073 }, |
| 1062 ], | 1074 ], |
| 1063 } | 1075 } |
| OLD | NEW |